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 | 199479 |
muluui | 221724 |
convi | 437311 |
divis | 966662 |
pari_gmp_free | 1742366 |
setloop | 2997446 |
truncr | 3541937 |
sqrtremi | 5111104 |
xmpn_copy | 6873887 |
floorr | 6977812 |
diviuexact | 30764276 |
divri_with_gmp | 35169038 |
remi2n | 36204004 |
red_montgomery | 36635852 |
icopy_ef | 41201100 |
sqrispec_mirror | 41374183 |
mpz2GEN | 57629101 |
divrr_with_gmp | 75721955 |
muliispec_mirror | 83862530 |
divis_rem | 85160471 |
incpos | 99075583 |
incloop | 99480896 |
absdiviu_rem | 105435152 |
GEN2mpz | 115255583 |
sqrtr_abs | 125118123 |
mantissa2nr | 137155650 |
divrr | 141780962 |
divri | 150175387 |
xmpn_zero | 235761909 |
equaliispec | 265475139 |
int_normalize | 302655412 |
diviuexact_i | 386445820 |
affir | 400323259 |
diviiexact | 504448325 |
roundr_up_ip | 521380215 |
adduispec_offset | 580080223 |
xmpn_mirror | 582604755 |
shiftispec | 704851737 |
xmpn_mirrorcopy | 712181130 |
sqrispec | 986034482 |
umodiu | 1292269309 |
subiuspec | 1719657263 |
dvmdii | 1905749256 |
adduispec | 2585929130 |
subiispec | 2942692956 |
addiispec | 3260021332 |
cmpiispec | 3824535117 |
muluispec | 5444020233 |
muliispec | 5772278182 |
Generated by: LCOV version 1.16 |