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 ![]() |
GEN2mpz | 115526291 |
absdiviu_rem | 50864536 |
addiispec | 3336570236 |
adduispec | 2788141960 |
adduispec_offset | 764438198 |
addumului | 0 |
affir | 404149499 |
cmpiispec | 3980036950 |
convi | 439477 |
diviiexact | 533879432 |
divis | 325416 |
divis_rem | 86230859 |
diviuexact | 31839755 |
diviuexact_i | 413167105 |
diviuuexact | 200491 |
divri | 151449188 |
divri_with_gmp | 35248972 |
divrr | 142868471 |
divrr_with_gmp | 76400955 |
dvmdii | 2196690310 |
equaliispec | 268850580 |
floorr | 7140818 |
icopy_ef | 41487286 |
incloop | 103763161 |
incneg | 66684 |
incpos | 103361772 |
int_normalize | 306542494 |
mantissa2nr | 138483572 |
mpz2GEN | 57764218 |
muliispec | 5842572954 |
muliispec_mirror | 85170333 |
muluispec | 5600913113 |
muluui | 222717 |
pari_gmp_free | 1755949 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1104 |
pari_kernel_init | 1112 |
pari_kernel_version | 4 |
red_montgomery | 34996326 |
remi2n | 39008532 |
resetloop | 174328 |
roundr_up_ip | 527345461 |
setloop | 2999289 |
shiftispec | 720137851 |
sqrispec | 1031958068 |
sqrispec_mirror | 41487982 |
sqrtr_abs | 126696574 |
sqrtremi | 5161982 |
subiispec | 3022900804 |
subiuspec | 1778777281 |
truncr | 3654387 |
umodiu | 1328295200 |
xmpn_copy | 6897187 |
xmpn_mirror | 587842712 |
xmpn_mirrorcopy | 720073517 |
xmpn_zero | 238084255 |
![]() |
Generated by: LCOV version 1.16 |