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 19823-d80e022) Lines: 990 1040 95.2 %
Date: 2016-12-03 05:49:13 Functions: 61 66 92.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ApplyAllQ 679188
ApplyQ 1696152
FindApplyQ 1012823
QR_init 333635
R_from_QR 363
RgC_ApplyAllQ 560
RgC_ApplyQ 21840
RgM_Babai 434
RgM_QR_init 14
RgM_gram_schmidt 434
Xadic_lindep 42
ZC_canon 202629
ZM_zc_mul_canon 202629
_gp_forqf 28
addcolumntomatrix 1652
addmulimp 4506857
algdep 0
algdep0 49
check_bound 1273574
check_condition 882
check_householder 28
cholesky_norm_ek 182
choose_params 14
clonefill 64
dalloc 148792
do_exhaustive 7
err_minim 0
fincke_pohst 897
forqfvec 0
forqfvec0 21
forqfvec_i 21
forqfvec_init 21
forqfvec_init_dolll 559
gaussred_from_QR 333258
init_dalloc 424039
lindep 627
lindep0 252
lindep2 2796
lllintpartial 35
lllintpartial_inplace 0
lllintpartialall 35
mathouseholder 28
matqr 28
minim 168
minim0 518
minim0_dolll 560
minim2 0
minim_alloc 19176
minim_lll 559
minim_raw 42
mpgreaterthan 1449813
mplessthan 359544
mulimp 358004
no_prec_pb 1012823
norm_aux 1802832
padic_lindep 14
perf 42
qfminim0 105
qfrep0 273
real_indep 634
seralgdep 28
smallvectors 874
sol_OK 14021
step 915913
vec_lindep 35
zncoppersmith 21

Generated by: LCOV version 1.11