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.0 lcov report (development 21913-852521c) Lines: 932 1031 90.4 %
Date: 2018-02-19 06:15:51 Functions: 70 74 94.6 %
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
FpM_hess 14
QM_ImZ_hnf 14
QM_ImZ_hnfall 14
caract 14
intersect 14
qfgaussred 14
RgM_adj_from_char 21
carhess 21
QM_minors_coprime 28
cxquadnorm 28
hess 28
RgM_Fp_charpoly 35
matcompanion 35
RgM_minpoly 49
minpoly_listpolslice 49
minpoly_dvdslice 56
matrixqz0 63
pnormlpvec 63
matadjoint0 112
gnorml1 168
pnormlp 196
minpoly_polslice 210
transS 294
charpoly0 315
QM_charpoly_ZX_bound 336
matfrobenius 336
gnormlp 343
RgM_Frobenius 385
weakfrobenius_step1 511
weakfrobenius_step2 511
weakfrobenius_step3 511
easymin 924
QM_ImQ_hnf 994
QM_ImQ_hnfall 1050
QM_ImZ_hnfall_i 1064
qfgaussred_positive 1069
minpoly 1078
carberkowitz 1113
QM_charpoly_ZX 1351
ZM_charpoly 1764
transD 2051
bad_char 2324
charpoly 2359
adj 2373
caradj 2387
charpoly_bound 3115
QM_charpoly_ZX_i 3451
fix_pol 3479
QM_charpoly_Flx 4225
ZX_CRT 4225
qfsign 4249
gaussred 4263
rot 4760
mattrace 5985
gsupnorm 6237
easychar 6762
FpM_charpoly 7385
Flm_charpoly_i 11617
Flm_hess 11617
transL 13622
suitable 23534
store 57267
gsupnorm_aux 63511
gtrace 141012
gnorml1_fake 179977
gnorm 224536
gnorml2 26929932
gnorml2_i 26929960

Generated by: LCOV version 1.11