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.10.0 lcov report (development 20296-0a10b35) Lines: 9364 12617 74.2 %
Date: 2017-02-26 05:50:47 Functions: 955 1210 78.9 %
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 / 191 0.0 % 0 / 17
gplib.c
38.0%38.0%
38.0 % 336 / 884 51.1 % 46 / 90
default.c
51.3%51.3%
51.3 % 267 / 520 51.6 % 32 / 62
es.c
58.7%58.7%
58.7 % 1480 / 2523 67.4 % 196 / 291
init.c
71.4%71.4%
71.4 % 840 / 1177 75.9 % 101 / 133
eval.c
74.4%74.4%
74.4 % 1035 / 1392 82.7 % 91 / 110
forprime.c
84.1%84.1%
84.1 % 371 / 441 86.5 % 32 / 37
hash.c
79.5%79.5%
79.5 % 124 / 156 88.5 % 23 / 26
anal.c
86.9%86.9%
86.9 % 624 / 718 96.0 % 96 / 100
compile.c
89.1%89.1%
89.1 % 1327 / 1489 96.2 % 77 / 80
members.c
97.3%97.3%
97.3 % 286 / 294 96.4 % 53 / 55
intnum.c
97.8%97.8%
97.8 % 1388 / 1419 99.1 % 115 / 116
parse.y
95.3%95.3%
95.3 % 123 / 129 - 0 / 0
parse.c
69.4%69.4%
69.4 % 175 / 252 100.0 % 5 / 5
parsec.h
97.1%97.1%
97.1 % 100 / 103 100.0 % 17 / 17
sumiter.c
95.6%95.6%
95.6 % 888 / 929 100.0 % 71 / 71

Generated by: LCOV version 1.11