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 | 200478 |
muluui | 222713 |
divis | 325462 |
convi | 439357 |
pari_gmp_free | 1755951 |
setloop | 2999279 |
truncr | 3627108 |
sqrtremi | 5160730 |
xmpn_copy | 6896333 |
floorr | 7128700 |
diviuexact | 31840224 |
red_montgomery | 34988130 |
divri_with_gmp | 35251644 |
remi2n | 39074350 |
sqrispec_mirror | 41404060 |
icopy_ef | 41474582 |
absdiviu_rem | 50867443 |
mpz2GEN | 57762822 |
divrr_with_gmp | 76329458 |
muliispec_mirror | 85127599 |
divis_rem | 86199526 |
incpos | 103515608 |
incloop | 103917223 |
GEN2mpz | 115522784 |
sqrtr_abs | 126563025 |
mantissa2nr | 138404939 |
divrr | 142786659 |
divri | 151450901 |
xmpn_zero | 237904362 |
equaliispec | 269626415 |
int_normalize | 306693501 |
affir | 404097617 |
diviuexact_i | 413072294 |
roundr_up_ip | 527465158 |
diviiexact | 533782516 |
xmpn_mirror | 587813697 |
xmpn_mirrorcopy | 719615116 |
shiftispec | 719980601 |
adduispec_offset | 764634618 |
sqrispec | 1031420390 |
umodiu | 1326710711 |
subiuspec | 1778673835 |
dvmdii | 2195623692 |
adduispec | 2786103278 |
subiispec | 3022531229 |
addiispec | 3336344614 |
cmpiispec | 3979615343 |
muluispec | 5600739724 |
muliispec | 5842165262 |
![]() |
Generated by: LCOV version 1.16 |