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 16624-25b9976) Lines: 7715 10222 75.5 %
Date: 2014-06-24 Functions: 826 988 83.6 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 4241 7132 59.5 %

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 % 272 / 501
compat.c
90.0%90.0%
90.0 % 54 / 60 96.6 % 28 / 29 68.6 % 24 / 35
compile.c
86.7%86.7%
86.7 % 1223 / 1411 93.3 % 70 / 75 76.6 % 662 / 864
default.c
41.0%41.0%
41.0 % 184 / 449 45.6 % 26 / 57 22.8 % 69 / 303
es.c
72.6%72.6%
72.6 % 1762 / 2428 84.2 % 235 / 279 56.4 % 1059 / 1878
eval.c
67.6%67.6%
67.6 % 857 / 1267 76.3 % 71 / 93 52.0 % 414 / 796
hash.c
65.0%65.0%
65.0 % 76 / 117 81.2 % 13 / 16 51.5 % 35 / 68
init.c
70.3%70.3%
70.3 % 808 / 1150 74.2 % 95 / 128 53.8 % 418 / 777
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 % 290 / 296 96.4 % 53 / 55 93.9 % 201 / 214
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 % 800 / 994 90.0 % 63 / 70 63.4 % 486 / 766

Generated by: LCOV version 1.9