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 | 115383271 |
absdiviu_rem | 110608377 |
addiispec | 3332491740 |
adduispec | 2783439095 |
adduispec_offset | 764449483 |
addumului | 0 |
affir | 404028681 |
cmpiispec | 3975941519 |
convi | 439101 |
diviiexact | 531480184 |
divis | 1006061 |
divis_rem | 86201290 |
diviuexact | 39581080 |
diviuexact_i | 419008630 |
diviuuexact | 200456 |
divri | 151405730 |
divri_with_gmp | 35251548 |
divrr | 142804595 |
divrr_with_gmp | 76156404 |
dvmdii | 2196415953 |
equaliispec | 269623798 |
floorr | 7138807 |
icopy_ef | 41274174 |
incloop | 103130328 |
incneg | 66684 |
incpos | 102723481 |
int_normalize | 307677605 |
mantissa2nr | 138205650 |
mpz2GEN | 57693099 |
muliispec | 5939153446 |
muliispec_mirror | 85096658 |
muluispec | 5603243862 |
muluui | 222690 |
pari_gmp_free | 1755993 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1104 |
pari_kernel_init | 1112 |
pari_kernel_version | 4 |
red_montgomery | 35042151 |
remi2n | 39009448 |
resetloop | 174328 |
roundr_up_ip | 527347284 |
setloop | 2999277 |
shiftispec | 715256704 |
sqrispec | 1030521590 |
sqrispec_mirror | 41404848 |
sqrtr_abs | 126390892 |
sqrtremi | 5182391 |
subiispec | 3019226694 |
subiuspec | 1774188176 |
truncr | 3652819 |
umodiu | 1325324207 |
xmpn_copy | 6889767 |
xmpn_mirror | 587308315 |
xmpn_mirrorcopy | 718727899 |
xmpn_zero | 237531216 |
![]() |
Generated by: LCOV version 1.16 |