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 16741-1378b1c) Lines: 925 1044 88.6 %
Date: 2014-08-17 Functions: 66 71 93.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 657 872 75.3 %

Function Name Sort by function name Hit count Sort by hit count
Flm_charpoly 245
Flm_hess 245
FpM_charpoly 10
FpM_hess 10
Frobeniusform 0
QC_elem 230
QM_ImQ_hnf 20
QM_ImZ_hnf 15
QM_charpoly_ZX 40
QM_charpoly_ZX_i 90
QM_imZ_hnf_aux 35
QM_minors_coprime 25
RgC_Z_mul 240
RgC_lincomb 120
RgM_Fp_charpoly 25
RgM_Frobenius 195
RgM_adj_from_char 15
RgM_minpoly 30
RgM_replace 0
ZM_charpoly 50
adj 1695
adjsafe 5
bad_char 1655
caract 15
caradj 1720
carberkowitz 50
carhess 230
charpoly 390
charpoly0 390
charpoly_bound 90
cxquadnorm 20
easychar 2440
easymin 40
fix_pol 1965
gaussred 3045
gerepilemat2_inplace 0
gnorm 184352
gnorml1 120
gnorml1_fake 0
gnorml2 2418226
gnorml2_i 2418246
gnormlp 225
gsupnorm 2790
gsupnorm_aux 32065
gtrace 138490
hess 240
intersect 10
jacobi 10
matadjoint0 80
matcompanion 20
matfrobenius 165
matrixqz0 35
mattrace 3335
minpoly 60
minpoly_dvdslice 0
minpoly_listpolslice 30
minpoly_polslice 65
pnormlp 140
pnormlpvec 45
qfgaussred 15
qfgaussred_positive 481
qfsign 3030
rot 6800
store 29265
suitable 16860
transD 420
transL 7845
transS 25
weakfrobenius_step1 235
weakfrobenius_step2 235
weakfrobenius_step3 235

Generated by: LCOV version 1.9