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.12.0 lcov report (development 23353-42c433a02) Lines: 954 1052 90.7 %
Date: 2018-12-15 05:41:59 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
QM_ImZ_hnf 14
QM_ImZ_hnfall 14
caract 14
intersect 14
qfgaussred 14
RgM_adj_from_char 21
jacobi 21
QM_minors_coprime 28
cxquadnorm 28
RgM_Fp_charpoly 35
matcompanion 35
RgM_hess_charpoly 49
RgM_minpoly 49
carhess 49
minpoly_listpolslice 49
RgM_hess 56
hess 56
RgXQ_minpoly_naive 63
matrixqz0 63
pnormlpvec 63
minpoly_dvdslice 91
matadjoint0 112
gnorml1 168
pnormlp 196
minpoly_polslice 280
relative0 301
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 959
QM_ImQ_hnf 1029
QM_ImQ_hnfall 1106
minpoly 1113
QM_ImZ_hnfall_i 1120
qfgaussred_positive 1244
carberkowitz 1428
QM_charpoly_ZX 1442
ZM_charpoly 1876
transD 2261
bad_char 2324
adj 2373
caradj 2387
charpoly 2793
charpoly_bound 3318
QM_charpoly_ZX_i 3654
fix_pol 3822
qfsign 4249
gaussred 4263
QM_charpoly_Flx 4813
ZX_CRT 4813
mattrace 6160
easychar 7567
rot 7616
gsupnorm 8233
transL 14182
FpM_charpoly 19075
Flm_charpoly_i 23174
Flm_hess 23174
suitable 23534
store 64597
gsupnorm_aux 72837
gtrace 201091
gnorml1_fake 320880
gnorm 447785
gnorml2 28852826
gnorml2_i 28852854

Generated by: LCOV version 1.13