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 | 115116054 |
absdiviu_rem | 109856686 |
addiispec | 3313320403 |
adduispec | 2774025495 |
adduispec_offset | 765559386 |
addumului | 0 |
affir | 400728415 |
cmpiispec | 3941502325 |
convi | 438548 |
diviiexact | 525449894 |
divis | 966290 |
divis_rem | 85237945 |
diviuexact | 39176416 |
diviuexact_i | 413532738 |
diviuuexact | 200516 |
divri | 150466168 |
divri_with_gmp | 35195532 |
divrr | 141744246 |
divrr_with_gmp | 75709108 |
dvmdii | 2177334581 |
equaliispec | 267251605 |
floorr | 7001065 |
icopy_ef | 41190219 |
incloop | 103281905 |
incneg | 66684 |
incpos | 102877718 |
int_normalize | 306571927 |
mantissa2nr | 137224679 |
mpz2GEN | 57559286 |
muliispec | 5877490403 |
muliispec_mirror | 84061691 |
muluispec | 5544490369 |
muluui | 222737 |
pari_gmp_free | 1759236 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1104 |
pari_kernel_init | 1112 |
pari_kernel_version | 4 |
red_montgomery | 33681769 |
remi2n | 37315169 |
resetloop | 174328 |
roundr_up_ip | 521939860 |
setloop | 2997600 |
shiftispec | 703217686 |
sqrispec | 1019258231 |
sqrispec_mirror | 41388474 |
sqrtr_abs | 125198760 |
sqrtremi | 5114590 |
subiispec | 3002703912 |
subiuspec | 1767934759 |
truncr | 3546570 |
umodiu | 1303173910 |
xmpn_copy | 6705743 |
xmpn_mirror | 583052100 |
xmpn_mirrorcopy | 712714232 |
xmpn_zero | 235821622 |
![]() |
Generated by: LCOV version 1.16 |