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 18948-dd2a64a) Lines: 641 716 89.5 %
Date: 2016-05-27 Functions: 53 54 98.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 425 533 79.7 %

Function Name Sort by function name Hit count Sort by hit count
GEN2mpz 162353347
addiispec 1436104981
adduispec 1171112673
adduispec_offset 339432570
addumului 1097940
affir 132435412
cmpiispec 1983558373
convi 475831
diviiexact 254496448
divis 340507
divis_rem 30773331
diviu_rem 122717530
diviuexact 233170349
diviuuexact 503810
divri 17630618
divri_with_gmp 3585827
divrr 105629461
divrr_with_gmp 31027973
dvmdii 769933282
equaliispec 47364897
floorr 510357
icopy_ef 18812646
incloop 31326679
incneg 6188
incpos 31339817
int_normalize 137107318
mantissa2nr 23522983
mpz2GEN 144537929
muliispec 1547763917
muliispec_mirror 61055166
muluispec 1742826475
muluui 526018
pari_gmp_free 7475
pari_gmp_realloc 0
pari_kernel_close 1272
pari_kernel_init 1780
red_montgomery 6612762
remi2n 10498937
resetloop 156744
roundr_up_ip 176815165
setloop 2233431
shiftispec 282889510
sqrispec 614549122
sqrispec_mirror 4212208
sqrtr_abs 22494719
sqrtremi 1695493
subiispec 1710891094
subiuspec 1034410854
truncr 743415
umodiu 663055929
xmpn_copy 1250151
xmpn_mirror 209012706
xmpn_mirrorcopy 269394148
xmpn_zero 57108519

Generated by: LCOV version 1.9