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-bordeaux1.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 16791-0d1274a) Lines: 88832 100980 88.0 %
Date: 2014-09-16 Functions: 7971 8795 90.6 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 52670 71475 73.7 %

Directory Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
gp
33.7%33.7%
33.7 % 611 / 1811 36.4 % 63 / 173 22.9 % 316 / 1377
mt
16.8%16.8%
16.8 % 36 / 214 44.4 % 16 / 36 7.3 % 6 / 82
graph
71.8%71.8%
71.8 % 1033 / 1439 83.6 % 92 / 110 49.3 % 395 / 802
language
75.7%75.7%
75.7 % 7739 / 10229 83.8 % 828 / 988 59.7 % 4267 / 7145
kernel/none
91.4%91.4%
91.4 % 3130 / 3426 83.9 % 350 / 417 74.4 % 2641 / 3550
headers
88.6%88.6%
88.6 % 1148 / 1296 87.3 % 474 / 543 82.2 % 503 / 612
basemath
91.1%91.1%
91.1 % 64285 / 70599 93.9 % 5506 / 5864 77.2 % 38387 / 49727
modules
90.7%90.7%
90.7 % 10102 / 11143 96.5 % 585 / 606 74.7 % 5633 / 7537
kernel/gmp
90.9%90.9%
90.9 % 748 / 823 98.3 % 57 / 58 81.2 % 522 / 643

Generated by: LCOV version 1.9