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 | 115115240 |
absdiviu_rem | 109894935 |
addiispec | 3320128916 |
adduispec | 2779063968 |
adduispec_offset | 765237323 |
addumului | 0 |
affir | 401235492 |
cmpiispec | 3940401589 |
convi | 438613 |
diviiexact | 525787667 |
divis | 966677 |
divis_rem | 85247308 |
diviuexact | 39175884 |
diviuexact_i | 413866933 |
diviuuexact | 200463 |
divri | 151128885 |
divri_with_gmp | 35237590 |
divrr | 141860345 |
divrr_with_gmp | 75815619 |
dvmdii | 2177760846 |
equaliispec | 267242855 |
floorr | 7003748 |
icopy_ef | 41194096 |
incloop | 103310293 |
incneg | 66684 |
incpos | 102906743 |
int_normalize | 306838650 |
mantissa2nr | 137408307 |
mpz2GEN | 57559217 |
muliispec | 5919119775 |
muliispec_mirror | 85092291 |
muluispec | 5581217191 |
muluui | 222692 |
pari_gmp_free | 1744689 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1104 |
pari_kernel_init | 1112 |
pari_kernel_version | 4 |
red_montgomery | 34794386 |
remi2n | 37433939 |
resetloop | 174328 |
roundr_up_ip | 524515156 |
setloop | 2997599 |
shiftispec | 703982956 |
sqrispec | 1019440565 |
sqrispec_mirror | 41401023 |
sqrtr_abs | 125658189 |
sqrtremi | 5115000 |
subiispec | 3001912586 |
subiuspec | 1766737161 |
truncr | 3550496 |
umodiu | 1306017516 |
xmpn_copy | 6698185 |
xmpn_mirror | 584695336 |
xmpn_mirrorcopy | 715993644 |
xmpn_zero | 236423564 |
![]() |
Generated by: LCOV version 1.16 |