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 17097-9391e68) Lines: 445 485 91.8 %
Date: 2014-11-21 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 12514782
REDgen 105
ZM_lll_norms 775719
do_SWAPgen 105
fplll 774584
incrementalGSgen 90
kerint 10
kerint1 5
lll 119811
lll_finish 598691
lll_get_im 598671
lll_trivial 1725
lllall 17789
lllallgen 90
lllfp 121841
lllgen 30
lllgram 40
lllgramallgen 90
lllgramgen 0
lllgramint 12864
lllgramkerim 25
lllgramkerimgen 30
lllint 4875
lllkerim 25
lllkerimgen 30
matkerint0 15
pslg 270
qflll0 210
qflllgram0 140
rescale_to_int 121296
rotate 14669670

Generated by: LCOV version 1.9