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 | 200430 |
muluui | 222683 |
convi | 438670 |
divis | 1006043 |
pari_gmp_free | 1755939 |
setloop | 2997876 |
truncr | 3629385 |
sqrtremi | 5182331 |
xmpn_copy | 6890198 |
floorr | 7128714 |
red_montgomery | 35036709 |
divri_with_gmp | 35251285 |
remi2n | 38981900 |
diviuexact | 39413678 |
icopy_ef | 41257969 |
sqrispec_mirror | 41396701 |
mpz2GEN | 57698486 |
divrr_with_gmp | 76135902 |
muliispec_mirror | 85091403 |
divis_rem | 86168470 |
incpos | 102775756 |
incloop | 103178843 |
absdiviu_rem | 110782423 |
GEN2mpz | 115394503 |
sqrtr_abs | 126376658 |
mantissa2nr | 138189513 |
divrr | 142765581 |
divri | 151400622 |
xmpn_zero | 237518491 |
equaliispec | 269586953 |
int_normalize | 308627188 |
affir | 403819120 |
diviuexact_i | 420693772 |
roundr_up_ip | 527611430 |
diviiexact | 533364173 |
xmpn_mirror | 587289281 |
shiftispec | 714339904 |
xmpn_mirrorcopy | 718624064 |
adduispec_offset | 767327888 |
sqrispec | 1025341973 |
umodiu | 1314183757 |
subiuspec | 1777227713 |
dvmdii | 2195778045 |
adduispec | 2787699261 |
subiispec | 3018172873 |
addiispec | 3333941091 |
cmpiispec | 3971262188 |
muluispec | 5616339813 |
muliispec | 5953219280 |
![]() |
Generated by: LCOV version 1.16 |