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-bordeaux1.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 16912-212c0f0) Lines: 7997 11167 71.6 %
Date: 2014-10-20 Functions: 843 1090 77.3 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 4385 7819 56.1 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
compat.c
0.0%
0.0 % 0 / 60 0.0 % 0 / 29 0.0 % 0 / 35
gplib.c
28.5%28.5%
28.5 % 242 / 849 40.9 % 36 / 88 20.9 % 145 / 694
default.c
43.5%43.5%
43.5 % 206 / 474 45.8 % 27 / 59 22.4 % 67 / 299
hash.c
65.0%65.0%
65.0 % 76 / 117 81.2 % 13 / 16 51.5 % 35 / 68
eval.c
68.1%68.1%
68.1 % 878 / 1290 77.3 % 75 / 97 52.0 % 418 / 804
init.c
70.4%70.4%
70.4 % 812 / 1154 72.7 % 93 / 128 54.3 % 414 / 763
anal.c
69.8%69.8%
69.8 % 426 / 610 88.7 % 63 / 71 54.9 % 277 / 505
es.c
73.1%73.1%
73.1 % 1798 / 2461 84.2 % 240 / 285 57.1 % 1064 / 1862
intnum.c
89.8%89.8%
89.8 % 850 / 947 94.6 % 87 / 92 63.5 % 396 / 624
sumiter.c
80.5%80.5%
80.5 % 802 / 996 90.0 % 63 / 70 63.4 % 491 / 774
parse.c
66.3%66.3%
66.3 % 167 / 252 100.0 % 5 / 5 68.5 % 185 / 270
compile.c
85.8%85.8%
85.8 % 1221 / 1423 91.0 % 71 / 78 76.0 % 665 / 875
parsec.h
95.4%95.4%
95.4 % 104 / 109 100.0 % 17 / 17 83.3 % 25 / 30
members.c
98.0%98.0%
98.0 % 290 / 296 96.4 % 53 / 55 93.9 % 201 / 214
parse.y
96.9%96.9%
96.9 % 125 / 129 - 0 / 0 100.0 % 2 / 2

Generated by: LCOV version 1.9