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 17072-bc6ca01) Lines: 7592 11168 68.0 %
Date: 2014-11-17 Functions: 786 1092 72.0 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 4191 7795 53.8 %

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 / 850 40.9 % 36 / 88 20.9 % 145 / 694
default.c
43.2%43.2%
43.2 % 204 / 472 44.8 % 26 / 58 22.4 % 67 / 299
hash.c
59.0%59.0%
59.0 % 69 / 117 75.0 % 12 / 16 42.6 % 29 / 68
eval.c
62.2%62.2%
62.2 % 802 / 1289 68.0 % 66 / 97 47.0 % 378 / 804
init.c
65.1%65.1%
65.1 % 752 / 1156 67.2 % 86 / 128 49.9 % 380 / 761
es.c
61.7%61.7%
61.7 % 1518 / 2459 69.1 % 197 / 285 51.5 % 958 / 1860
anal.c
71.3%71.3%
71.3 % 437 / 613 90.4 % 66 / 73 54.9 % 269 / 490
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
69.4%69.4%
69.4 % 175 / 252 100.0 % 5 / 5 69.5 % 187 / 269
compile.c
85.8%85.8%
85.8 % 1226 / 1429 91.1 % 72 / 79 75.9 % 664 / 875
parsec.h
97.1%97.1%
97.1 % 100 / 103 100.0 % 17 / 17 92.3 % 24 / 26
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