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 | 199485 |
muluui | 221725 |
convi | 423657 |
divis | 958770 |
pari_gmp_free | 1739271 |
setloop | 2996871 |
truncr | 3513976 |
sqrtremi | 5097067 |
floorr | 6966226 |
xmpn_copy | 7126100 |
diviuexact | 30312042 |
sqrispec_mirror | 32814652 |
divri_with_gmp | 34823908 |
remi2n | 36356267 |
red_montgomery | 37417655 |
icopy_ef | 44179946 |
mpz2GEN | 55564262 |
divrr_with_gmp | 73387473 |
muliispec_mirror | 82445507 |
divis_rem | 83534067 |
incpos | 100922758 |
incloop | 101330102 |
absdiviu_rem | 109971526 |
GEN2mpz | 111125638 |
sqrtr_abs | 119907577 |
mantissa2nr | 132988662 |
divrr | 136586302 |
divri | 139060425 |
xmpn_zero | 227874625 |
equaliispec | 260780640 |
int_normalize | 292159961 |
diviuexact_i | 375340380 |
affir | 389892295 |
diviiexact | 494353571 |
roundr_up_ip | 516705647 |
xmpn_mirror | 559966285 |
adduispec_offset | 574176200 |
xmpn_mirrorcopy | 686631702 |
shiftispec | 691659120 |
sqrispec | 977388990 |
umodiu | 1183438567 |
subiuspec | 1588095053 |
dvmdii | 1766088940 |
adduispec | 2440090258 |
subiispec | 2793885077 |
addiispec | 3103988539 |
cmpiispec | 3544772007 |
muluispec | 5025532560 |
muliispec | 5284609605 |
Generated by: LCOV version 1.14 |