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 - gp Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17110-9967e23) Lines: 278 916 30.3 %
Date: 2014-11-26 Functions: 22 84 26.2 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 116 645 18.0 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
emacs.c
0.0%
0.0 % 0 / 4 0.0 % 0 / 1 - 0 / 0
gp.c
58.2%58.2%
58.2 % 199 / 342 58.6 % 17 / 29 40.7 % 79 / 194
gp_init.c
7.7%7.7%
7.7 % 1 / 13 20.0 % 1 / 5 0.0 % 0 / 4
gp_rl.c
9.7%9.7%
9.7 % 38 / 391 5.9 % 2 / 34 1.1 % 4 / 355
texmacs.c
0.0%
0.0 % 0 / 126 0.0 % 0 / 13 0.0 % 0 / 58
whatnow.c
100.0%
100.0 % 40 / 40 100.0 % 2 / 2 97.1 % 33 / 34

Generated by: LCOV version 1.9