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 | 111120621 |
absdiviu_rem | 109977527 |
addiispec | 3104096788 |
adduispec | 2439373305 |
adduispec_offset | 574071543 |
addumului | 0 |
affir | 389838019 |
cmpiispec | 3544734796 |
convi | 423660 |
diviiexact | 494377200 |
divis | 958767 |
divis_rem | 83517696 |
diviuexact | 30311622 |
diviuexact_i | 375360875 |
diviuuexact | 199477 |
divri | 139059598 |
divri_with_gmp | 34823769 |
divrr | 136573259 |
divrr_with_gmp | 73381674 |
dvmdii | 1765864135 |
equaliispec | 260779179 |
floorr | 6963967 |
icopy_ef | 44177605 |
incloop | 101161701 |
incneg | 66652 |
incpos | 100754295 |
int_normalize | 292255197 |
mantissa2nr | 132981038 |
mpz2GEN | 55561616 |
muliispec | 5285002889 |
muliispec_mirror | 82406730 |
muluispec | 5025807851 |
muluui | 221688 |
pari_gmp_free | 1739274 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1064 |
pari_kernel_init | 1072 |
pari_kernel_version | 4 |
red_montgomery | 37395138 |
remi2n | 36381613 |
resetloop | 174328 |
roundr_up_ip | 516654249 |
setloop | 2996870 |
shiftispec | 691691781 |
sqrispec | 977258051 |
sqrispec_mirror | 32819573 |
sqrtr_abs | 119894752 |
sqrtremi | 5096977 |
subiispec | 2793825791 |
subiuspec | 1588113180 |
truncr | 3511083 |
umodiu | 1182477376 |
xmpn_copy | 7125855 |
xmpn_mirror | 559893602 |
xmpn_mirrorcopy | 686579876 |
xmpn_zero | 227857432 |
Generated by: LCOV version 1.14 |