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 - bibli1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.1 lcov report (development 28880-3b5364847c) Lines: 1087 1139 95.4 %
Date: 2023-12-01 07:53:15 Functions: 70 76 92.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
algdep 0
err_minim 0
forqfvec 0
lindep 0
lllintpartial_inplace 0
minim2 0
do_exhaustive 7
minim 7
serdiffdep 14
RgM_QR_init 21
choose_params 21
lindep_padic 28
check_householder 35
lllintpartial 35
lllintpartialall 35
mathouseholder 35
matqr 35
vec_lindep 35
zncoppersmith 35
forqfvec0 42
forqfvec1 42
forqfvec_i 42
forqfvec_init 42
minim_raw 42
qfperfection 42
seralgdep 42
forqfvec_wrap 56
sertomat 56
algdep0 77
lindep_Xadic 77
lindep2 112
qfminim0 133
clonefill 159
cholesky_norm_ek 182
minim0_zm 252
minim_zm 252
lindep0 434
qfrep0 462
minim0 553
RgC_ApplyAllQ 567
forqfvec_init_dolll 832
minim_lll 832
minim0_dolll 847
check 882
real_indep 1634
addcolumntomatrix 1652
bestapprnf 1939
lindep_bit 3188
cx_bestapprnf 5488
lindepcx 5488
ZM_zc_mul_canon 5502
bestapprnf_i 8211
lindepfull_bit 8676
sol_OK 14021
R_from_QR 14056
smallvectors 14538
fincke_pohst 14559
RgC_ApplyQ 22113
RgM_Babai 49429
RgM_gram_schmidt 49429
minim_alloc 107275
ZM_zc_mul_canon_zm 240366
gaussred_from_QR 243992
ZC_canon 245868
mplessthan 1849041
mulimp 1860905
step 4272135
check_bound 6119257
QR_init 6421902
mpgreaterthan 6569406
norm_aux 8361376
ApplyAllQ 13630264
no_prec_pb 20043255
FindApplyQ 20052200
addmulimp 22472939
ApplyQ 36594514

Generated by: LCOV version 1.14