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 - modules Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17097-9391e68) Lines: 10248 11224 91.3 %
Date: 2014-11-21 Functions: 595 613 97.1 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 5763 7621 75.6 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
DedekZeta.c
97.2%97.2%
97.2 % 353 / 363 85.7 % 12 / 14 83.6 % 189 / 226
groupid.c
85.7%85.7%
85.7 % 168 / 196 87.5 % 7 / 8 66.8 % 161 / 241
kummer.c
86.5%86.5%
86.5 % 740 / 855 91.4 % 53 / 58 65.8 % 361 / 549
part.c
81.4%81.4%
81.4 % 149 / 183 92.3 % 12 / 13 65.8 % 98 / 149
ellsea.c
94.2%94.2%
94.2 % 950 / 1009 95.5 % 63 / 66 75.4 % 398 / 528
galois.c
96.1%96.1%
96.1 % 1458 / 1517 96.9 % 63 / 65 85.8 % 1271 / 1481
aprcl.c
87.5%87.5%
87.5 % 510 / 583 97.8 % 45 / 46 60.4 % 285 / 472
thue.c
93.1%93.1%
93.1 % 787 / 845 98.1 % 52 / 53 80.6 % 460 / 571
stark.c
93.1%93.1%
93.1 % 1848 / 1984 98.3 % 119 / 121 78.4 % 931 / 1187
galpol.c
92.9%92.9%
92.9 % 26 / 28 100.0 % 2 / 2 68.0 % 17 / 25
elldata.c
95.0%95.0%
95.0 % 134 / 141 100.0 % 15 / 15 71.3 % 102 / 143
subfield.c
92.4%92.4%
92.4 % 496 / 537 100.0 % 26 / 26 81.2 % 289 / 356
krasner.c
98.4%98.4%
98.4 % 441 / 448 100.0 % 35 / 35 84.6 % 198 / 234
mpqs.c
81.0%81.0%
81.0 % 920 / 1136 100.0 % 38 / 38 63.3 % 447 / 706
genus2red.c
90.6%90.6%
90.6 % 1268 / 1399 100.0 % 53 / 53 73.8 % 556 / 753

Generated by: LCOV version 1.9