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 - alglin2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 1055 1166 90.5 %
Date: 2024-04-23 08:07:35 Functions: 84 90 93.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flm_charpoly 1999
Flm_charpoly_i 23757
Flm_hess 23757
FpM_charpoly 19292
FpM_hess 785
Frobeniusform 0
QM_ImQ 56
QM_ImQ_all 1141
QM_ImQ_hnf 1008
QM_ImQ_hnfall 1085
QM_ImZ 28
QM_ImZ_all 28
QM_ImZ_all_i 1162
QM_ImZ_hnf 0
QM_ImZ_hnfall 0
QM_charpoly_ZX 1827
QM_charpoly_ZX_bound 266
QM_charpoly_ZX_i 4057
QM_charpoly_ZX_slice 3904
QM_charpoly_ZX_worker 3904
QM_minors_coprime 42
RgM_Cholesky 65039
RgM_Fp_charpoly 35
RgM_Frobenius 434
RgM_adj_from_char 21
RgM_hess 168
RgM_hess_charpoly 161
RgM_minpoly 49
RgM_replace 0
RgXQ_minpoly 3199
RgXQ_minpoly_FpXQ 0
RgXQ_minpoly_FpXQXQ 21
RgXQ_minpoly_fast 3199
RgXQ_minpoly_naive 63
ZM_charpoly 1964
adj 105
adjsafe 7
bad_char 56
caract 14
caract_const 14
caradj 119
carberkowitz 1554
carhess 161
charpoly 3168
charpoly0 490
charpoly_bound 3490
cxquadnorm 28
easychar 5065
easymin 3570
fix_pol 1792
gaussred 12039
gerepilemat2_inplace 0
gnorm 3316990
gnorml1 168
gnorml1_fake 142513
gnorml2 35369185
gnorml2_i 35369881
gnormlp 357
gsupnorm 1239753
gsupnorm_aux 37566002
gtrace 736219
hess 168
intersect 3752
jacobi 28
matadjoint0 112
matcompanion 35
matfrobenius 385
matrixqz0 133
mattrace 1939
minpoly 3570
minpoly_dvdslice 105
minpoly_listpolslice 49
minpoly_polslice 308
pnormlp 196
pnormlpvec 63
qfgaussred 21
qfgaussred0 21
qfgaussred2 7
qfgaussred_positive 66274
qfsign 12018
relative0 364
rot 19180
store 31513201
suitable 46946
transD 2317
transL 14259
transS 413
weakfrobenius_step1 609
weakfrobenius_step2 609
weakfrobenius_step3 609

Generated by: LCOV version 1.14