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.10.0 lcov report (development 19825-b77c7f8) Lines: 8760 12080 72.5 %
Date: 2016-12-04 05:49:01 Functions: 906 1165 77.8 %
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 / 191 0.0 % 0 / 17
gplib.c
38.0%38.0%
38.0 % 336 / 884 51.1 % 46 / 90
default.c
51.2%51.2%
51.2 % 267 / 521 51.6 % 32 / 62
es.c
58.3%58.3%
58.3 % 1473 / 2528 67.2 % 195 / 290
init.c
69.1%69.1%
69.1 % 799 / 1157 73.8 % 96 / 130
eval.c
74.3%74.3%
74.3 % 1032 / 1389 82.7 % 91 / 110
forprime.c
83.8%83.8%
83.8 % 373 / 445 86.5 % 32 / 37
hash.c
79.0%79.0%
79.0 % 124 / 157 88.5 % 23 / 26
anal.c
86.8%86.8%
86.8 % 623 / 718 96.0 % 96 / 100
compile.c
88.9%88.9%
88.9 % 1323 / 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
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