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 | 115380586 |
absdiviu_rem | 110609728 |
addiispec | 3334517833 |
adduispec | 2786653201 |
adduispec_offset | 764715953 |
addumului | 0 |
affir | 403923793 |
cmpiispec | 3966914745 |
convi | 438682 |
diviiexact | 531587704 |
divis | 1006043 |
divis_rem | 86231571 |
diviuexact | 39546567 |
diviuexact_i | 419063795 |
diviuuexact | 200499 |
divri | 151404498 |
divri_with_gmp | 35250984 |
divrr | 142773388 |
divrr_with_gmp | 76149800 |
dvmdii | 2197501539 |
equaliispec | 269593027 |
floorr | 7134851 |
icopy_ef | 41270130 |
incloop | 103403508 |
incneg | 66684 |
incpos | 102995779 |
int_normalize | 307916937 |
mantissa2nr | 138191975 |
mpz2GEN | 57691626 |
muliispec | 5944920366 |
muliispec_mirror | 85041432 |
muluispec | 5609788048 |
muluui | 222716 |
pari_gmp_free | 1755997 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1104 |
pari_kernel_init | 1112 |
pari_kernel_version | 4 |
red_montgomery | 35044910 |
remi2n | 38993095 |
resetloop | 174328 |
roundr_up_ip | 527525902 |
setloop | 2997879 |
shiftispec | 714960725 |
sqrispec | 1028204071 |
sqrispec_mirror | 41399612 |
sqrtr_abs | 126376248 |
sqrtremi | 5182346 |
subiispec | 3012882352 |
subiuspec | 1773259778 |
truncr | 3649273 |
umodiu | 1320342671 |
xmpn_copy | 6890252 |
xmpn_mirror | 587247751 |
xmpn_mirrorcopy | 718727292 |
xmpn_zero | 237549218 |
![]() |
Generated by: LCOV version 1.16 |