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 | 115391939 |
absdiviu_rem | 110755461 |
addiispec | 3333847448 |
adduispec | 2789954303 |
adduispec_offset | 767265293 |
addumului | 0 |
affir | 403759533 |
cmpiispec | 3971308860 |
convi | 438671 |
diviiexact | 533351380 |
divis | 1006037 |
divis_rem | 86177959 |
diviuexact | 39411367 |
diviuexact_i | 420675335 |
diviuuexact | 200455 |
divri | 151397587 |
divri_with_gmp | 35250859 |
divrr | 142760970 |
divrr_with_gmp | 76131360 |
dvmdii | 2195862890 |
equaliispec | 269584661 |
floorr | 7126614 |
icopy_ef | 41255075 |
incloop | 103222144 |
incneg | 66684 |
incpos | 102821437 |
int_normalize | 308191038 |
mantissa2nr | 138178372 |
mpz2GEN | 57697281 |
muliispec | 5951141500 |
muliispec_mirror | 85074306 |
muluispec | 5614281856 |
muluui | 222686 |
pari_gmp_free | 1755950 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1104 |
pari_kernel_init | 1112 |
pari_kernel_version | 4 |
red_montgomery | 34929510 |
remi2n | 38907512 |
resetloop | 174328 |
roundr_up_ip | 527566812 |
setloop | 2997876 |
shiftispec | 714344330 |
sqrispec | 1025410640 |
sqrispec_mirror | 41388965 |
sqrtr_abs | 126365957 |
sqrtremi | 5182347 |
subiispec | 3018263775 |
subiuspec | 1777083201 |
truncr | 3625318 |
umodiu | 1316589518 |
xmpn_copy | 6890006 |
xmpn_mirror | 587220215 |
xmpn_mirrorcopy | 718620059 |
xmpn_zero | 237503223 |
![]() |
Generated by: LCOV version 1.16 |