This page documents the degree to which the PARI/GP source code is tested by
our public test suite, distributed with the source distribution in directory
src/test/
. This is measured by the gcov utility; we then
process gcov output using the lcov frond-end.
We test a few variants depending on Configure
flags
on the pari.math.u-bordeaux.fr
machine (x86_64
architecture), and agregate them in the final report:
x86_32
architecture at
Configure time via setarch
The target is to exceed 90% coverage for all mathematical modules
(given that branches depending on DEBUGLEVEL
or DEBUGMEM
are not covered). This script is
run to produce the results below.
LCOV - code coverage report | |||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
![]() |
Function Name ![]() |
Hit count ![]() |
GEN2mpz | 115523213 |
absdiviu_rem | 50861431 |
addiispec | 3337320507 |
adduispec | 2789998112 |
adduispec_offset | 764531533 |
addumului | 0 |
affir | 404155575 |
cmpiispec | 3980003924 |
convi | 439395 |
diviiexact | 533948774 |
divis | 325450 |
divis_rem | 86239957 |
diviuexact | 31844009 |
diviuexact_i | 413265689 |
diviuuexact | 200471 |
divri | 151456955 |
divri_with_gmp | 35251490 |
divrr | 142825673 |
divrr_with_gmp | 76354040 |
dvmdii | 2195678511 |
equaliispec | 269633554 |
floorr | 7137445 |
icopy_ef | 41483309 |
incloop | 103428113 |
incneg | 66684 |
incpos | 103025821 |
int_normalize | 306408749 |
mantissa2nr | 138413758 |
mpz2GEN | 57762733 |
muliispec | 5845202305 |
muliispec_mirror | 85109383 |
muluispec | 5604031243 |
muluui | 222702 |
pari_gmp_free | 1755944 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1104 |
pari_kernel_init | 1112 |
pari_kernel_version | 4 |
red_montgomery | 34981567 |
remi2n | 38976753 |
resetloop | 174328 |
roundr_up_ip | 527507722 |
setloop | 2999291 |
shiftispec | 720148128 |
sqrispec | 1031535249 |
sqrispec_mirror | 41402901 |
sqrtr_abs | 126568376 |
sqrtremi | 5160790 |
subiispec | 3023177821 |
subiuspec | 1779133309 |
truncr | 3654083 |
umodiu | 1329420715 |
xmpn_copy | 6896518 |
xmpn_mirror | 587832490 |
xmpn_mirrorcopy | 719661382 |
xmpn_zero | 237942155 |
![]() |
Generated by: LCOV version 1.16 |