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 19044-129ab8a) Lines: 8747 12043 72.6 %
Date: 2016-06-27 Functions: 905 1167 77.5 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 4853 8328 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.2%68.2%
68.2 % 798 / 1170 71.2 % 94 / 132 49.6 % 393 / 792
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.2 % 510 / 876
hash.c
80.3%80.3%
80.3 % 126 / 157 88.5 % 23 / 26 67.4 % 62 / 92
forprime.c
83.9%83.9%
83.9 % 371 / 442 86.5 % 32 / 37 75.7 % 253 / 334
anal.c
89.0%89.0%
89.0 % 661 / 743 98.0 % 100 / 102 71.4 % 394 / 552
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
95.9%95.9%
95.9 % 776 / 809 100.0 % 65 / 65 77.5 % 438 / 565
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