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 17110-9967e23) Lines: 930 1055 88.2 %
Date: 2014-11-26 Functions: 66 72 91.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 659 874 75.4 %

Function Name Sort by function name Hit count Sort by hit count
Flm_charpoly 0
Flm_charpoly_i 435
Flm_hess 435
FpM_charpoly 10
FpM_hess 10
Frobeniusform 0
QC_elem 115
QM_ImQ_hnf 10
QM_ImZ_hnf 10
QM_charpoly_ZX 80
QM_charpoly_ZX_i 125
QM_imZ_hnf_aux 20
QM_minors_coprime 20
RgC_Z_mul 120
RgC_lincomb 60
RgM_Fp_charpoly 25
RgM_Frobenius 195
RgM_adj_from_char 15
RgM_minpoly 30
RgM_replace 0
ZM_charpoly 45
adj 1690
adjsafe 5
bad_char 1655
caract 10
caradj 1700
carberkowitz 65
carhess 225
charpoly 385
charpoly0 390
charpoly_bound 120
cxquadnorm 20
easychar 2435
easymin 55
fix_pol 1960
gaussred 3040
gerepilemat2_inplace 0
gnorm 191146
gnorml1 120
gnorml1_fake 0
gnorml2 4522654
gnorml2_i 4522674
gnormlp 225
gsupnorm 3235
gsupnorm_aux 34120
gtrace 143795
hess 230
intersect 10
jacobi 5
matadjoint0 80
matcompanion 15
matfrobenius 165
matrixqz0 35
mattrace 3325
minpoly 75
minpoly_dvdslice 0
minpoly_listpolslice 30
minpoly_polslice 65
pnormlp 140
pnormlpvec 45
qfgaussred 10
qfgaussred_positive 469
qfsign 3030
rot 3400
store 30875
suitable 16775
transD 420
transL 7845
transS 25
weakfrobenius_step1 235
weakfrobenius_step2 235
weakfrobenius_step3 235

Generated by: LCOV version 1.9