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 to exceed 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.12.0 lcov report (development 23171-a5c0ed393) Lines: 1028 1081 95.1 %
Date: 2018-10-20 05:38:07 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
qfminim0 105
lindep2 112
cholesky_norm_ek 182
minim 217
lindep0 427
qfrep0 476
RgM_Babai 504
RgM_gram_schmidt 504
RgC_ApplyAllQ 567
R_from_QR 643
minim0 770
forqfvec_init_dolll 804
minim_lll 804
minim0_dolll 812
check_condition 882
smallvectors 1063
fincke_pohst 1086
real_indep 1397
addcolumntomatrix 1652
bestapprnf 1785
lindep_bit 3112
cx_bestapprnf 5194
lindepcx 5194
bestapprnf_i 7525
lindepfull_bit 8306
sol_OK 14021
RgC_ApplyQ 22113
minim_alloc 63260
ZC_canon 245770
ZM_zc_mul_canon 245770
mulimp 1301103
mplessthan 1302363
gaussred_from_QR 1585047
QR_init 1585704
ApplyAllQ 1942217
step 2919422
ApplyQ 2997038
FindApplyQ 3527921
no_prec_pb 3527921
check_bound 4219902
mpgreaterthan 4457264
norm_aux 5722569
addmulimp 17185215

Generated by: LCOV version 1.13