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 16912-212c0f0) Lines: 445 485 91.8 %
Date: 2014-10-20 Functions: 30 31 96.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 312 390 80.0 %

Function Name Sort by function name Hit count Sort by hit count
Babai 14875223
REDgen 147
ZM_lll_norms 1071368
do_SWAPgen 147
fplll 1069884
incrementalGSgen 126
kerint 14
kerint1 7
lll 163922
lll_finish 827955
lll_get_im 827927
lll_trivial 2310
lllall 24884
lllallgen 126
lllfp 166698
lllgen 42
lllgram 56
lllgramallgen 126
lllgramgen 0
lllgramint 18010
lllgramkerim 35
lllgramkerimgen 42
lllint 6804
lllkerim 35
lllkerimgen 42
matkerint0 21
pslg 378
qflll0 294
qflllgram0 196
rescale_to_int 165935
rotate 17882877

Generated by: LCOV version 1.9