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 17240-4611fa9) Lines: 93996 106894 87.9 %
Date: 2014-12-21 Functions: 8368 9335 89.6 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 55045 74243 74.1 %

Directory Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
gp
30.3%30.3%
30.3 % 278 / 916 26.2 % 22 / 84 18.1 % 116 / 641
mt
16.7%16.7%
16.7 % 36 / 216 44.4 % 16 / 36 7.3 % 6 / 82
language
68.7%68.7%
68.7 % 7765 / 11305 73.1 % 814 / 1114 54.2 % 4266 / 7865
graph
62.8%62.8%
62.8 % 904 / 1439 73.6 % 81 / 110 46.9 % 376 / 802
kernel/none
91.9%91.9%
91.9 % 3171 / 3449 84.5 % 355 / 420 74.9 % 2676 / 3574
headers
89.2%89.2%
89.2 % 1178 / 1320 88.1 % 488 / 554 83.0 % 521 / 628
basemath
91.5%91.5%
91.5 % 67745 / 74038 93.7 % 5758 / 6144 77.8 % 39843 / 51223
modules
90.9%90.9%
90.9 % 12171 / 13388 95.3 % 777 / 815 76.5 % 6719 / 8785
kernel/gmp
90.9%90.9%
90.9 % 748 / 823 98.3 % 57 / 58 81.2 % 522 / 643

Generated by: LCOV version 1.9