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 22349-7224091) Lines: 125969 138379 91.0 %
Date: 2018-04-26 06:17:06 Functions: 11718 12617 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 % 97082 / 104503 95.0 % 8733 / 9197
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.7%88.7%
88.7 % 1271 / 1433 88.5 % 564 / 637
kernel/gmp
91.6%91.6%
91.6 % 754 / 823 98.3 % 57 / 58
kernel/none
92.7%92.7%
92.7 % 3223 / 3476 84.7 % 372 / 439
language
78.2%78.2%
78.2 % 10102 / 12926 84.2 % 1055 / 1253
modules
92.7%92.7%
92.7 % 11752 / 12673 97.8 % 762 / 779
mt
93.9%93.9%
93.9 % 232 / 247 81.6 % 31 / 38

Generated by: LCOV version 1.11