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-bordeaux1.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.8.0 lcov report (development 18579-f9e35ad) Lines: 951 1083 87.8 %
Date: 2016-02-06 Functions: 70 76 92.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 674 908 74.2 %

Function Name Sort by function name Hit count Sort by hit count
Flm_charpoly 0
Flm_charpoly_i 6027
Flm_hess 6027
FpM_charpoly 2198
FpM_hess 14
Frobeniusform 0
QC_elem 98
QM_ImQ_hnf 7
QM_ImZ_hnf 14
QM_charpoly_Flx 3822
QM_charpoly_ZX 413
QM_charpoly_ZX2_bound 0
QM_charpoly_ZX_bound 105
QM_charpoly_ZX_i 1190
QM_imZ_hnf_aux 21
QM_minors_coprime 28
RgC_Z_mul 140
RgC_lincomb 70
RgM_Fp_charpoly 35
RgM_Frobenius 357
RgM_adj_from_char 21
RgM_minpoly 49
RgM_replace 0
ZM_charpoly 672
ZX_CRT 3822
adj 2373
adjsafe 7
bad_char 2324
caract 14
caradj 2387
carberkowitz 994
carhess 21
charpoly 1218
charpoly0 280
charpoly_bound 1085
cxquadnorm 28
easychar 50036
easymin 45458
fix_pol 3360
gaussred 4263
gerepilemat2_inplace 0
gnorm 185569
gnorml1 168
gnorml1_fake 0
gnorml2 5585858
gnorml2_i 5585886
gnormlp 315
gsupnorm 4956
gsupnorm_aux 50099
gtrace 105803
hess 28
intersect 7
jacobi 7
matadjoint0 112
matcompanion 21
matfrobenius 308
matrixqz0 49
mattrace 4795
minpoly 45486
minpoly_dvdslice 49
minpoly_listpolslice 49
minpoly_polslice 196
pnormlp 196
pnormlpvec 63
qfgaussred 14
qfgaussred_positive 867
qfsign 4249
rot 4760
store 45129
suitable 23534
transD 2037
transL 14518
transS 203
weakfrobenius_step1 476
weakfrobenius_step2 476
weakfrobenius_step3 476

Generated by: LCOV version 1.9