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.8.0 lcov report (development 19070-36a960b) Lines: 104814 117482 89.2 %
Date: 2016-06-30 Functions: 9406 10323 91.1 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 61585 81140 75.9 %

Directory Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
basemath
91.9%91.9%
91.9 % 78016 / 84893 94.0 % 6671 / 7096 78.7 % 45673 / 58032
gp
38.7%38.7%
38.7 % 274 / 708 34.9 % 22 / 63 23.6 % 103 / 436
graph
65.6%65.6%
65.6 % 941 / 1434 76.1 % 86 / 113 50.3 % 408 / 811
headers
89.3%89.3%
89.3 % 1196 / 1340 88.6 % 506 / 571 84.3 % 543 / 644
kernel/gmp
90.9%90.9%
90.9 % 748 / 823 98.3 % 57 / 58 81.9 % 528 / 645
kernel/none
91.9%91.9%
91.9 % 3180 / 3459 84.4 % 357 / 423 75.7 % 2711 / 3580
language
72.7%72.7%
72.7 % 8753 / 12047 77.6 % 906 / 1168 58.3 % 4854 / 8327
modules
91.6%91.6%
91.6 % 11499 / 12557 97.0 % 770 / 794 78.1 % 6698 / 8579
mt
93.7%93.7%
93.7 % 207 / 221 83.8 % 31 / 37 77.9 % 67 / 86

Generated by: LCOV version 1.9