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 20443-183d202) Lines: 984 1034 95.2 %
Date: 2017-03-27 05:17:48 Functions: 59 65 90.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ApplyAllQ 480265
ApplyQ 1198650
FindApplyQ 715420
QR_init 235155
R_from_QR 260
RgC_ApplyAllQ 400
RgC_ApplyQ 15600
RgM_Babai 310
RgM_QR_init 10
RgM_gram_schmidt 310
ZC_canon 144735
ZM_zc_mul_canon 144735
_gp_forqf 20
addcolumntomatrix 1180
addmulimp 3218325
algdep 0
algdep0 35
check_bound 909125
check_condition 630
check_householder 20
cholesky_norm_ek 130
choose_params 10
clonefill 45
do_exhaustive 5
err_minim 0
fincke_pohst 575
forqfvec 0
forqfvec0 15
forqfvec_i 15
forqfvec_init 15
forqfvec_init_dolll 400
gaussred_from_QR 234885
lindep 0
lindep0 240
lindep2 75
lindep_Xadic 30
lindep_bit 2085
lindep_padic 10
lllintpartial 25
lllintpartial_inplace 0
lllintpartialall 25
mathouseholder 20
matqr 20
minim 120
minim0 370
minim0_dolll 400
minim2 0
minim_alloc 13790
minim_lll 400
minim_raw 30
mpgreaterthan 1034965
mplessthan 256685
mulimp 255585
no_prec_pb 715420
norm_aux 1286990
perf 30
qfminim0 75
qfrep0 195
real_indep 525
seralgdep 20
smallvectors 560
sol_OK 10015
step 653785
vec_lindep 25
zncoppersmith 15

Generated by: LCOV version 1.11