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 16827-3d78da8) Lines: 88780 101161 87.8 %
Date: 2014-09-29 Functions: 7972 8812 90.5 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 52710 71605 73.6 %

Directory Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
basemath
90.9%90.9%
90.9 % 64333 / 70774 93.8 % 5515 / 5882 77.1 % 38421 / 49831
gp
32.9%32.9%
32.9 % 584 / 1773 35.3 % 59 / 167 22.7 % 310 / 1367
graph
64.5%64.5%
64.5 % 928 / 1439 76.4 % 84 / 110 47.3 % 379 / 802
headers
88.6%88.6%
88.6 % 1148 / 1296 87.3 % 474 / 543 82.2 % 503 / 612
kernel/gmp
90.9%90.9%
90.9 % 748 / 823 98.3 % 57 / 58 81.2 % 522 / 643
kernel/none
91.5%91.5%
91.5 % 3145 / 3437 84.2 % 351 / 417 74.4 % 2656 / 3568
language
75.6%75.6%
75.6 % 7765 / 10268 83.7 % 832 / 994 59.7 % 4274 / 7155
modules
90.6%90.6%
90.6 % 10093 / 11137 96.5 % 584 / 605 74.7 % 5639 / 7545
mt
16.8%16.8%
16.8 % 36 / 214 44.4 % 16 / 36 7.3 % 6 / 82

Generated by: LCOV version 1.9