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 | 1076 |
pari_kernel_init | 1084 |
incneg | 66652 |
resetloop | 174328 |
diviuuexact | 199451 |
muluui | 221701 |
convi | 427410 |
divis | 965811 |
pari_gmp_free | 1733455 |
setloop | 2996963 |
truncr | 3473110 |
sqrtremi | 5099913 |
xmpn_copy | 6679462 |
floorr | 6945333 |
diviuexact | 30747054 |
divri_with_gmp | 35069711 |
remi2n | 36392778 |
red_montgomery | 37306967 |
icopy_ef | 40502628 |
sqrispec_mirror | 41339451 |
mpz2GEN | 54914464 |
divrr_with_gmp | 74634753 |
divis_rem | 83917125 |
muliispec_mirror | 84034384 |
incpos | 99170150 |
incloop | 99570324 |
absdiviu_rem | 109526993 |
GEN2mpz | 109826504 |
sqrtr_abs | 124951321 |
mantissa2nr | 137152218 |
divrr | 140165762 |
divri | 150754229 |
xmpn_zero | 234422454 |
equaliispec | 269941158 |
int_normalize | 291626753 |
diviuexact_i | 370547167 |
affir | 396799942 |
diviiexact | 472196670 |
roundr_up_ip | 520712104 |
adduispec_offset | 576036254 |
xmpn_mirror | 579713879 |
shiftispec | 690297741 |
xmpn_mirrorcopy | 709155567 |
sqrispec | 986449484 |
umodiu | 1189213311 |
subiuspec | 1659992489 |
dvmdii | 1889723474 |
adduispec | 2511193964 |
subiispec | 2861985024 |
addiispec | 3157498151 |
cmpiispec | 3718405836 |
muluispec | 5322354708 |
muliispec | 5662796760 |
![]() |
Generated by: LCOV version 1.16 |