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 29712-7c8a932571) Lines: 871 888 98.1 %
Date: 2024-11-15 09:08:45 Functions: 55 55 100.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.16