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 16624-25b9976) Lines: 928 1044 88.9 %
Date: 2014-06-24 Functions: 66 71 93.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 660 872 75.7 %

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 1691
adjsafe 5
bad_char 1651
caract 15
caradj 1716
carberkowitz 50
carhess 230
charpoly 390
charpoly0 390
charpoly_bound 90
cxquadnorm 20
easychar 2436
easymin 40
fix_pol 1961
gaussred 3045
gerepilemat2_inplace 0
gnorm 190493
gnorml1 120
gnorml1_fake 0
gnorml2 2430414
gnorml2_i 2430434
gnormlp 225
gsupnorm 2800
gsupnorm_aux 32125
gtrace 139998
hess 240
intersect 10
jacobi 10
matadjoint0 80
matcompanion 20
matfrobenius 165
matrixqz0 35
mattrace 3327
minpoly 60
minpoly_dvdslice 0
minpoly_listpolslice 30
minpoly_polslice 65
pnormlp 140
pnormlpvec 45
qfgaussred 15
qfgaussred_positive 482
qfsign 3030
rot 6800
store 29315
suitable 16860
transD 420
transL 7845
transS 25
weakfrobenius_step1 235
weakfrobenius_step2 235
weakfrobenius_step3 235

Generated by: LCOV version 1.9