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 | 1064 |
pari_kernel_init | 1072 |
incneg | 66652 |
resetloop | 174328 |
diviuuexact | 199439 |
muluui | 221662 |
convi | 423656 |
divis | 958768 |
pari_gmp_free | 1739258 |
setloop | 2996871 |
truncr | 3481916 |
sqrtremi | 5096978 |
floorr | 6954591 |
xmpn_copy | 7125599 |
diviuexact | 30307662 |
sqrispec_mirror | 32823668 |
divri_with_gmp | 34823397 |
remi2n | 36325980 |
red_montgomery | 37334049 |
icopy_ef | 44168133 |
mpz2GEN | 55559582 |
divrr_with_gmp | 73354460 |
muliispec_mirror | 82433889 |
divis_rem | 83474431 |
incpos | 101069783 |
incloop | 101482243 |
absdiviu_rem | 109969338 |
GEN2mpz | 111116659 |
sqrtr_abs | 119888969 |
mantissa2nr | 132971451 |
divrr | 136532987 |
divri | 139050721 |
xmpn_zero | 227825917 |
equaliispec | 260771585 |
int_normalize | 292148068 |
diviuexact_i | 375130520 |
affir | 389723662 |
diviiexact | 494047289 |
roundr_up_ip | 516618681 |
xmpn_mirror | 559762116 |
adduispec_offset | 574245346 |
xmpn_mirrorcopy | 686523081 |
shiftispec | 691465994 |
sqrispec | 977053147 |
umodiu | 1184354288 |
subiuspec | 1587511062 |
dvmdii | 1765336725 |
adduispec | 2440940363 |
subiispec | 2793110217 |
addiispec | 3103078989 |
cmpiispec | 3543816129 |
muluispec | 5023414608 |
muliispec | 5283465953 |
Generated by: LCOV version 1.14 |