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 16358-a11f489) Lines: 929 976 95.2 %
Date: 2014-04-11 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 659369
ApplyQ 1999979
FindApplyQ 910624
QR_init 251255
R_from_QR 224
RgC_ApplyAllQ 400
RgC_ApplyQ 15600
RgM_QR_init 10
Xadic_lindep 30
_gp_forqf 20
addcolumntomatrix 1700
addmulimp 2925297
algdep 5
algdep0 40
check_bound 814695
check_condition 630
check_householder 20
cholesky_norm_ek 55
choose_params 10
clonefill 46
dalloc 79533
do_exhaustive 5
err_minim 0
fincke_pohst 533
forqfvec 15
forqfvec0 15
forqfvec_init 15
forqfvec_init_dolll 169
gaussred_from_QR 251021
init_dalloc 258664
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 10067
minim_raw 0
mpgreaterthan 939633
mplessthan 225725
mulimp 225270
no_prec_pb 910624
norm_aux 1160798
padic_lindep 10
perf 30
qfminim0 45
qfrep0 10
real_indep 5
seralgdep 20
smallvectors 517
sol_OK 10015
step 589635
zncoppersmith 15

Generated by: LCOV version 1.9