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.8.0 lcov report (development 19374-ac31b96) Lines: 106631 119557 89.2 %
Date: 2016-08-30 06:11:37 Functions: 9596 10502 91.4 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 %

Directory Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
gp
40.3%40.3%
40.3 % 285 / 708 38.1 % 24 / 63
graph
65.3%65.3%
65.3 % 937 / 1434 76.1 % 86 / 113
language
72.7%72.7%
72.7 % 8792 / 12087 78.1 % 913 / 1169
headers
89.0%89.0%
89.0 % 1201 / 1350 88.9 % 512 / 576
kernel/gmp
90.6%90.6%
90.6 % 746 / 823 98.3 % 57 / 58
modules
91.2%91.2%
91.2 % 11618 / 12741 97.0 % 774 / 798
kernel/none
91.7%91.7%
91.7 % 3184 / 3472 84.4 % 363 / 430
basemath
91.9%91.9%
91.9 % 79661 / 86721 94.2 % 6836 / 7258
mt
93.7%93.7%
93.7 % 207 / 221 83.8 % 31 / 37

Generated by: LCOV version 1.11