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 17727-c4b959b) Lines: 964 1081 89.2 %
Date: 2015-04-18 Functions: 70 76 92.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 677 898 75.4 %

Function Name Sort by function name Hit count Sort by hit count
Flm_charpoly 0
Flm_charpoly_i 3822
Flm_hess 3822
FpM_charpoly 1365
FpM_hess 14
Frobeniusform 0
QC_elem 98
QM_ImQ_hnf 7
QM_ImZ_hnf 14
QM_charpoly_Flx 2450
QM_charpoly_ZX 196
QM_charpoly_ZX2_bound 21
QM_charpoly_ZX_bound 0
QM_charpoly_ZX_i 861
QM_imZ_hnf_aux 21
QM_minors_coprime 28
RgC_Z_mul 140
RgC_lincomb 70
RgM_Fp_charpoly 35
RgM_Frobenius 343
RgM_adj_from_char 21
RgM_minpoly 42
RgM_replace 0
ZM_charpoly 665
ZX_CRT 2408
adj 2366
adjsafe 7
bad_char 2317
caract 14
caradj 2380
carberkowitz 861
carhess 21
charpoly 1092
charpoly0 280
charpoly_bound 854
cxquadnorm 28
easychar 5033
easymin 714
fix_pol 3220
gaussred 4256
gerepilemat2_inplace 0
gnorm 315738
gnorml1 168
gnorml1_fake 0
gnorml2 6571406
gnorml2_i 6571434
gnormlp 315
gsupnorm 4844
gsupnorm_aux 49392
gtrace 247049
hess 28
intersect 14
jacobi 7
matadjoint0 112
matcompanion 21
matfrobenius 301
matrixqz0 49
mattrace 4767
minpoly 742
minpoly_dvdslice 49
minpoly_listpolslice 42
minpoly_polslice 189
pnormlp 196
pnormlpvec 63
qfgaussred 14
qfgaussred_positive 664
qfsign 4242
rot 4760
store 44534
suitable 23485
transD 910
transL 13664
transS 77
weakfrobenius_step1 448
weakfrobenius_step2 448
weakfrobenius_step3 448

Generated by: LCOV version 1.9