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 20924-e159ed0) Lines: 1036 1092 94.9 %
Date: 2017-08-21 06:23:16 Functions: 64 70 91.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ApplyAllQ 692418
ApplyQ 1703917
FindApplyQ 1040468
QR_init 348050
R_from_QR 475
RgC_ApplyAllQ 567
RgC_ApplyQ 22113
RgM_Babai 434
RgM_QR_init 14
RgM_gram_schmidt 434
ZC_canon 202657
ZM_zc_mul_canon 202657
_gp_forqf 28
addcolumntomatrix 1652
addmulimp 4507816
algdep 0
algdep0 49
bestapprnf 49
bestapprnf_i 70
check_bound 1274694
check_condition 882
check_householder 35
cholesky_norm_ek 182
choose_params 14
clonefill 64
cx_bestapprnf 56
do_exhaustive 7
err_minim 0
fincke_pohst 918
forqfvec 0
forqfvec0 21
forqfvec_i 21
forqfvec_init 21
forqfvec_init_dolll 580
gaussred_from_QR 347561
lindep 0
lindep0 336
lindep2 105
lindep_Xadic 42
lindep_bit 2919
lindep_padic 14
lindepcx 56
lindepfull_bit 2975
lllintpartial 35
lllintpartial_inplace 0
lllintpartialall 35
mathouseholder 35
matqr 28
minim 175
minim0 546
minim0_dolll 588
minim2 0
minim_alloc 27776
minim_lll 580
minim_raw 42
mpgreaterthan 1451163
mplessthan 359852
mulimp 358424
no_prec_pb 1040468
norm_aux 1804505
perf 42
qfminim0 105
qfrep0 294
real_indep 735
seralgdep 28
smallvectors 895
sol_OK 14021
step 916725
vec_lindep 35
zncoppersmith 21

Generated by: LCOV version 1.11