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 21348-d75f58f) Lines: 9870 12727 77.6 %
Date: 2017-11-20 06:21:05 Functions: 1028 1223 84.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 / 191 0.0 % 0 / 17
gplib.c
38.5%38.5%
38.5 % 340 / 884 51.1 % 46 / 90
default.c
52.2%52.2%
52.2 % 276 / 529 53.1 % 34 / 64
parse.c
69.4%69.4%
69.4 % 175 / 252 100.0 % 5 / 5
es.c
71.3%71.3%
71.3 % 1802 / 2529 84.6 % 247 / 292
init.c
74.2%74.2%
74.2 % 878 / 1183 80.6 % 108 / 134
eval.c
75.5%75.5%
75.5 % 1050 / 1390 84.5 % 93 / 110
hash.c
79.5%79.5%
79.5 % 124 / 156 88.5 % 23 / 26
forprime.c
84.1%84.1%
84.1 % 370 / 440 86.5 % 32 / 37
anal.c
89.0%89.0%
89.0 % 640 / 719 98.0 % 98 / 100
compile.c
90.0%90.0%
90.0 % 1343 / 1493 96.2 % 77 / 80
parse.y
95.3%95.3%
95.3 % 123 / 129 - 0 / 0
sumiter.c
95.9%95.9%
95.9 % 970 / 1011 100.0 % 79 / 79
parsec.h
97.1%97.1%
97.1 % 100 / 103 100.0 % 17 / 17
members.c
97.3%97.3%
97.3 % 292 / 300 96.4 % 54 / 56
intnum.c
97.8%97.8%
97.8 % 1387 / 1418 99.1 % 115 / 116

Generated by: LCOV version 1.11