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 | 115459282 |
absdiviu_rem | 113207322 |
addiispec | 3334169571 |
adduispec | 2785363494 |
adduispec_offset | 764172214 |
addumului | 0 |
affir | 403739154 |
cmpiispec | 3979530394 |
convi | 438981 |
diviiexact | 534510029 |
divis | 1006072 |
divis_rem | 86198770 |
diviuexact | 40545147 |
diviuexact_i | 422538613 |
diviuuexact | 200500 |
divri | 151395193 |
divri_with_gmp | 35250183 |
divrr | 142741079 |
divrr_with_gmp | 76128448 |
dvmdii | 2195303751 |
equaliispec | 269626251 |
floorr | 7127301 |
icopy_ef | 41463496 |
incloop | 102990829 |
incneg | 66684 |
incpos | 102587484 |
int_normalize | 306122098 |
mantissa2nr | 138185055 |
mpz2GEN | 57731167 |
muliispec | 5942727826 |
muliispec_mirror | 85053813 |
muluispec | 5612421431 |
muluui | 222727 |
pari_gmp_free | 1755940 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1104 |
pari_kernel_init | 1112 |
pari_kernel_version | 4 |
red_montgomery | 35035040 |
remi2n | 38970839 |
resetloop | 174328 |
roundr_up_ip | 527333640 |
setloop | 2999280 |
shiftispec | 717890376 |
sqrispec | 1030675728 |
sqrispec_mirror | 41408507 |
sqrtr_abs | 126373080 |
sqrtremi | 5160635 |
subiispec | 3019944496 |
subiuspec | 1777166090 |
truncr | 3624565 |
umodiu | 1328064510 |
xmpn_copy | 6889767 |
xmpn_mirror | 587167412 |
xmpn_mirrorcopy | 718737104 |
xmpn_zero | 237529168 |
![]() |
Generated by: LCOV version 1.16 |