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 16912-212c0f0) Lines: 928 1053 88.1 %
Date: 2014-10-20 Functions: 66 72 91.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 658 874 75.3 %

Function Name Sort by function name Hit count Sort by hit count
Flm_charpoly 0
Flm_charpoly_i 393
Flm_hess 393
FpM_charpoly 14
FpM_hess 14
Frobeniusform 0
QC_elem 161
QM_ImQ_hnf 14
QM_ImZ_hnf 14
QM_charpoly_ZX 70
QM_charpoly_ZX_i 134
QM_imZ_hnf_aux 28
QM_minors_coprime 28
RgC_Z_mul 168
RgC_lincomb 84
RgM_Fp_charpoly 35
RgM_Frobenius 273
RgM_adj_from_char 21
RgM_minpoly 42
RgM_replace 0
ZM_charpoly 64
adj 2366
adjsafe 7
bad_char 2317
caract 14
caradj 2380
carberkowitz 90
carhess 315
charpoly 539
charpoly0 546
charpoly_bound 134
cxquadnorm 28
easychar 3408
easymin 77
fix_pol 2743
gaussred 4256
gerepilemat2_inplace 0
gnorm 255367
gnorml1 168
gnorml1_fake 0
gnorml2 4515522
gnorml2_i 4515550
gnormlp 315
gsupnorm 3927
gsupnorm_aux 45325
gtrace 191414
hess 322
intersect 7
jacobi 7
matadjoint0 112
matcompanion 21
matfrobenius 231
matrixqz0 49
mattrace 4655
minpoly 105
minpoly_dvdslice 0
minpoly_listpolslice 42
minpoly_polslice 91
pnormlp 196
pnormlpvec 63
qfgaussred 14
qfgaussred_positive 843
qfsign 4242
rot 4760
store 41384
suitable 23485
transD 588
transL 10983
transS 35
weakfrobenius_step1 329
weakfrobenius_step2 329
weakfrobenius_step3 329

Generated by: LCOV version 1.9