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 | 115534124 |
absdiviu_rem | 50858319 |
addiispec | 3336784749 |
adduispec | 2787813229 |
adduispec_offset | 764481831 |
addumului | 0 |
affir | 404222183 |
cmpiispec | 3978862058 |
convi | 439397 |
diviiexact | 533968460 |
divis | 325423 |
divis_rem | 86252228 |
diviuexact | 31843330 |
diviuexact_i | 413257916 |
diviuuexact | 200491 |
divri | 151457561 |
divri_with_gmp | 35250673 |
divrr | 142852853 |
divrr_with_gmp | 76405432 |
dvmdii | 2196661077 |
equaliispec | 268849404 |
floorr | 7139265 |
icopy_ef | 41494084 |
incloop | 102891227 |
incneg | 66684 |
incpos | 102483777 |
int_normalize | 306573842 |
mantissa2nr | 138487818 |
mpz2GEN | 57768346 |
muliispec | 5842958779 |
muliispec_mirror | 85072990 |
muluispec | 5602081137 |
muluui | 222706 |
pari_gmp_free | 1755961 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1104 |
pari_kernel_init | 1112 |
pari_kernel_version | 4 |
red_montgomery | 35059013 |
remi2n | 39078813 |
resetloop | 174328 |
roundr_up_ip | 527484065 |
setloop | 2999289 |
shiftispec | 720352624 |
sqrispec | 1031610079 |
sqrispec_mirror | 41490737 |
sqrtr_abs | 126689612 |
sqrtremi | 5162023 |
subiispec | 3022958980 |
subiuspec | 1778990622 |
truncr | 3654318 |
umodiu | 1328564966 |
xmpn_copy | 6897172 |
xmpn_mirror | 587923751 |
xmpn_mirrorcopy | 720127733 |
xmpn_zero | 238115790 |
![]() |
Generated by: LCOV version 1.16 |