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 | 1104 |
pari_kernel_init | 1112 |
incneg | 66684 |
resetloop | 174328 |
diviuuexact | 200485 |
muluui | 222710 |
divis | 325429 |
convi | 439467 |
pari_gmp_free | 1755950 |
setloop | 2999291 |
truncr | 3635280 |
sqrtremi | 5161973 |
xmpn_copy | 6897142 |
floorr | 7136620 |
diviuexact | 31843915 |
red_montgomery | 34994149 |
divri_with_gmp | 35249102 |
remi2n | 39079569 |
sqrispec_mirror | 41479325 |
icopy_ef | 41483377 |
absdiviu_rem | 50856333 |
mpz2GEN | 57767432 |
divrr_with_gmp | 76387995 |
muliispec_mirror | 85192635 |
divis_rem | 86219957 |
incpos | 103056337 |
incloop | 103466347 |
GEN2mpz | 115532225 |
sqrtr_abs | 126694647 |
mantissa2nr | 138480269 |
divrr | 142849895 |
divri | 151444844 |
xmpn_zero | 238061450 |
equaliispec | 268839944 |
int_normalize | 306488489 |
affir | 404087889 |
diviuexact_i | 413248855 |
roundr_up_ip | 527368913 |
diviiexact | 533933732 |
xmpn_mirror | 587797089 |
xmpn_mirrorcopy | 720060244 |
shiftispec | 720205634 |
adduispec_offset | 764522020 |
sqrispec | 1031771486 |
umodiu | 1330003796 |
subiuspec | 1778756634 |
dvmdii | 2196626944 |
adduispec | 2789971091 |
subiispec | 3022526767 |
addiispec | 3336604227 |
cmpiispec | 3979474581 |
muluispec | 5601169312 |
muliispec | 5842894164 |
![]() |
Generated by: LCOV version 1.16 |