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 | 1100 |
pari_kernel_init | 1108 |
incneg | 66684 |
resetloop | 174328 |
diviuuexact | 200492 |
muluui | 222704 |
convi | 438297 |
divis | 966296 |
pari_gmp_free | 1758364 |
setloop | 2997596 |
truncr | 3527196 |
sqrtremi | 5114371 |
xmpn_copy | 6706519 |
floorr | 6976855 |
red_montgomery | 33636342 |
divri_with_gmp | 35194667 |
remi2n | 37328468 |
diviuexact | 38818748 |
icopy_ef | 41068060 |
sqrispec_mirror | 41385821 |
mpz2GEN | 57593806 |
divrr_with_gmp | 75730301 |
muliispec_mirror | 84171700 |
divis_rem | 85214731 |
incpos | 103038849 |
incloop | 103447636 |
absdiviu_rem | 109387973 |
GEN2mpz | 115184860 |
sqrtr_abs | 125196203 |
mantissa2nr | 137222402 |
divrr | 141800889 |
divri | 150495355 |
xmpn_zero | 235853388 |
equaliispec | 265911118 |
int_normalize | 306379654 |
affir | 400709850 |
diviuexact_i | 412752469 |
roundr_up_ip | 521845380 |
diviiexact | 525084919 |
xmpn_mirror | 583145868 |
shiftispec | 703109288 |
xmpn_mirrorcopy | 713027583 |
adduispec_offset | 764826964 |
sqrispec | 1017677249 |
umodiu | 1303577451 |
subiuspec | 1766475527 |
dvmdii | 2174384635 |
adduispec | 2773629491 |
subiispec | 2999481539 |
addiispec | 3311532252 |
cmpiispec | 3942652901 |
muluispec | 5544517146 |
muliispec | 5878726426 |
![]() |
Generated by: LCOV version 1.16 |