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 - lll.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16358-a11f489) Lines: 444 482 92.1 %
Date: 2014-04-11 Functions: 30 31 96.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 310 384 80.7 %

Function Name Sort by function name Hit count Sort by hit count
Babai 11004247
REDgen 105
ZM_lll_norms 894275
do_SWAPgen 105
fplll 893263
incrementalGSgen 90
kerint 15
kerint1 10
lll 157235
lll_finish 707970
lll_get_im 707940
lll_trivial 1634
lllall 2314
lllallgen 90
lllfp 159097
lllgen 30
lllgram 45
lllgramallgen 90
lllgramgen 0
lllgramint 2159
lllgramkerim 30
lllgramkerimgen 30
lllint 95
lllkerim 30
lllkerimgen 30
matkerint0 25
pslg 270
qflll0 210
qflllgram0 140
rescale_to_int 158520
rotate 14388163

Generated by: LCOV version 1.9