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 21703-2e13792) Lines: 1035 1089 95.0 %
Date: 2018-01-17 06:18:31 Functions: 64 70 91.4 %
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
RgM_QR_init 14
choose_params 14
lindep_padic 14
forqfvec0 21
forqfvec_i 21
forqfvec_init 21
zncoppersmith 21
_gp_forqf 28
matqr 28
seralgdep 28
check_householder 35
lllintpartial 35
lllintpartialall 35
mathouseholder 35
vec_lindep 35
lindep_Xadic 42
minim_raw 42
perf 42
algdep0 49
clonefill 78
lindep2 105
qfminim0 105
minim 175
cholesky_norm_ek 182
qfrep0 301
lindep0 420
RgM_Babai 434
RgM_gram_schmidt 434
R_from_QR 545
minim0 553
RgC_ApplyAllQ 567
forqfvec_init_dolll 587
minim_lll 587
minim0_dolll 595
check_condition 882
smallvectors 965
fincke_pohst 988
real_indep 1211
addcolumntomatrix 1652
bestapprnf 1764
lindep_bit 2919
cx_bestapprnf 5124
lindepcx 5124
bestapprnf_i 7378
lindepfull_bit 8043
sol_OK 14021
RgC_ApplyQ 22113
minim_alloc 27555
ZC_canon 202657
ZM_zc_mul_canon 202657
gaussred_from_QR 347060
QR_init 347619
ApplyAllQ 692313
FindApplyQ 1039932
no_prec_pb 1039932
mulimp 1258274
mplessthan 1259632
ApplyQ 1705975
step 2810544
check_bound 4068293
mpgreaterthan 4287202
norm_aux 5512213
addmulimp 16682267

Generated by: LCOV version 1.11