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-bordeaux.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.10.0 lcov report (development 21501-1931cb9) Lines: 933 1034 90.2 %
Date: 2017-12-16 06:20:36 Functions: 70 74 94.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flm_charpoly 0
Flm_charpoly_i 11594
Flm_hess 11594
FpM_charpoly 7448
FpM_hess 14
Frobeniusform 0
QM_ImQ_hnf 987
QM_ImQ_hnfall 1036
QM_ImZ_hnf 14
QM_ImZ_hnfall 14
QM_ImZ_hnfall_i 1050
QM_charpoly_Flx 4139
QM_charpoly_ZX 1330
QM_charpoly_ZX_bound 308
QM_charpoly_ZX_i 3367
QM_minors_coprime 28
RgM_Fp_charpoly 35
RgM_Frobenius 378
RgM_adj_from_char 21
RgM_minpoly 49
RgM_replace 0
ZM_charpoly 1729
ZX_CRT 4139
adj 2373
adjsafe 7
bad_char 2324
caract 14
caradj 2387
carberkowitz 1092
carhess 21
charpoly 2303
charpoly0 315
charpoly_bound 3059
cxquadnorm 28
easychar 6685
easymin 924
fix_pol 3458
gaussred 4263
gerepilemat2_inplace 0
gnorm 195434
gnorml1 168
gnorml1_fake 168182
gnorml2 21266056
gnorml2_i 21266084
gnormlp 343
gsupnorm 5817
gsupnorm_aux 60109
gtrace 112256
hess 28
intersect 14
jacobi 7
matadjoint0 112
matcompanion 35
matfrobenius 329
matrixqz0 56
mattrace 5971
minpoly 1078
minpoly_dvdslice 56
minpoly_listpolslice 49
minpoly_polslice 210
pnormlp 196
pnormlpvec 63
qfgaussred 14
qfgaussred_positive 1020
qfsign 4249
rot 4760
store 54285
suitable 23534
transD 2051
transL 14637
transS 203
weakfrobenius_step1 504
weakfrobenius_step2 504
weakfrobenius_step3 504

Generated by: LCOV version 1.11