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 19825-b77c7f8) Lines: 107339 120241 89.3 %
Date: 2016-12-05 05:49:04 Functions: 9720 10618 91.5 %
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.0%92.0%
92.0 % 80375 / 87400 94.5 % 6959 / 7366
gp
40.7%40.7%
40.7 % 290 / 713 39.1 % 25 / 64
graph
65.3%65.3%
65.3 % 937 / 1434 76.1 % 86 / 113
headers
88.4%88.4%
88.4 % 1215 / 1374 88.4 % 518 / 586
kernel/gmp
90.6%90.6%
90.6 % 746 / 823 98.3 % 57 / 58
kernel/none
92.3%92.3%
92.3 % 3187 / 3454 84.7 % 365 / 431
language
72.5%72.5%
72.5 % 8760 / 12080 77.8 % 906 / 1165
modules
91.2%91.2%
91.2 % 11618 / 12736 97.1 % 775 / 798
mt
93.0%93.0%
93.0 % 211 / 227 78.4 % 29 / 37

Generated by: LCOV version 1.11