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 17236-ec2ebc9) Lines: 940 988 95.1 %
Date: 2014-12-19 Functions: 54 60 90.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 640 793 80.7 %

Function Name Sort by function name Hit count Sort by hit count
ApplyAllQ 589404
ApplyQ 1466514
FindApplyQ 895005
QR_init 305601
R_from_QR 342
RgC_ApplyAllQ 560
RgC_ApplyQ 21840
RgM_QR_init 14
Xadic_lindep 42
_gp_forqf 28
addcolumntomatrix 2338
addmulimp 4096761
algdep 0
algdep0 42
check_bound 1141974
check_condition 882
check_householder 28
cholesky_norm_ek 77
choose_params 14
clonefill 64
dalloc 114384
do_exhaustive 7
err_minim 0
fincke_pohst 771
forqfvec 21
forqfvec0 21
forqfvec_init 21
forqfvec_init_dolll 223
gaussred_from_QR 305245
gram_schmidt 287
init_dalloc 351023
lindep 0
lindep0 189
lindep2 2176
lllintpartial 35
lllintpartial_inplace 0
lllintpartialall 35
mathouseholder 28
matqr 14
minim 119
minim0 210
minim0_dolll 210
minim2 0
minim_alloc 14061
minim_raw 0
mpgreaterthan 1317102
mplessthan 316475
mulimp 315866
no_prec_pb 895005
norm_aux 1627163
padic_lindep 14
perf 35
qfminim0 63
qfrep0 14
real_indep 7
seralgdep 28
smallvectors 756
sol_OK 14021
step 826430
zncoppersmith 21

Generated by: LCOV version 1.9