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 21064-a7054ad) Lines: 120086 133310 90.1 %
Date: 2017-09-25 06:24:50 Functions: 10959 11882 92.2 %
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
77.3%77.3%
77.3 % 1118 / 1447 74.4 % 93 / 125
mt
94.3%94.3%
94.3 % 230 / 244 81.6 % 31 / 38
language
77.6%77.6%
77.6 % 9877 / 12735 84.1 % 1028 / 1223
kernel/none
92.5%92.5%
92.5 % 3214 / 3473 85.1 % 370 / 435
headers
87.8%87.8%
87.8 % 1274 / 1451 88.1 % 548 / 622
basemath
91.8%91.8%
91.8 % 91721 / 99887 94.2 % 8059 / 8552
modules
92.7%92.7%
92.7 % 11624 / 12545 97.8 % 748 / 765
kernel/gmp
90.6%90.6%
90.6 % 746 / 823 98.3 % 57 / 58

Generated by: LCOV version 1.11