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 20704-afbaa81) Lines: 112751 125146 90.1 %
Date: 2017-05-26 05:56:59 Functions: 10218 11094 92.1 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 %

Directory Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
basemath
92.0%92.0%
92.0 % 84661 / 92007 94.3 % 7356 / 7804
gp
40.0%40.0%
40.0 % 282 / 705 39.1 % 25 / 64
graph
77.9%77.9%
77.9 % 1118 / 1436 75.0 % 93 / 124
headers
87.9%87.9%
87.9 % 1246 / 1417 88.1 % 531 / 603
kernel/gmp
90.6%90.6%
90.6 % 746 / 823 98.3 % 57 / 58
kernel/none
92.4%92.4%
92.4 % 3202 / 3467 84.8 % 368 / 434
language
77.5%77.5%
77.5 % 9867 / 12724 84.0 % 1027 / 1222
modules
92.5%92.5%
92.5 % 11413 / 12337 97.7 % 730 / 747
mt
93.9%93.9%
93.9 % 216 / 230 81.6 % 31 / 38

Generated by: LCOV version 1.11