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-bordeaux1.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.8.0 lcov report (development 16393-29b9383) Lines: 929 976 95.2 %
Date: 2014-04-24 Functions: 55 59 93.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 637 791 80.5 %

Function Name Sort by function name Hit count Sort by hit count
ApplyAllQ 659390
ApplyQ 1999931
FindApplyQ 910672
QR_init 251282
R_from_QR 229
RgC_ApplyAllQ 400
RgC_ApplyQ 15600
RgM_QR_init 10
Xadic_lindep 30
_gp_forqf 20
addcolumntomatrix 1700
addmulimp 2925322
algdep 5
algdep0 40
check_bound 814734
check_condition 630
check_householder 20
cholesky_norm_ek 55
choose_params 10
clonefill 46
dalloc 79697
do_exhaustive 5
err_minim 0
fincke_pohst 538
forqfvec 15
forqfvec0 15
forqfvec_init 15
forqfvec_init_dolll 169
gaussred_from_QR 251043
init_dalloc 258686
lindep 5
lindep0 135
lindep2 1778
lllintpartial 30
lllintpartial_inplace 0
lllintpartialall 30
mathouseholder 20
matqr 10
minim 90
minim0 160
minim0_dolll 160
minim2 0
minim_alloc 10089
minim_raw 0
mpgreaterthan 939687
mplessthan 225730
mulimp 225280
no_prec_pb 910672
norm_aux 1160857
padic_lindep 10
perf 30
qfminim0 45
qfrep0 10
real_indep 5
seralgdep 20
smallvectors 522
sol_OK 10015
step 589669
zncoppersmith 15

Generated by: LCOV version 1.9