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 to exceed 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.12.0 lcov report (development 23008-54b2e2f01) Lines: 423 461 91.8 %
Date: 2018-09-20 05:37:46 Functions: 28 30 93.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
kerint 0
lllgramgen 0
kerint0 28
matkerint0 28
lllgramkerim 35
lllkerim 35
lllgen 42
lllgramkerimgen 42
lllkerimgen 42
lllgram 56
incrementalGSgen 126
lllallgen 126
lllgramallgen 126
REDgen 147
do_SWAPgen 147
qflllgram0 196
qflll0 294
pslg 378
lllint 6860
lllgramint 21293
lll_trivial 22454
lllall 28223
lll 215165
lllfp 225685
lll_get_im 2263373
lll_finish 2263387
fplll 2365786
ZM_lll_norms 2385952
Babai 19508868
rotate 30139342

Generated by: LCOV version 1.13