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 19611-73a567d) Lines: 8794 12090 72.7 %
Date: 2016-09-27 05:54:40 Functions: 912 1168 78.1 %
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
37.8%37.8%
37.8 % 332 / 879 51.1 % 46 / 90
default.c
51.2%51.2%
51.2 % 267 / 521 51.6 % 32 / 62
es.c
59.2%59.2%
59.2 % 1494 / 2525 68.6 % 199 / 290
init.c
67.7%67.7%
67.7 % 798 / 1178 72.2 % 96 / 133
eval.c
74.3%74.3%
74.3 % 1032 / 1389 82.7 % 91 / 110
forprime.c
83.8%83.8%
83.8 % 372 / 444 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.5%94.5%
94.5 % 952 / 1007 96.3 % 78 / 81
members.c
96.3%96.3%
96.3 % 290 / 301 96.4 % 53 / 55
anal.c
88.9%88.9%
88.9 % 638 / 718 98.0 % 98 / 100
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