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 19053-42ab05e) Lines: 8753 12047 72.7 %
Date: 2016-06-29 Functions: 906 1168 77.6 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 4854 8327 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.7%32.7%
32.7 % 280 / 856 46.1 % 41 / 89 24.0 % 166 / 693
default.c
48.7%48.7%
48.7 % 240 / 493 49.2 % 29 / 59 28.0 % 88 / 314
init.c
68.2%68.2%
68.2 % 799 / 1171 71.2 % 94 / 132 49.6 % 393 / 792
es.c
60.1%60.1%
60.1 % 1525 / 2538 68.9 % 202 / 293 50.3 % 956 / 1902
eval.c
72.9%72.9%
72.9 % 1010 / 1386 81.8 % 90 / 110 58.2 % 509 / 875
hash.c
80.3%80.3%
80.3 % 126 / 157 88.5 % 23 / 26 67.4 % 62 / 92
parse.c
69.4%69.4%
69.4 % 175 / 252 100.0 % 5 / 5 69.9 % 188 / 269
anal.c
89.0%89.0%
89.0 % 661 / 743 98.0 % 100 / 102 71.4 % 394 / 552
intnum.c
94.9%94.9%
94.9 % 974 / 1026 96.3 % 78 / 81 75.5 % 471 / 624
forprime.c
83.9%83.9%
83.9 % 371 / 442 86.5 % 32 / 37 75.7 % 253 / 334
sumiter.c
95.9%95.9%
95.9 % 776 / 809 100.0 % 65 / 65 77.5 % 438 / 565
compile.c
89.1%89.1%
89.1 % 1298 / 1456 96.2 % 77 / 80 78.9 % 705 / 894
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
parse.y
96.9%96.9%
96.9 % 125 / 129 - 0 / 0 100.0 % 2 / 2

Generated by: LCOV version 1.9