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 - language - compat.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16791-0d1274a) Lines: 54 60 90.0 %
Date: 2014-09-16 Functions: 28 29 96.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 24 35 68.6 %

Function Name Sort by function name Hit count Sort by hit count
_factpol 10
buchfu 5
buchgenforcefu 5
buchgenfu 15
buchinitforcefu 5
buchinitfu 15
buchray 5
buchrayinit 0
buchrayinitgen 10
factoredbase 5
factoreddiscf 5
factorpadic0 5
ghell2 5
lseriesell0 10
nfbasis0 20
nfbasis_flag_translate 40
nfdisc0 20
polylogd 5
polylogdold 5
polylogp 5
principalideal 5
prod0 25
rounderror 5
sigmak0 10
smallbuchinit 5
sturm0 5
sum0 10
suppressed 10
weipell 5

Generated by: LCOV version 1.9