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 | 200472 |
muluui | 222706 |
divis | 325465 |
convi | 439350 |
pari_gmp_free | 1755952 |
setloop | 2999287 |
truncr | 3645093 |
sqrtremi | 5160709 |
xmpn_copy | 6896455 |
floorr | 7132992 |
diviuexact | 31840374 |
red_montgomery | 34989301 |
divri_with_gmp | 35250609 |
remi2n | 39114993 |
sqrispec_mirror | 41401195 |
icopy_ef | 41476355 |
absdiviu_rem | 50853429 |
mpz2GEN | 57763761 |
divrr_with_gmp | 76344190 |
muliispec_mirror | 85113826 |
divis_rem | 86244068 |
incpos | 103401610 |
incloop | 103804933 |
GEN2mpz | 115524902 |
sqrtr_abs | 126560378 |
mantissa2nr | 138401227 |
divrr | 142807745 |
divri | 151453647 |
xmpn_zero | 237914311 |
equaliispec | 269630759 |
int_normalize | 306546762 |
affir | 404139982 |
diviuexact_i | 413118253 |
roundr_up_ip | 527463941 |
diviiexact | 533825269 |
xmpn_mirror | 587840563 |
xmpn_mirrorcopy | 719595445 |
shiftispec | 720066169 |
adduispec_offset | 764535993 |
sqrispec | 1031421448 |
umodiu | 1328948571 |
subiuspec | 1778878250 |
dvmdii | 2195939437 |
adduispec | 2788285624 |
subiispec | 3022771357 |
addiispec | 3336584117 |
cmpiispec | 3979814860 |
muluispec | 5601085254 |
muliispec | 5842364337 |
![]() |
Generated by: LCOV version 1.16 |