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 | 200543 |
muluui | 222771 |
convi | 438547 |
divis | 966623 |
pari_gmp_free | 1759242 |
setloop | 2997603 |
truncr | 3550318 |
sqrtremi | 5114776 |
xmpn_copy | 6707429 |
floorr | 7004242 |
red_montgomery | 33629396 |
divri_with_gmp | 35237328 |
remi2n | 37632348 |
diviuexact | 39190774 |
icopy_ef | 41198810 |
sqrispec_mirror | 41455415 |
mpz2GEN | 57562624 |
divrr_with_gmp | 75827931 |
divis_rem | 85250794 |
muliispec_mirror | 85702012 |
incpos | 103603818 |
incloop | 104003163 |
absdiviu_rem | 109923787 |
GEN2mpz | 115123516 |
sqrtr_abs | 125711110 |
mantissa2nr | 137507926 |
divrr | 141934274 |
divri | 151134268 |
xmpn_zero | 236661651 |
equaliispec | 267264562 |
int_normalize | 307296556 |
affir | 402432132 |
diviuexact_i | 414615536 |
roundr_up_ip | 525441707 |
diviiexact | 526528056 |
xmpn_mirror | 587093001 |
shiftispec | 705977442 |
xmpn_mirrorcopy | 718240228 |
adduispec_offset | 770004031 |
sqrispec | 1022020935 |
umodiu | 1306511467 |
subiuspec | 1770305201 |
dvmdii | 2190602664 |
adduispec | 2789754035 |
subiispec | 3011982479 |
addiispec | 3326172120 |
cmpiispec | 3958981381 |
muluispec | 5607383485 |
muliispec | 5946058376 |
![]() |
Generated by: LCOV version 1.16 |