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 21739-44c3c17) Lines: 124553 137221 90.8 %
Date: 2018-01-20 06:18:48 Functions: 11487 12412 92.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
93.0%93.0%
93.0 % 96493 / 103710 95.2 % 8631 / 9065
gp
40.2%40.2%
40.2 % 282 / 701 39.1 % 25 / 64
graph
76.0%76.0%
76.0 % 1119 / 1473 72.7 % 93 / 128
headers
88.3%88.3%
88.3 % 1239 / 1403 88.6 % 554 / 625
kernel/gmp
91.6%91.6%
91.6 % 754 / 823 98.3 % 57 / 58
kernel/none
92.8%92.8%
92.8 % 3224 / 3473 85.1 % 370 / 435
language
74.6%74.6%
74.6 % 9584 / 12849 79.3 % 978 / 1233
modules
92.7%92.7%
92.7 % 11628 / 12543 97.8 % 749 / 766
mt
93.5%93.5%
93.5 % 230 / 246 78.9 % 30 / 38

Generated by: LCOV version 1.11