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 ![]() |
addumului | 0 |
pari_gmp_realloc | 0 |
pari_kernel_version | 4 |
pari_kernel_close | 1092 |
pari_kernel_init | 1100 |
incneg | 66684 |
resetloop | 174328 |
diviuuexact | 199465 |
muluui | 221678 |
convi | 437509 |
divis | 966681 |
pari_gmp_free | 1742870 |
setloop | 2997549 |
truncr | 3556383 |
sqrtremi | 5114900 |
xmpn_copy | 6873994 |
floorr | 6983783 |
divri_with_gmp | 35175345 |
remi2n | 36106441 |
red_montgomery | 36734591 |
diviuexact | 38838136 |
icopy_ef | 41120189 |
sqrispec_mirror | 41383330 |
mpz2GEN | 57621700 |
divrr_with_gmp | 75737762 |
muliispec_mirror | 83763629 |
divis_rem | 85287084 |
incpos | 102559551 |
incloop | 102971861 |
absdiviu_rem | 109506766 |
GEN2mpz | 115240932 |
sqrtr_abs | 125159498 |
mantissa2nr | 137232747 |
divrr | 141799986 |
divri | 150193860 |
xmpn_zero | 235851749 |
equaliispec | 265916760 |
int_normalize | 307068169 |
affir | 400707237 |
diviuexact_i | 411126347 |
roundr_up_ip | 521480211 |
diviiexact | 523354566 |
xmpn_mirror | 582894301 |
shiftispec | 705690158 |
xmpn_mirrorcopy | 712407845 |
adduispec_offset | 764573472 |
sqrispec | 1018980492 |
umodiu | 1305811462 |
subiuspec | 1767209956 |
dvmdii | 2173084554 |
adduispec | 2774750387 |
subiispec | 3002890859 |
addiispec | 3312492102 |
cmpiispec | 3941328474 |
muluispec | 5530488065 |
muliispec | 5864006179 |
![]() |
Generated by: LCOV version 1.16 |