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 | 200468 |
muluui | 222690 |
divis | 325430 |
convi | 439443 |
pari_gmp_free | 1755955 |
setloop | 2999288 |
truncr | 3652675 |
sqrtremi | 5162050 |
xmpn_copy | 6897136 |
floorr | 7141226 |
diviuexact | 31843821 |
red_montgomery | 35016168 |
divri_with_gmp | 35250593 |
remi2n | 39047146 |
icopy_ef | 41492456 |
sqrispec_mirror | 41496151 |
absdiviu_rem | 50864503 |
mpz2GEN | 57764538 |
divrr_with_gmp | 76407377 |
muliispec_mirror | 85298256 |
divis_rem | 86250731 |
incpos | 103135904 |
incloop | 103537717 |
GEN2mpz | 115526406 |
sqrtr_abs | 126704975 |
mantissa2nr | 138495605 |
divrr | 142877391 |
divri | 151455764 |
xmpn_zero | 238109515 |
equaliispec | 268849520 |
int_normalize | 306044465 |
affir | 404277175 |
diviuexact_i | 413355857 |
roundr_up_ip | 527460413 |
diviiexact | 534055301 |
xmpn_mirror | 588163115 |
xmpn_mirrorcopy | 720373265 |
shiftispec | 720661937 |
adduispec_offset | 764943808 |
sqrispec | 1032249710 |
umodiu | 1329192885 |
subiuspec | 1779095000 |
dvmdii | 2197945487 |
adduispec | 2790050828 |
subiispec | 3023830527 |
addiispec | 3337836222 |
cmpiispec | 3981241191 |
muluispec | 5604975548 |
muliispec | 5846213181 |
![]() |
Generated by: LCOV version 1.16 |