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 16804-345a01c) Lines: 88375 101170 87.4 %
Date: 2014-09-20 Functions: 7912 8812 89.8 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 52525 71581 73.4 %

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 % 64361 / 70788 93.8 % 5516 / 5881 77.1 % 38436 / 49833
gp
32.9%32.9%
32.9 % 584 / 1773 35.3 % 59 / 167 22.7 % 310 / 1367
graph
63.4%63.4%
63.4 % 912 / 1439 76.4 % 84 / 110 47.1 % 378 / 802
headers
88.5%88.5%
88.5 % 1147 / 1296 87.3 % 474 / 543 81.9 % 501 / 612
kernel/gmp
90.9%90.9%
90.9 % 748 / 823 98.3 % 57 / 58 81.2 % 522 / 643
kernel/none
91.4%91.4%
91.4 % 3130 / 3426 83.9 % 350 / 417 74.4 % 2641 / 3550
language
71.6%71.6%
71.6 % 7355 / 10268 77.6 % 771 / 994 57.3 % 4098 / 7155
modules
90.7%90.7%
90.7 % 10102 / 11143 96.5 % 585 / 606 74.7 % 5633 / 7537
mt
16.8%16.8%
16.8 % 36 / 214 44.4 % 16 / 36 7.3 % 6 / 82

Generated by: LCOV version 1.9