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 | 1088 |
pari_kernel_init | 1096 |
incneg | 66652 |
resetloop | 174328 |
diviuuexact | 199445 |
muluui | 221651 |
convi | 437051 |
divis | 968395 |
pari_gmp_free | 1736824 |
setloop | 2997433 |
truncr | 3531387 |
sqrtremi | 5113139 |
xmpn_copy | 6871010 |
floorr | 6977081 |
diviuexact | 31142883 |
divri_with_gmp | 35162349 |
remi2n | 36036568 |
red_montgomery | 36658752 |
icopy_ef | 40881224 |
sqrispec_mirror | 41350895 |
mpz2GEN | 57419889 |
divrr_with_gmp | 75698568 |
muliispec_mirror | 83843072 |
divis_rem | 85113003 |
incpos | 98831488 |
incloop | 99240412 |
absdiviu_rem | 111107709 |
GEN2mpz | 114837252 |
sqrtr_abs | 125132289 |
mantissa2nr | 137104602 |
divrr | 141549384 |
divri | 150159902 |
xmpn_zero | 235719500 |
equaliispec | 272684602 |
int_normalize | 302957813 |
diviuexact_i | 389249448 |
affir | 399514521 |
diviiexact | 505873688 |
roundr_up_ip | 520946080 |
adduispec_offset | 580902313 |
xmpn_mirror | 581850724 |
shiftispec | 704723149 |
xmpn_mirrorcopy | 711870493 |
sqrispec | 987691998 |
umodiu | 1285630933 |
subiuspec | 1723219529 |
dvmdii | 1907553545 |
adduispec | 2587177768 |
subiispec | 2948047834 |
addiispec | 3264089012 |
cmpiispec | 3832333835 |
muluispec | 5457387924 |
muliispec | 5791785798 |
Generated by: LCOV version 1.16 |