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.8.0 lcov report (development 18946-c0ba5ba) Lines: 8563 11812 72.5 %
Date: 2016-05-24 Functions: 878 1137 77.2 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 4808 8245 58.3 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
readline.c
0.0%
0.0 % 0 / 189 0.0 % 0 / 17 0.0 % 0 / 177
gplib.c
32.5%32.5%
32.5 % 278 / 856 46.1 % 41 / 89 23.7 % 164 / 693
default.c
48.7%48.7%
48.7 % 240 / 493 49.2 % 29 / 59 28.0 % 88 / 314
es.c
60.0%60.0%
60.0 % 1522 / 2535 68.8 % 201 / 292 50.3 % 956 / 1902
init.c
68.0%68.0%
68.0 % 792 / 1165 71.0 % 93 / 131 49.4 % 392 / 793
parse.c
69.4%69.4%
69.4 % 175 / 252 100.0 % 5 / 5 69.9 % 188 / 269
eval.c
72.9%72.9%
72.9 % 1010 / 1386 81.8 % 90 / 110 58.3 % 511 / 876
hash.c
80.3%80.3%
80.3 % 126 / 157 88.5 % 23 / 26 67.4 % 62 / 92
anal.c
86.0%86.0%
86.0 % 619 / 720 95.7 % 90 / 94 68.4 % 387 / 566
compile.c
89.1%89.1%
89.1 % 1298 / 1456 96.2 % 77 / 80 78.9 % 705 / 894
intnum.c
94.9%94.9%
94.9 % 974 / 1026 96.3 % 78 / 81 75.5 % 471 / 624
sumiter.c
96.5%96.5%
96.5 % 1011 / 1048 100.0 % 81 / 81 81.5 % 653 / 801
parse.y
96.9%96.9%
96.9 % 125 / 129 - 0 / 0 100.0 % 2 / 2
parsec.h
97.1%97.1%
97.1 % 100 / 103 100.0 % 17 / 17 92.3 % 24 / 26
members.c
98.7%98.7%
98.7 % 293 / 297 96.4 % 53 / 55 94.9 % 205 / 216

Generated by: LCOV version 1.9