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 16624-25b9976) Lines: 88337 100481 87.9 %
Date: 2014-06-24 Functions: 7915 8744 90.5 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 52672 71368 73.8 %

Directory Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
mt
16.8%16.8%
16.8 % 36 / 214 44.4 % 16 / 36 7.3 % 6 / 82
gp
33.7%33.7%
33.7 % 611 / 1811 36.4 % 63 / 173 22.9 % 315 / 1377
graph
71.8%71.8%
71.8 % 1033 / 1439 83.6 % 92 / 110 49.3 % 395 / 802
language
75.5%75.5%
75.5 % 7715 / 10222 83.6 % 826 / 988 59.5 % 4241 / 7132
modules
90.5%90.5%
90.5 % 10104 / 11163 96.4 % 585 / 607 74.4 % 5622 / 7553
kernel/none
91.3%91.3%
91.3 % 3078 / 3372 83.9 % 348 / 415 76.4 % 2773 / 3630
basemath
91.1%91.1%
91.1 % 63870 / 70148 93.8 % 5454 / 5814 77.3 % 38297 / 49542
kernel/gmp
91.0%91.0%
91.0 % 746 / 820 98.3 % 57 / 58 81.6 % 525 / 643
headers
88.5%88.5%
88.5 % 1144 / 1292 87.3 % 474 / 543 82.0 % 498 / 607

Generated by: LCOV version 1.9