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 - alglin2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.1 lcov report (development 22726-9e20c6a88) Lines: 953 1052 90.6 %
Date: 2018-06-23 05:36:28 Functions: 74 78 94.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flm_charpoly 0
Frobeniusform 0
RgM_replace 0
gerepilemat2_inplace 0
adjsafe 7
jacobi 7
QM_ImZ_hnf 14
QM_ImZ_hnfall 14
caract 14
intersect 14
qfgaussred 14
RgM_adj_from_char 21
QM_minors_coprime 28
cxquadnorm 28
RgM_Fp_charpoly 35
RgM_hess_charpoly 35
carhess 35
matcompanion 35
RgM_hess 42
hess 42
RgM_minpoly 49
minpoly_listpolslice 49
RgXQ_minpoly_naive 56
matrixqz0 63
pnormlpvec 63
minpoly_dvdslice 91
matadjoint0 112
relative0 119
gnorml1 168
pnormlp 196
minpoly_polslice 280
charpoly0 329
QM_charpoly_ZX_bound 336
gnormlp 343
matfrobenius 371
transS 378
RgM_Frobenius 420
weakfrobenius_step1 581
weakfrobenius_step2 581
weakfrobenius_step3 581
FpM_hess 735
easymin 924
QM_ImQ_hnf 1029
minpoly 1078
QM_ImQ_hnfall 1106
QM_ImZ_hnfall_i 1120
qfgaussred_positive 1244
carberkowitz 1316
QM_charpoly_ZX 1428
ZM_charpoly 1876
transD 2261
bad_char 2324
adj 2373
caradj 2387
charpoly 2688
charpoly_bound 3304
QM_charpoly_ZX_i 3640
fix_pol 3696
qfsign 4249
gaussred 4263
QM_charpoly_Flx 4428
ZX_CRT 4428
rot 4760
mattrace 6160
easychar 7308
gsupnorm 8023
transL 14182
FpM_charpoly 18984
Flm_charpoly_i 22698
Flm_hess 22698
suitable 23534
store 63456
gsupnorm_aux 71486
gtrace 142055
gnorm 231259
gnorml1_fake 246064
gnorml2 27864794
gnorml2_i 27864822

Generated by: LCOV version 1.13