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-bordeaux1.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 17566-be4cfd0) Lines: 8100 11271 71.9 %
Date: 2015-02-27 Functions: 847 1091 77.6 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 4506 7854 57.4 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
default.c
44.5%44.5%
44.5 % 210 / 472 46.6 % 27 / 58 24.2 % 72 / 298
gplib.c
32.2%32.2%
32.2 % 273 / 849 46.6 % 41 / 88 23.3 % 161 / 690
es.c
61.6%61.6%
61.6 % 1539 / 2498 70.0 % 201 / 287 51.0 % 959 / 1880
init.c
66.3%66.3%
66.3 % 762 / 1150 70.5 % 91 / 129 49.2 % 382 / 777
eval.c
69.0%69.0%
69.0 % 899 / 1303 78.0 % 78 / 100 54.3 % 442 / 814
hash.c
80.5%80.5%
80.5 % 124 / 154 87.5 % 21 / 24 69.6 % 64 / 92
anal.c
83.9%83.9%
83.9 % 567 / 676 94.3 % 82 / 87 66.2 % 331 / 500
intnum.c
89.8%89.8%
89.8 % 850 / 947 94.6 % 87 / 92 63.5 % 396 / 624
compile.c
89.0%89.0%
89.0 % 1282 / 1441 94.9 % 75 / 79 78.9 % 699 / 886
members.c
98.0%98.0%
98.0 % 290 / 296 96.4 % 53 / 55 93.9 % 201 / 214
sumiter.c
90.3%90.3%
90.3 % 904 / 1001 98.6 % 69 / 70 74.9 % 586 / 782
parse.y
96.9%96.9%
96.9 % 125 / 129 - 0 / 0 100.0 % 2 / 2
parse.c
69.4%69.4%
69.4 % 175 / 252 100.0 % 5 / 5 69.5 % 187 / 269
parsec.h
97.1%97.1%
97.1 % 100 / 103 100.0 % 17 / 17 92.3 % 24 / 26

Generated by: LCOV version 1.9