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-bordeaux1.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 17784-cfd2407) Lines: 96401 108915 88.5 %
Date: 2015-04-27 Functions: 8564 9487 90.3 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 56710 75657 75.0 %

Directory Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
basemath
91.7%91.7%
91.7 % 69153 / 75398 93.8 % 5878 / 6266 78.1 % 40734 / 52140
gp
30.9%30.9%
30.9 % 272 / 879 28.2 % 22 / 78 16.9 % 103 / 609
graph
57.8%57.8%
57.8 % 826 / 1430 64.0 % 71 / 111 40.3 % 326 / 809
headers
89.5%89.5%
89.5 % 1183 / 1322 88.3 % 491 / 556 83.8 % 526 / 628
kernel/gmp
90.9%90.9%
90.9 % 748 / 823 98.3 % 57 / 58 81.5 % 524 / 643
kernel/none
91.9%91.9%
91.9 % 3169 / 3449 84.5 % 355 / 420 75.4 % 2695 / 3574
language
71.6%71.6%
71.6 % 8206 / 11456 76.3 % 836 / 1095 57.7 % 4560 / 7905
modules
91.9%91.9%
91.9 % 12808 / 13942 96.7 % 838 / 867 78.1 % 7236 / 9267
mt
16.7%16.7%
16.7 % 36 / 216 44.4 % 16 / 36 7.3 % 6 / 82

Generated by: LCOV version 1.9