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 16741-1378b1c) Lines: 943 988 95.4 %
Date: 2014-08-17 Functions: 56 60 93.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 642 793 81.0 %

Function Name Sort by function name Hit count Sort by hit count
ApplyAllQ 323245
ApplyQ 651381
FindApplyQ 527246
QR_init 204001
R_from_QR 224
RgC_ApplyAllQ 400
RgC_ApplyQ 15600
RgM_QR_init 10
Xadic_lindep 30
_gp_forqf 20
addcolumntomatrix 1700
addmulimp 2924127
algdep 5
algdep0 40
check_bound 813786
check_condition 630
check_householder 20
cholesky_norm_ek 55
choose_params 10
clonefill 46
dalloc 62955
do_exhaustive 5
err_minim 0
fincke_pohst 533
forqfvec 15
forqfvec0 15
forqfvec_init 15
forqfvec_init_dolll 169
gaussred_from_QR 203767
gram_schmidt 165
init_dalloc 233170
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 8628
minim_raw 0
mpgreaterthan 938586
mplessthan 225498
mulimp 225043
no_prec_pb 527246
norm_aux 1159618
padic_lindep 10
perf 30
qfminim0 45
qfrep0 10
real_indep 5
seralgdep 20
smallvectors 517
sol_OK 10015
step 588953
zncoppersmith 15

Generated by: LCOV version 1.9