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 22303-eb3e11d) Lines: 10102 12926 78.2 %
Date: 2018-04-20 06:16:30 Functions: 1055 1253 84.2 %
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 / 186 0.0 % 0 / 17
gplib.c
39.6%39.6%
39.6 % 343 / 866 51.1 % 47 / 92
default.c
54.2%54.2%
54.2 % 301 / 555 55.2 % 37 / 67
parse.c
69.4%69.4%
69.4 % 175 / 252 100.0 % 5 / 5
es.c
72.0%72.0%
72.0 % 1922 / 2670 85.1 % 262 / 308
init.c
74.1%74.1%
74.1 % 882 / 1191 80.6 % 108 / 134
eval.c
75.5%75.5%
75.5 % 1053 / 1394 84.5 % 93 / 110
hash.c
79.5%79.5%
79.5 % 124 / 156 88.5 % 23 / 26
forprime.c
84.7%84.7%
84.7 % 382 / 451 86.8 % 33 / 38
compile.c
90.0%90.0%
90.0 % 1343 / 1493 96.2 % 77 / 80
anal.c
94.4%94.4%
94.4 % 618 / 655 97.0 % 98 / 101
parse.y
95.3%95.3%
95.3 % 123 / 129 - 0 / 0
sumiter.c
96.0%96.0%
96.0 % 1036 / 1079 100.0 % 87 / 87
parsec.h
97.1%97.1%
97.1 % 100 / 103 100.0 % 17 / 17
members.c
97.4%97.4%
97.4 % 298 / 306 96.4 % 54 / 56
intnum.c
97.4%97.4%
97.4 % 1402 / 1440 99.1 % 114 / 115

Generated by: LCOV version 1.11