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 20443-183d202) Lines: 422 462 91.3 %
Date: 2017-03-27 05:17:48 Functions: 28 30 93.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Babai 10650255
REDgen 105
ZM_lll_norms 752920
do_SWAPgen 105
fplll 749220
incrementalGSgen 90
kerint 0
kerint0 20
lll 150610
lll_finish 698040
lll_get_im 698020
lll_trivial 4465
lllall 19210
lllallgen 90
lllfp 153730
lllgen 30
lllgram 40
lllgramallgen 90
lllgramgen 0
lllgramint 14260
lllgramkerim 25
lllgramkerimgen 30
lllint 4900
lllkerim 25
lllkerimgen 30
matkerint0 20
pslg 270
qflll0 210
qflllgram0 140
rotate 14101170

Generated by: LCOV version 1.11