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 16827-3d78da8) Lines: 943 988 95.4 %
Date: 2014-09-29 Functions: 56 60 93.3 %
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 452559
ApplyQ 912027
FindApplyQ 738139
QR_init 285580
R_from_QR 314
RgC_ApplyAllQ 560
RgC_ApplyQ 21840
RgM_QR_init 14
Xadic_lindep 42
_gp_forqf 28
addcolumntomatrix 2380
addmulimp 4094038
algdep 7
algdep0 56
check_bound 1139443
check_condition 882
check_householder 28
cholesky_norm_ek 77
choose_params 14
clonefill 64
dalloc 88176
do_exhaustive 7
err_minim 0
fincke_pohst 743
forqfvec 21
forqfvec0 21
forqfvec_init 21
forqfvec_init_dolll 237
gaussred_from_QR 285252
gram_schmidt 231
init_dalloc 326509
lindep 7
lindep0 189
lindep2 2204
lllintpartial 42
lllintpartial_inplace 0
lllintpartialall 42
mathouseholder 28
matqr 14
minim 126
minim0 224
minim0_dolll 224
minim2 0
minim_alloc 12087
minim_raw 0
mpgreaterthan 1314157
mplessthan 315747
mulimp 315110
no_prec_pb 738139
norm_aux 1623652
padic_lindep 14
perf 42
qfminim0 63
qfrep0 14
real_indep 7
seralgdep 28
smallvectors 728
sol_OK 14021
step 824627
zncoppersmith 21

Generated by: LCOV version 1.9