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 20443-183d202) Lines: 110248 123903 89.0 %
Date: 2017-03-27 05:17:48 Functions: 9993 10969 91.1 %
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.1%40.1%
40.1 % 283 / 706 39.1 % 25 / 64
graph
58.9%58.9%
58.9 % 874 / 1483 68.0 % 83 / 122
mt
82.0%82.0%
82.0 % 41 / 50 71.4 % 15 / 21
language
72.4%72.4%
72.4 % 9140 / 12630 76.7 % 929 / 1211
kernel/none
92.9%92.9%
92.9 % 3162 / 3405 84.8 % 368 / 434
headers
87.9%87.9%
87.9 % 1246 / 1418 88.0 % 530 / 602
basemath
91.6%91.6%
91.6 % 82181 / 89684 94.1 % 7160 / 7608
modules
91.8%91.8%
91.8 % 12579 / 13704 97.3 % 826 / 849
kernel/gmp
90.2%90.2%
90.2 % 742 / 823 98.3 % 57 / 58

Generated by: LCOV version 1.11