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 21941-f096446) Lines: 125404 137830 91.0 %
Date: 2018-02-23 06:16:01 Functions: 11619 12495 93.0 %
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.2%40.2%
40.2 % 282 / 701 39.1 % 25 / 64
language
78.0%78.0%
78.0 % 9953 / 12755 84.1 % 1040 / 1236
graph
79.6%79.6%
79.6 % 1271 / 1597 78.3 % 119 / 152
headers
88.3%88.3%
88.3 % 1240 / 1404 88.7 % 555 / 626
kernel/gmp
91.6%91.6%
91.6 % 754 / 823 98.3 % 57 / 58
modules
92.6%92.6%
92.6 % 11630 / 12560 97.8 % 750 / 767
kernel/none
92.8%92.8%
92.8 % 3224 / 3473 85.1 % 370 / 435
basemath
92.9%92.9%
92.9 % 96819 / 104271 95.1 % 8672 / 9119
mt
93.9%93.9%
93.9 % 231 / 246 81.6 % 31 / 38

Generated by: LCOV version 1.11