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 16375-9f41ae0) Lines: 7295 10114 72.1 %
Date: 2014-04-19 Functions: 762 975 78.2 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 4034 7043 57.3 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
anal.c
69.6%69.6%
69.6 % 422 / 606 88.7 % 63 / 71 54.3 % 271 / 499
compat.c
93.9%93.9%
93.9 % 31 / 33 96.0 % 24 / 25 75.0 % 12 / 16
compile.c
86.9%86.9%
86.9 % 1211 / 1393 93.3 % 70 / 75 77.3 % 647 / 837
default.c
41.5%41.5%
41.5 % 184 / 443 46.4 % 26 / 56 22.9 % 69 / 301
es.c
63.0%63.0%
63.0 % 1529 / 2426 69.5 % 194 / 279 52.0 % 974 / 1874
eval.c
62.3%62.3%
62.3 % 776 / 1246 66.3 % 61 / 92 47.3 % 372 / 787
hash.c
50.0%50.0%
50.0 % 58 / 116 66.7 % 10 / 15 35.3 % 24 / 68
init.c
67.6%67.6%
67.6 % 755 / 1117 73.0 % 89 / 122 50.3 % 380 / 755
intnum.c
89.8%89.8%
89.8 % 850 / 947 94.6 % 87 / 92 63.5 % 396 / 624
members.c
98.0%98.0%
98.0 % 289 / 295 96.4 % 53 / 55 94.3 % 198 / 210
parse.c
64.3%64.3%
64.3 % 162 / 252 100.0 % 5 / 5 67.0 % 181 / 270
parse.y
96.9%96.9%
96.9 % 125 / 129 - 0 / 0 100.0 % 2 / 2
parsec.h
87.9%87.9%
87.9 % 102 / 116 94.4 % 17 / 18 64.7 % 22 / 34
sumiter.c
80.5%80.5%
80.5 % 801 / 995 90.0 % 63 / 70 63.4 % 486 / 766

Generated by: LCOV version 1.9