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 | 109811756 |
absdiviu_rem | 109402267 |
addiispec | 3185184653 |
adduispec | 2527020490 |
adduispec_offset | 575126152 |
addumului | 0 |
affir | 395596634 |
cmpiispec | 3725478801 |
convi | 425555 |
diviiexact | 468848525 |
divis | 965355 |
divis_rem | 83220235 |
diviuexact | 30410220 |
diviuexact_i | 366993777 |
diviuuexact | 199479 |
divri | 150638604 |
divri_with_gmp | 35029632 |
divrr | 139355974 |
divrr_with_gmp | 74543374 |
dvmdii | 1873176567 |
equaliispec | 260166707 |
floorr | 6936441 |
icopy_ef | 40474747 |
incloop | 103430985 |
incneg | 66652 |
incpos | 103026586 |
int_normalize | 291578149 |
mantissa2nr | 136161561 |
mpz2GEN | 54907305 |
muliispec | 5633955739 |
muliispec_mirror | 84136464 |
muluispec | 5303717324 |
muluui | 221686 |
pari_gmp_free | 1731926 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1064 |
pari_kernel_init | 1072 |
pari_kernel_version | 4 |
red_montgomery | 37354857 |
remi2n | 36367899 |
resetloop | 174328 |
roundr_up_ip | 519134243 |
setloop | 2996905 |
shiftispec | 684422871 |
sqrispec | 982575118 |
sqrispec_mirror | 41309092 |
sqrtr_abs | 124562534 |
sqrtremi | 5097010 |
subiispec | 2868496791 |
subiuspec | 1664217881 |
truncr | 3451093 |
umodiu | 1176181729 |
xmpn_copy | 6662293 |
xmpn_mirror | 577514670 |
xmpn_mirrorcopy | 708168847 |
xmpn_zero | 233856237 |
Generated by: LCOV version 1.14 |