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 20924-e159ed0) Lines: 907 1018 89.1 %
Date: 2017-08-21 06:23:16 Functions: 67 72 93.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flm_charpoly 0
Flm_charpoly_i 13265
Flm_hess 13265
FpM_charpoly 9002
FpM_hess 14
Frobeniusform 0
QM_ImQ_hnf 8309
QM_ImZ_hnf 14
QM_charpoly_Flx 4256
QM_charpoly_ZX 1232
QM_charpoly_ZX_bound 287
QM_charpoly_ZX_i 3570
QM_imZ_hnf_aux 8323
QM_minors_coprime 28
RgM_Fp_charpoly 35
RgM_Frobenius 364
RgM_adj_from_char 21
RgM_minpoly 49
RgM_replace 0
ZM_charpoly 2051
ZX_CRT 4256
adj 2373
adjsafe 7
bad_char 2324
caract 14
caradj 2387
carberkowitz 1064
carhess 21
charpoly 2597
charpoly0 308
charpoly_bound 3283
cxquadnorm 28
easychar 6951
easymin 924
fix_pol 3430
gaussred 4263
gerepilemat2_inplace 0
gnorm 191501
gnorml1 168
gnorml1_fake 0
gnorml2 13722803
gnorml2_i 13722831
gnormlp 329
gsupnorm 5558
gsupnorm_aux 58807
gtrace 108490
hess 28
intersect 7
jacobi 7
matadjoint0 112
matcompanion 28
matfrobenius 315
matrixqz0 56
mattrace 5943
minpoly 952
minpoly_dvdslice 49
minpoly_listpolslice 49
minpoly_polslice 196
pnormlp 196
pnormlpvec 63
qfgaussred 14
qfgaussred_positive 1020
qfsign 4249
rot 4760
store 53242
suitable 23534
transD 2037
transL 14609
transS 203
weakfrobenius_step1 483
weakfrobenius_step2 483
weakfrobenius_step3 483

Generated by: LCOV version 1.11