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 18591-61b65cc) Lines: 102369 115370 88.7 %
Date: 2016-02-10 Functions: 9136 10077 90.7 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 60257 79876 75.4 %

Directory Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
basemath
91.2%91.2%
91.2 % 75747 / 83026 93.4 % 6445 / 6898 78.0 % 44416 / 56910
gp
38.6%38.6%
38.6 % 273 / 707 34.9 % 22 / 63 23.6 % 103 / 436
graph
65.5%65.5%
65.5 % 937 / 1430 75.7 % 84 / 111 50.3 % 407 / 809
headers
89.1%89.1%
89.1 % 1186 / 1331 88.3 % 496 / 562 84.0 % 529 / 630
kernel/gmp
90.9%90.9%
90.9 % 748 / 823 98.3 % 57 / 58 81.8 % 526 / 643
kernel/none
91.9%91.9%
91.9 % 3180 / 3459 84.4 % 357 / 423 75.8 % 2712 / 3578
language
72.7%72.7%
72.7 % 8589 / 11813 77.3 % 875 / 1132 58.4 % 4809 / 8233
modules
91.6%91.6%
91.6 % 11507 / 12565 97.0 % 770 / 794 78.2 % 6691 / 8553
mt
93.5%93.5%
93.5 % 202 / 216 83.3 % 30 / 36 76.2 % 64 / 84

Generated by: LCOV version 1.9