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 | 199468 |
muluui | 221714 |
convi | 423667 |
divis | 958770 |
pari_gmp_free | 1739277 |
setloop | 2996869 |
truncr | 3482191 |
sqrtremi | 5096935 |
floorr | 6956351 |
xmpn_copy | 7125811 |
diviuexact | 30310769 |
sqrispec_mirror | 32824955 |
divri_with_gmp | 34823582 |
remi2n | 36398149 |
red_montgomery | 37390751 |
icopy_ef | 44174648 |
mpz2GEN | 55561861 |
divrr_with_gmp | 73355623 |
muliispec_mirror | 82421712 |
divis_rem | 83481373 |
incpos | 100956000 |
incloop | 101364691 |
absdiviu_rem | 109982588 |
GEN2mpz | 111121553 |
sqrtr_abs | 119891451 |
mantissa2nr | 132971066 |
divrr | 136534164 |
divri | 139051323 |
xmpn_zero | 227831242 |
equaliispec | 260771497 |
int_normalize | 292134437 |
diviuexact_i | 375209236 |
affir | 389742869 |
diviiexact | 494144266 |
roundr_up_ip | 516611446 |
xmpn_mirror | 559779031 |
adduispec_offset | 574266488 |
xmpn_mirrorcopy | 686510677 |
shiftispec | 691543001 |
sqrispec | 977040706 |
umodiu | 1183291363 |
subiuspec | 1587601021 |
dvmdii | 1765733924 |
adduispec | 2439877638 |
subiispec | 2793146527 |
addiispec | 3103474347 |
cmpiispec | 3544033121 |
muluispec | 5024632236 |
muliispec | 5284292381 |
Generated by: LCOV version 1.14 |