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 - bibli1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20459-9710128) Lines: 984 1034 95.2 %
Date: 2017-04-27 05:33:52 Functions: 59 65 90.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ApplyAllQ 576318
ApplyQ 1438380
FindApplyQ 858504
QR_init 282186
R_from_QR 312
RgC_ApplyAllQ 480
RgC_ApplyQ 18720
RgM_Babai 372
RgM_QR_init 12
RgM_gram_schmidt 372
ZC_canon 173682
ZM_zc_mul_canon 173682
_gp_forqf 24
addcolumntomatrix 1416
addmulimp 3861990
algdep 0
algdep0 42
check_bound 1090950
check_condition 756
check_householder 24
cholesky_norm_ek 156
choose_params 12
clonefill 54
do_exhaustive 6
err_minim 0
fincke_pohst 690
forqfvec 0
forqfvec0 18
forqfvec_i 18
forqfvec_init 18
forqfvec_init_dolll 480
gaussred_from_QR 281862
lindep 0
lindep0 288
lindep2 90
lindep_Xadic 36
lindep_bit 2502
lindep_padic 12
lllintpartial 30
lllintpartial_inplace 0
lllintpartialall 30
mathouseholder 24
matqr 24
minim 144
minim0 444
minim0_dolll 480
minim2 0
minim_alloc 16548
minim_lll 480
minim_raw 36
mpgreaterthan 1241958
mplessthan 308022
mulimp 306702
no_prec_pb 858504
norm_aux 1544388
perf 36
qfminim0 90
qfrep0 234
real_indep 630
seralgdep 24
smallvectors 672
sol_OK 12018
step 784542
vec_lindep 30
zncoppersmith 18

Generated by: LCOV version 1.11