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 | 1104 |
pari_kernel_init | 1112 |
incneg | 66684 |
resetloop | 174328 |
diviuuexact | 200479 |
muluui | 222703 |
convi | 438613 |
divis | 976970 |
pari_gmp_free | 1755941 |
setloop | 2997879 |
truncr | 3635844 |
sqrtremi | 5164463 |
xmpn_copy | 6887397 |
floorr | 7134297 |
red_montgomery | 34962197 |
divri_with_gmp | 35238073 |
remi2n | 38993562 |
diviuexact | 39356127 |
icopy_ef | 41204818 |
sqrispec_mirror | 41403246 |
mpz2GEN | 57619397 |
divrr_with_gmp | 76042593 |
muliispec_mirror | 85218480 |
divis_rem | 86175019 |
incpos | 103333542 |
incloop | 103732871 |
absdiviu_rem | 110638894 |
GEN2mpz | 115236316 |
sqrtr_abs | 126368528 |
mantissa2nr | 138184859 |
divrr | 142453379 |
divri | 151199932 |
xmpn_zero | 237380763 |
equaliispec | 269114733 |
int_normalize | 308521137 |
affir | 403534638 |
diviuexact_i | 419857597 |
roundr_up_ip | 526995527 |
diviiexact | 532486920 |
xmpn_mirror | 586924644 |
shiftispec | 714420911 |
xmpn_mirrorcopy | 718391448 |
adduispec_offset | 765978968 |
sqrispec | 1025336785 |
umodiu | 1313369623 |
subiuspec | 1775468501 |
dvmdii | 2193468713 |
adduispec | 2786630328 |
subiispec | 3016163516 |
addiispec | 3331585870 |
cmpiispec | 3968847752 |
muluispec | 5609410976 |
muliispec | 5948553713 |
![]() |
Generated by: LCOV version 1.16 |