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 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
Current view: top level - basemath - qfisom.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29806-4d001396c7) Lines: 871 888 98.1 %
Date: 2024-12-21 09:08:57 Functions: 55 55 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
qfautoexport 14
qforbits 21
ZM_to_zm_canon 35
check_qfauto 35
ZM_to_GAP 42
bacher 42
isometry 56
zmV_apply_zm 56
zm_apply_zm 56
qfisom 70
qfisom0 70
qfisominit 84
qfisominit0 84
unpack_qfisominit 84
autom 126
gen_group 126
init_qfgroup 126
qfauto 126
qfauto0 126
bachcomp 154
init_comb 154
qfisom_bestmat 182
qfisom_candidates_novec 182
fingerprint 196
init_bacher 196
init_flags 196
checkvecs 266
init_qfauto 266
init_qfisom 280
qf_to_zmV 301
zm_maxdiag 462
is_qfisom 476
gen_comb 588
isostab 609
iso 665
stab 854
orbit 3752
orbsubtract 3752
scpforms 5166
scpvecs 5320
aut 8057
orbdelete 9177
stabil 10339
zm_divmod 11347
possible 12460
qfisom_candidates 14448
ZM_trunc_to_zm 15498
matgen 21469
orbitlen 21994
ZV_trunc_to_zv 76384
scp 245686
Z_trunc 549227
operate 6417971
scpvector 7046130
zv_canon 22681155

Generated by: LCOV version 1.16