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 20459-9710128) Lines: 110700 124084 89.2 %
Date: 2017-04-23 05:34:02 Functions: 10039 10985 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.0%40.0%
40.0 % 282 / 705 39.1 % 25 / 64
graph
59.0%59.0%
59.0 % 872 / 1478 68.0 % 83 / 122
mt
93.0%93.0%
93.0 % 211 / 227 78.4 % 29 / 37
language
74.2%74.2%
74.2 % 9375 / 12632 78.9 % 956 / 1211
kernel/none
92.9%92.9%
92.9 % 3162 / 3405 84.8 % 368 / 434
headers
87.9%87.9%
87.9 % 1246 / 1418 88.0 % 530 / 602
basemath
91.7%91.7%
91.7 % 82231 / 89692 94.2 % 7165 / 7608
modules
91.8%91.8%
91.8 % 12579 / 13704 97.3 % 826 / 849
kernel/gmp
90.2%90.2%
90.2 % 742 / 823 98.3 % 57 / 58

Generated by: LCOV version 1.11