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 - language Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 19361-ac4f238) Lines: 8792 12087 72.7 %
Date: 2016-08-28 06:11:39 Functions: 913 1169 78.1 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
readline.c
0.0%
0.0 % 0 / 189 0.0 % 0 / 17
gplib.c
36.3%36.3%
36.3 % 312 / 859 50.6 % 45 / 89
default.c
48.5%48.5%
48.5 % 239 / 493 49.2 % 29 / 59
es.c
59.7%59.7%
59.7 % 1520 / 2547 68.9 % 202 / 293
init.c
67.7%67.7%
67.7 % 798 / 1178 72.2 % 96 / 133
parse.c
69.4%69.4%
69.4 % 175 / 252 100.0 % 5 / 5
eval.c
74.3%74.3%
74.3 % 1032 / 1389 82.7 % 91 / 110
hash.c
79.0%79.0%
79.0 % 124 / 157 88.5 % 23 / 26
forprime.c
83.7%83.7%
83.7 % 370 / 442 86.5 % 32 / 37
anal.c
88.8%88.8%
88.8 % 660 / 743 98.0 % 100 / 102
compile.c
89.1%89.1%
89.1 % 1327 / 1489 96.2 % 77 / 80
intnum.c
94.5%94.5%
94.5 % 952 / 1007 96.3 % 78 / 81
sumiter.c
95.2%95.2%
95.2 % 770 / 809 100.0 % 65 / 65
parse.y
95.3%95.3%
95.3 % 123 / 129 - 0 / 0
members.c
96.3%96.3%
96.3 % 290 / 301 96.4 % 53 / 55
parsec.h
97.1%97.1%
97.1 % 100 / 103 100.0 % 17 / 17

Generated by: LCOV version 1.11