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.11.0 lcov report (development 22851-e834f1b2f) Lines: 1028 1081 95.1 %
Date: 2018-07-16 05:36:59 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 85
lindep2 105
qfminim0 105
cholesky_norm_ek 182
minim 217
lindep0 420
qfrep0 476
RgM_Babai 483
RgM_gram_schmidt 483
RgC_ApplyAllQ 567
R_from_QR 629
minim0 770
forqfvec_init_dolll 804
minim_lll 804
minim0_dolll 812
check_condition 882
smallvectors 1049
fincke_pohst 1072
real_indep 1218
addcolumntomatrix 1652
bestapprnf 1785
lindep_bit 2926
cx_bestapprnf 5194
lindepcx 5194
bestapprnf_i 7525
lindepfull_bit 8120
sol_OK 14021
RgC_ApplyQ 22113
minim_alloc 63260
ZC_canon 245770
ZM_zc_mul_canon 245770
mulimp 1301040
mplessthan 1302314
gaussred_from_QR 1585033
QR_init 1585676
ApplyAllQ 1942133
step 2919282
ApplyQ 2996870
FindApplyQ 3527809
no_prec_pb 3527809
check_bound 4219713
mpgreaterthan 4457061
norm_aux 5722303
addmulimp 17184942

Generated by: LCOV version 1.13