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-bordeaux.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.10.1 lcov report (development 22726-9e20c6a88) Lines: 423 461 91.8 %
Date: 2018-06-23 05:36:28 Functions: 28 30 93.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Babai 19508261
REDgen 147
ZM_lll_norms 2385854
do_SWAPgen 147
fplll 2365730
incrementalGSgen 126
kerint 0
kerint0 28
lll 215151
lll_finish 2263359
lll_get_im 2263345
lll_trivial 22412
lllall 28223
lllallgen 126
lllfp 225657
lllgen 42
lllgram 56
lllgramallgen 126
lllgramgen 0
lllgramint 21293
lllgramkerim 35
lllgramkerimgen 42
lllint 6860
lllkerim 35
lllkerimgen 42
matkerint0 28
pslg 378
qflll0 294
qflllgram0 196
rotate 30138035

Generated by: LCOV version 1.13