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 19226-b907b8d) Lines: 8754 12098 72.4 %
Date: 2016-07-29 07:10:27 Functions: 907 1169 77.6 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
readline.c
0.0%
0.0 % 0 / 189 0.0 % 0 / 17
gplib.c
32.1%32.1%
32.1 % 276 / 859 46.1 % 41 / 89
default.c
48.5%48.5%
48.5 % 239 / 493 49.2 % 29 / 59
es.c
59.8%59.8%
59.8 % 1520 / 2540 68.9 % 202 / 293
init.c
67.7%67.7%
67.7 % 797 / 1178 71.4 % 95 / 133
eval.c
72.9%72.9%
72.9 % 1012 / 1388 81.8 % 90 / 110
forprime.c
83.7%83.7%
83.7 % 370 / 442 86.5 % 32 / 37
hash.c
79.0%79.0%
79.0 % 124 / 157 88.5 % 23 / 26
compile.c
89.1%89.1%
89.1 % 1327 / 1489 96.2 % 77 / 80
intnum.c
94.6%94.6%
94.6 % 971 / 1026 96.3 % 78 / 81
members.c
96.3%96.3%
96.3 % 290 / 301 96.4 % 53 / 55
anal.c
88.8%88.8%
88.8 % 660 / 743 98.0 % 100 / 102
parse.y
95.3%95.3%
95.3 % 123 / 129 - 0 / 0
parse.c
69.4%69.4%
69.4 % 175 / 252 100.0 % 5 / 5
parsec.h
97.1%97.1%
97.1 % 100 / 103 100.0 % 17 / 17
sumiter.c
95.2%95.2%
95.2 % 770 / 809 100.0 % 65 / 65

Generated by: LCOV version 1.11