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 | 200519 |
muluui | 222726 |
convi | 438628 |
divis | 976967 |
pari_gmp_free | 1755941 |
setloop | 2997877 |
truncr | 3652166 |
sqrtremi | 5164506 |
xmpn_copy | 6887516 |
floorr | 7138388 |
red_montgomery | 34965791 |
divri_with_gmp | 35238079 |
remi2n | 38953884 |
diviuexact | 39356942 |
icopy_ef | 41210471 |
sqrispec_mirror | 41393827 |
mpz2GEN | 57621187 |
divrr_with_gmp | 76056570 |
muliispec_mirror | 85225375 |
divis_rem | 86195182 |
incpos | 103429016 |
incloop | 103828314 |
absdiviu_rem | 110632407 |
GEN2mpz | 115239871 |
sqrtr_abs | 126368492 |
mantissa2nr | 138186732 |
divrr | 142469517 |
divri | 151204622 |
xmpn_zero | 237384027 |
equaliispec | 269117972 |
int_normalize | 308450144 |
affir | 403554043 |
diviuexact_i | 419900200 |
roundr_up_ip | 526984801 |
diviiexact | 532524585 |
xmpn_mirror | 586954790 |
shiftispec | 714347583 |
xmpn_mirrorcopy | 718398388 |
adduispec_offset | 765992213 |
sqrispec | 1025116028 |
umodiu | 1312756653 |
subiuspec | 1775827809 |
dvmdii | 2193572922 |
adduispec | 2786160884 |
subiispec | 3016261988 |
addiispec | 3331619096 |
cmpiispec | 3969102872 |
muluispec | 5608798530 |
muliispec | 5947478633 |
![]() |
Generated by: LCOV version 1.16 |