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 | 200482 |
muluui | 222705 |
divis | 325464 |
convi | 439345 |
pari_gmp_free | 1755947 |
setloop | 2999283 |
truncr | 3652516 |
sqrtremi | 5160757 |
xmpn_copy | 6896480 |
floorr | 7136774 |
diviuexact | 31842986 |
red_montgomery | 34985738 |
divri_with_gmp | 35251076 |
remi2n | 38998833 |
sqrispec_mirror | 41393960 |
icopy_ef | 41480640 |
absdiviu_rem | 50859768 |
mpz2GEN | 57761598 |
divrr_with_gmp | 76351224 |
muliispec_mirror | 85173839 |
divis_rem | 86234662 |
incpos | 103282742 |
incloop | 103685742 |
GEN2mpz | 115520639 |
sqrtr_abs | 126566612 |
mantissa2nr | 138412237 |
divrr | 142817089 |
divri | 151455874 |
xmpn_zero | 237928792 |
equaliispec | 269631623 |
int_normalize | 306342983 |
affir | 404262317 |
diviuexact_i | 413131212 |
roundr_up_ip | 527515112 |
diviiexact | 533827129 |
xmpn_mirror | 588035466 |
xmpn_mirrorcopy | 719746942 |
shiftispec | 720105853 |
adduispec_offset | 764527868 |
sqrispec | 1031549654 |
umodiu | 1328428159 |
subiuspec | 1778881537 |
dvmdii | 2195395979 |
adduispec | 2788081540 |
subiispec | 3022925800 |
addiispec | 3336552472 |
cmpiispec | 3979744047 |
muluispec | 5600781250 |
muliispec | 5842556194 |
![]() |
Generated by: LCOV version 1.16 |