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 - basemath - qfisom.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20443-183d202) Lines: 985 1027 95.9 %
Date: 2017-03-27 05:17:48 Functions: 54 54 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ZM_to_GAP 30
ZM_to_zm_canon 145
ZM_trunc_to_zm 8760
ZV_trunc_to_zv 42165
Z_trunc 295145
aut 4690
autom 70
bachcomp 110
bacher 30
checkvecs 130
fingerprint 100
gen_comb 300
gen_group 70
init_bacher 100
init_comb 70
init_flags 100
init_qfauto 130
init_qfgroup 70
init_qfisom 150
is_qfisom 250
iso 370
isometry 30
isostab 340
matgen 11670
operate 1176970
orbdelete 5515
orbit 2005
orbitlen 6010
orbsubtract 2005
possible 7580
qf_to_zmV 145
qfauto 70
qfauto0 70
qfautoexport 10
qfisom 30
qfisom0 30
qfisom_bestmat 90
qfisom_candidates 8520
qfisom_candidates_novec 100
qfisominit 50
qfisominit0 50
qforbits 15
scp 144615
scpforms 2920
scpvecs 2990
scpvector 3864570
stab 520
stabil 5640
unpack_qfisominit 50
zmV_apply_zm 20
zm_apply_zm 20
zm_divmod 5640
zm_maxdiag 240
zv_canon 9925735

Generated by: LCOV version 1.11