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 21505-505a0e1) Lines: 123698 136290 90.8 %
Date: 2017-12-17 06:20:46 Functions: 11374 12293 92.5 %
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.3%40.3%
40.3 % 283 / 702 39.1 % 25 / 64
language
74.5%74.5%
74.5 % 9530 / 12799 79.2 % 972 / 1228
graph
77.3%77.3%
77.3 % 1118 / 1447 74.4 % 93 / 125
headers
88.3%88.3%
88.3 % 1240 / 1404 88.7 % 555 / 626
kernel/gmp
91.4%91.4%
91.4 % 752 / 823 98.3 % 57 / 58
modules
92.7%92.7%
92.7 % 11626 / 12543 97.8 % 749 / 766
kernel/none
92.7%92.7%
92.7 % 3220 / 3473 85.1 % 370 / 435
basemath
93.0%93.0%
93.0 % 95699 / 102853 95.2 % 8523 / 8953
mt
93.5%93.5%
93.5 % 230 / 246 78.9 % 30 / 38

Generated by: LCOV version 1.11