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.0 lcov report (development 20459-9710128) Lines: 422 462 91.3 %
Date: 2017-04-27 05:33:52 Functions: 28 30 93.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Babai 12780306
REDgen 126
ZM_lll_norms 903504
do_SWAPgen 126
fplll 899064
incrementalGSgen 108
kerint 0
kerint0 24
lll 180732
lll_finish 837648
lll_get_im 837624
lll_trivial 5358
lllall 23052
lllallgen 108
lllfp 184476
lllgen 36
lllgram 48
lllgramallgen 108
lllgramgen 0
lllgramint 17112
lllgramkerim 30
lllgramkerimgen 36
lllint 5880
lllkerim 30
lllkerimgen 36
matkerint0 24
pslg 324
qflll0 252
qflllgram0 168
rotate 16921404

Generated by: LCOV version 1.11