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 21739-44c3c17) Lines: 9584 12849 74.6 %
Date: 2018-01-20 06:18:48 Functions: 978 1233 79.3 %
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
38.3%38.3%
38.3 % 340 / 887 51.1 % 46 / 90
default.c
52.6%52.6%
52.6 % 278 / 529 53.1 % 34 / 64
es.c
58.9%58.9%
58.9 % 1495 / 2539 67.9 % 199 / 293
init.c
70.2%70.2%
70.2 % 832 / 1185 75.4 % 101 / 134
eval.c
73.8%73.8%
73.8 % 1026 / 1390 82.7 % 91 / 110
forprime.c
84.0%84.0%
84.0 % 367 / 437 86.1 % 31 / 36
hash.c
79.5%79.5%
79.5 % 124 / 156 88.5 % 23 / 26
anal.c
86.9%86.9%
86.9 % 625 / 719 96.0 % 96 / 100
compile.c
89.5%89.5%
89.5 % 1336 / 1493 96.2 % 77 / 80
members.c
97.4%97.4%
97.4 % 299 / 307 96.4 % 54 / 56
intnum.c
97.8%97.8%
97.8 % 1429 / 1461 99.2 % 117 / 118
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
96.2%96.2%
96.2 % 1035 / 1076 100.0 % 87 / 87

Generated by: LCOV version 1.11