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 16827-3d78da8) Lines: 54 60 90.0 %
Date: 2014-09-29 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 14
buchfu 7
buchgenforcefu 7
buchgenfu 21
buchinitforcefu 7
buchinitfu 21
buchray 7
buchrayinit 0
buchrayinitgen 14
factoredbase 7
factoreddiscf 7
factorpadic0 7
ghell2 7
lseriesell0 14
nfbasis0 28
nfbasis_flag_translate 56
nfdisc0 28
polylogd 7
polylogdold 7
polylogp 7
principalideal 7
prod0 35
rounderror 7
sigmak0 14
smallbuchinit 7
sturm0 7
sum0 14
suppressed 14
weipell 7

Generated by: LCOV version 1.9