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 to exceed 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.18.0 lcov report (development 29712-7c8a932571) Lines: 1061 1174 90.4 %
Date: 2024-11-15 09:08:45 Functions: 85 91 93.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flm_charpoly 2151
Flm_charpoly_i 34068
Flm_hess 34068
FpM_charpoly 29170
FpM_hess 785
Frobeniusform 0
QM_ImQ 56
QM_ImQ_all 3458
QM_ImQ_hnf 1183
QM_ImQ_hnfall 3402
QM_ImZ 28
QM_ImZ_all 28
QM_ImZ_all_i 3479
QM_ImZ_hnf 0
QM_ImZ_hnfall 0
QM_charpoly_ZX 1827
QM_charpoly_ZX_bound 266
QM_charpoly_ZX_i 4421
QM_charpoly_ZX_slice 4250
QM_charpoly_ZX_worker 4250
QM_minors_coprime 42
RgM_Cholesky 68465
RgM_Fp_charpoly 35
RgM_Frobenius 504
RgM_adj_from_char 21
RgM_hess 168
RgM_hess_charpoly 161
RgM_minpoly 49
RgM_replace 0
RgXQ_minpoly 3241
RgXQ_minpoly_FpXQ 0
RgXQ_minpoly_FpXQXQ 21
RgXQ_minpoly_fast 3241
RgXQ_minpoly_naive 63
ZM_charpoly 2328
adj 105
adjsafe 7
bad_char 56
caract 14
caract_const 42
caradj 119
carberkowitz 1722
carhess 161
charpoly 3749
charpoly0 539
charpoly_bound 3833
cxquadnorm 28
easychar 5814
easymin 3654
fix_pol 1960
gaussred 12200
gerepilemat2_inplace 0
gnorm 3539299
gnorml1 168
gnorml1_fake 142513
gnorml2 36338864
gnorml2_i 36339677
gnormlp 357
gsupnorm 1229370
gsupnorm_aux 35137250
gtrace 761541
hess 168
intersect 5691
jacobi 28
matadjoint0 112
matcompanion 35
matfrobenius 455
matrixqz0 133
mattrace 1960
minpoly 3654
minpoly_dvdslice 168
minpoly_listpolslice 49
minpoly_polslice 434
pnormlp 196
pnormlpvec 63
qfcholesky 14
qfgaussred 21
qfgaussred0 21
qfgaussred2 7
qfgaussred_positive 69821
qfsign 12179
relative0 364
rot 19180
store 29186310
suitable 47429
transD 2618
transL 14826
transS 539
weakfrobenius_step1 742
weakfrobenius_step2 742
weakfrobenius_step3 742

Generated by: LCOV version 1.16