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 Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 22303-eb3e11d) Lines: 125909 138283 91.1 %
Date: 2018-04-21 06:16:28 Functions: 11694 12585 92.9 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 %

Directory Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
basemath
92.9%92.9%
92.9 % 96956 / 104329 95.0 % 8714 / 9171
gp
40.2%40.2%
40.2 % 282 / 701 39.1 % 25 / 64
graph
79.6%79.6%
79.6 % 1271 / 1597 78.3 % 119 / 152
headers
88.3%88.3%
88.3 % 1263 / 1430 88.4 % 563 / 637
kernel/gmp
91.6%91.6%
91.6 % 754 / 823 98.3 % 57 / 58
kernel/none
92.8%92.8%
92.8 % 3230 / 3479 85.1 % 371 / 436
language
78.2%78.2%
78.2 % 10102 / 12926 84.2 % 1055 / 1253
modules
92.7%92.7%
92.7 % 11819 / 12751 97.8 % 759 / 776
mt
93.9%93.9%
93.9 % 232 / 247 81.6 % 31 / 38

Generated by: LCOV version 1.11