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.8.0 lcov report (development 18898-50fc0a2) Lines: 104055 116897 89.0 %
Date: 2016-05-04 Functions: 9334 10252 91.0 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 61201 80830 75.7 %

Directory Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
gp
38.7%38.7%
38.7 % 274 / 708 34.9 % 22 / 63 23.6 % 103 / 436
graph
65.5%65.5%
65.5 % 937 / 1430 75.7 % 84 / 111 50.3 % 407 / 809
language
72.5%72.5%
72.5 % 8563 / 11812 77.2 % 878 / 1137 58.3 % 4806 / 8243
kernel/none
91.9%91.9%
91.9 % 3180 / 3459 84.4 % 357 / 423 75.8 % 2713 / 3578
mt
93.5%93.5%
93.5 % 202 / 216 83.3 % 30 / 36 77.4 % 65 / 84
modules
91.6%91.6%
91.6 % 11509 / 12565 97.0 % 770 / 794 78.3 % 6693 / 8553
basemath
91.6%91.6%
91.6 % 77437 / 84542 93.9 % 6628 / 7059 78.4 % 45340 / 57838
kernel/gmp
90.9%90.9%
90.9 % 748 / 823 98.3 % 57 / 58 82.0 % 527 / 643
headers
89.8%89.8%
89.8 % 1205 / 1342 89.0 % 508 / 571 84.7 % 547 / 646

Generated by: LCOV version 1.9