Code coverage tests

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:

The target is 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
Current view: top level - kernel/gmp - mp.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 19378-5335519) Lines: 639 716 89.2 %
Date: 2016-08-31 06:11:49 Functions: 53 54 98.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
GEN2mpz 243278704
addiispec 1677007771
adduispec 1312672545
adduispec_offset 325612474
addumului 759654
affir 132307874
cmpiispec 2127678437
convi 481995
diviiexact 322494710
divis 461309
divis_rem 32135694
diviu_rem 125786391
diviuexact 315997536
diviuuexact 511744
divri 17710625
divri_with_gmp 3582454
divrr 107281694
divrr_with_gmp 31255007
dvmdii 833640364
equaliispec 56017167
floorr 402121
icopy_ef 18876800
incloop 32431099
incneg 6184
incpos 32416243
int_normalize 150373370
mantissa2nr 23569504
mpz2GEN 225944397
muliispec 1879661469
muliispec_mirror 61613685
muluispec 2136566899
muluui 533952
pari_gmp_free 340738
pari_gmp_realloc 0
pari_kernel_close 1276
pari_kernel_init 768
red_montgomery 6601774
remi2n 11351547
resetloop 156728
roundr_up_ip 272637822
setloop 2391190
shiftispec 352123342
sqrispec 649446156
sqrispec_mirror 4286504
sqrtr_abs 21223537
sqrtremi 2660058
subiispec 1785658572
subiuspec 1101909277
truncr 1453097
umodiu 779571867
xmpn_copy 1253953
xmpn_mirror 208645386
xmpn_mirrorcopy 270429504
xmpn_zero 56060998

Generated by: LCOV version 1.11