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 16393-29b9383) Lines: 7265 10118 71.8 %
Date: 2014-04-24 Functions: 760 975 77.9 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 4019 7045 57.0 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
default.c
41.5%41.5%
41.5 % 184 / 443 46.4 % 26 / 56 22.9 % 69 / 301
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
es.c
61.8%61.8%
61.8 % 1499 / 2426 68.8 % 192 / 279 51.2 % 959 / 1874
init.c
67.4%67.4%
67.4 % 755 / 1121 73.0 % 89 / 122 50.2 % 380 / 757
anal.c
69.6%69.6%
69.6 % 422 / 606 88.7 % 63 / 71 54.3 % 271 / 499
sumiter.c
80.5%80.5%
80.5 % 801 / 995 90.0 % 63 / 70 63.4 % 486 / 766
compile.c
86.9%86.9%
86.9 % 1211 / 1393 93.3 % 70 / 75 77.3 % 647 / 837
parsec.h
87.9%87.9%
87.9 % 102 / 116 94.4 % 17 / 18 64.7 % 22 / 34
intnum.c
89.8%89.8%
89.8 % 850 / 947 94.6 % 87 / 92 63.5 % 396 / 624
compat.c
93.9%93.9%
93.9 % 31 / 33 96.0 % 24 / 25 75.0 % 12 / 16
members.c
98.0%98.0%
98.0 % 289 / 295 96.4 % 53 / 55 94.3 % 198 / 210
parse.y
96.9%96.9%
96.9 % 125 / 129 - 0 / 0 100.0 % 2 / 2
parse.c
64.3%64.3%
64.3 % 162 / 252 100.0 % 5 / 5 67.0 % 181 / 270

Generated by: LCOV version 1.9