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 16358-a11f489) Lines: 10057 11107 90.5 %
Date: 2014-04-11 Functions: 578 599 96.5 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 5587 7511 74.4 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
DedekZeta.c
97.5%97.5%
97.5 % 354 / 363 92.9 % 13 / 14 84.1 % 190 / 226
aprcl.c
88.5%88.5%
88.5 % 516 / 583 97.8 % 45 / 46 62.5 % 295 / 472
elldata.c
95.0%95.0%
95.0 % 134 / 141 100.0 % 15 / 15 70.6 % 101 / 143
ellsea.c
93.6%93.6%
93.6 % 869 / 928 96.5 % 55 / 57 74.2 % 331 / 446
galois.c
96.1%96.1%
96.1 % 1457 / 1516 96.9 % 63 / 65 85.8 % 1271 / 1481
galpol.c
92.9%92.9%
92.9 % 26 / 28 100.0 % 2 / 2 68.0 % 17 / 25
genus2red.c
89.4%89.4%
89.4 % 1237 / 1384 98.1 % 51 / 52 70.9 % 527 / 743
groupid.c
85.7%85.7%
85.7 % 168 / 196 87.5 % 7 / 8 66.8 % 161 / 241
krasner.c
98.4%98.4%
98.4 % 441 / 448 100.0 % 35 / 35 84.6 % 198 / 234
kummer.c
87.0%87.0%
87.0 % 771 / 886 91.7 % 55 / 60 67.0 % 381 / 569
mpqs.c
81.0%81.0%
81.0 % 920 / 1136 100.0 % 38 / 38 63.3 % 447 / 706
part.c
82.3%82.3%
82.3 % 158 / 192 92.9 % 13 / 14 65.4 % 100 / 153
stark.c
90.0%90.0%
90.0 % 1787 / 1986 94.3 % 115 / 122 73.6 % 880 / 1195
subfield.c
92.4%92.4%
92.4 % 496 / 537 100.0 % 26 / 26 81.2 % 289 / 356
thue.c
92.3%92.3%
92.3 % 723 / 783 100.0 % 45 / 45 76.6 % 399 / 521

Generated by: LCOV version 1.9