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-bordeaux1.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.8.0 lcov report (development 18603-5baf4f6) Lines: 978 1018 96.1 %
Date: 2016-02-11 Functions: 54 54 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 657 758 86.7 %

Function Name Sort by function name Hit count Sort by hit count
ZM_to_GAP 42
ZM_to_zm_canon 189
ZM_trunc_to_zm 10668
ZV_trunc_to_zv 51541
Z_trunc 372547
aut 5628
autom 84
bachcomp 154
bacher 42
checkvecs 168
fingerprint 126
gen_comb 364
gen_group 84
init_bacher 126
init_comb 84
init_flags 126
init_qfauto 168
init_qfgroup 84
init_qfisom 182
is_qfisom 308
iso 518
isometry 42
isostab 476
matgen 15610
operate 1333234
orbdelete 5719
orbit 2443
orbitlen 7987
orbsubtract 2443
possible 9688
qf_to_zmV 189
qfauto 84
qfauto0 84
qfautoexport 14
qfisom 42
qfisom0 42
qfisom_bestmat 126
qfisom_candidates 9660
qfisom_candidates_novec 126
qfisominit 56
qfisominit0 56
qforbits 21
scp 197169
scpforms 3556
scpvecs 3640
scpvector 5204010
stab 644
stabil 7553
unpack_qfisominit 56
zmV_apply_zm 28
zm_apply_zm 28
zm_divmod 7553
zm_maxdiag 308
zv_canon 12758452

Generated by: LCOV version 1.9