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.10.0 lcov report (development 20116-58a92a9) Lines: 108795 121315 89.7 %
Date: 2017-01-23 05:49:11 Functions: 9853 10747 91.7 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 %

Directory Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
gp
40.8%40.8%
40.8 % 291 / 714 39.1 % 25 / 64
graph
65.3%65.3%
65.3 % 937 / 1434 76.1 % 86 / 113
mt
93.0%93.0%
93.0 % 211 / 227 78.4 % 29 / 37
language
74.0%74.0%
74.0 % 9251 / 12495 78.8 % 945 / 1200
kernel/none
92.4%92.4%
92.4 % 3188 / 3452 84.7 % 365 / 431
headers
87.6%87.6%
87.6 % 1205 / 1375 87.9 % 516 / 587
basemath
92.3%92.3%
92.3 % 81081 / 87814 94.6 % 7031 / 7435
modules
91.6%91.6%
91.6 % 11885 / 12981 97.2 % 799 / 822
kernel/gmp
90.6%90.6%
90.6 % 746 / 823 98.3 % 57 / 58

Generated by: LCOV version 1.11