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-bordeaux.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 - basemath Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21750-0b751f6) Lines: 96517 103741 93.0 %
Date: 2018-01-23 06:20:06 Functions: 8633 9067 95.2 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
ZG.c
60.3%60.3%
60.3 % 44 / 73 57.1 % 8 / 14
Fle.c
86.8%86.8%
86.8 % 296 / 341 79.6 % 39 / 49
FpV.c
77.1%77.1%
77.1 % 722 / 936 80.2 % 105 / 131
buch4.c
80.6%80.6%
80.6 % 390 / 484 81.8 % 27 / 33
crvwtors.c
84.2%84.2%
84.2 % 271 / 322 82.8 % 24 / 29
ifactor1.c
80.6%80.6%
80.6 % 1470 / 1823 87.0 % 87 / 100
base1.c
94.9%94.9%
94.9 % 1444 / 1522 87.4 % 111 / 127
FpXQX_factor.c
84.7%84.7%
84.7 % 1421 / 1678 87.5 % 105 / 120
alglin3.c
91.6%91.6%
91.6 % 466 / 509 87.8 % 43 / 49
polarit3.c
88.0%88.0%
88.0 % 1317 / 1497 91.1 % 143 / 157
base4.c
90.3%90.3%
90.3 % 1357 / 1503 91.2 % 135 / 148
bibli1.c
95.0%95.0%
95.0 % 1035 / 1089 91.4 % 64 / 70
kummer.c
86.4%86.4%
86.4 % 736 / 852 91.5 % 54 / 59
elltors.c
97.3%97.3%
97.3 % 392 / 403 91.7 % 22 / 24
bit.c
91.2%91.2%
91.2 % 372 / 408 91.7 % 33 / 36
RgV.c
88.6%88.6%
88.6 % 475 / 536 91.7 % 88 / 96
FpE.c
91.9%91.9%
91.9 % 981 / 1068 92.1 % 105 / 114
Flx.c
92.3%92.3%
92.3 % 2836 / 3074 92.2 % 344 / 373
gen2.c
87.8%87.8%
87.8 % 1357 / 1546 92.7 % 140 / 151
RgX.c
90.4%90.4%
90.4 % 1457 / 1612 92.9 % 171 / 184
Qfb.c
91.8%91.8%
91.8 % 850 / 926 93.0 % 93 / 100
ellanal.c
91.6%91.6%
91.6 % 665 / 726 93.1 % 54 / 58
lll.c
91.3%91.3%
91.3 % 422 / 462 93.3 % 28 / 30
buch1.c
94.8%94.8%
94.8 % 636 / 671 93.6 % 44 / 47
arith1.c
92.2%92.2%
92.2 % 2920 / 3166 93.7 % 268 / 286
rootpol.c
91.4%91.4%
91.4 % 1516 / 1658 94.0 % 109 / 116
F2x.c
92.8%92.8%
92.8 % 1437 / 1549 94.1 % 174 / 185
ecpp.c
89.0%89.0%
89.0 % 832 / 935 94.2 % 97 / 103
nffactor.c
92.4%92.4%
92.4 % 1126 / 1219 94.4 % 67 / 71
hnf_snf.c
91.1%91.1%
91.1 % 1493 / 1639 94.4 % 84 / 89
alglin2.c
90.2%90.2%
90.2 % 934 / 1035 94.6 % 70 / 74
base5.c
92.5%92.5%
92.5 % 1031 / 1114 94.7 % 72 / 76
buch2.c
92.6%92.6%
92.6 % 2303 / 2486 94.7 % 143 / 151
alglin1.c
94.1%94.1%
94.1 % 3392 / 3606 94.7 % 323 / 341
F2xqE.c
94.2%94.2%
94.2 % 420 / 446 94.8 % 55 / 58
perm.c
93.2%93.2%
93.2 % 653 / 701 94.9 % 75 / 79
ZX.c
94.0%94.0%
94.0 % 548 / 583 94.9 % 75 / 79
ZV.c
91.1%91.1%
91.1 % 756 / 830 95.0 % 114 / 120
FpX_factor.c
92.9%92.9%
92.9 % 1520 / 1637 95.0 % 134 / 141
FpXX.c
91.3%91.3%
91.3 % 821 / 899 95.3 % 101 / 106
base3.c
94.0%94.0%
94.0 % 1586 / 1688 95.2 % 180 / 189
polarit2.c
90.0%90.0%
90.0 % 1786 / 1984 95.3 % 163 / 171
zetamult.c
98.4%98.4%
98.4 % 246 / 250 95.5 % 21 / 22
FF.c
94.6%94.6%
94.6 % 1042 / 1102 95.4 % 125 / 131
bb_hnf.c
94.0%94.0%
94.0 % 468 / 498 95.7 % 44 / 46
gen3.c
92.8%92.8%
92.8 % 2118 / 2283 95.9 % 212 / 221
buch3.c
94.1%94.1%
94.1 % 1392 / 1479 96.3 % 104 / 108
FpX.c
92.4%92.4%
92.4 % 1300 / 1407 96.2 % 153 / 159
lfunutils.c
92.3%92.3%
92.3 % 1192 / 1291 96.3 % 105 / 109
mellininv.c
95.1%95.1%
95.1 % 311 / 327 96.7 % 29 / 30
arith2.c
93.5%93.5%
93.5 % 600 / 642 96.7 % 88 / 91
bb_group.c
92.7%92.7%
92.7 % 519 / 560 97.1 % 33 / 34
prime.c
91.0%91.0%
91.0 % 583 / 641 97.1 % 66 / 68
subcyclo.c
94.9%94.9%
94.9 % 522 / 550 97.6 % 40 / 41
ellsea.c
95.8%95.8%
95.8 % 1119 / 1168 97.6 % 81 / 83
QX_factor.c
95.9%95.9%
95.9 % 719 / 750 97.6 % 41 / 42
elliptic.c
93.6%93.6%
93.6 % 3656 / 3907 97.6 % 330 / 338
bibli2.c
97.3%97.3%
97.3 % 1010 / 1038 97.8 % 90 / 92
Hensel.c
96.2%96.2%
96.2 % 535 / 556 97.9 % 47 / 48
aprcl.c
84.6%84.6%
84.6 % 610 / 721 98.1 % 51 / 52
galconj.c
95.4%95.4%
95.4 % 1602 / 1679 98.0 % 99 / 101
base2.c
94.5%94.5%
94.5 % 2023 / 2140 98.2 % 161 / 164
trans3.c
95.2%95.2%
95.2 % 1815 / 1906 98.3 % 115 / 117
polclass.c
97.1%97.1%
97.1 % 841 / 866 98.3 % 59 / 60
lfun.c
94.3%94.3%
94.3 % 1315 / 1395 98.5 % 133 / 135
trans1.c
97.6%97.6%
97.6 % 1972 / 2021 98.6 % 144 / 146
FlxqE.c
97.0%97.0%
97.0 % 916 / 944 99.0 % 96 / 97
modsym.c
97.5%97.5%
97.5 % 2552 / 2618 99.6 % 274 / 275
mftrace.c
97.4%97.4%
97.4 % 6857 / 7040 99.7 % 707 / 709
matperm.c
100.0%
100.0 % 78 / 78 100.0 % 4 / 4
dirichlet.c
95.5%95.5%
95.5 % 84 / 88 100.0 % 8 / 8
concat.c
90.5%90.5%
90.5 % 304 / 336 100.0 % 15 / 15
random.c
100.0%
100.0 % 136 / 136 100.0 % 16 / 16
volcano.c
94.2%94.2%
94.2 % 420 / 446 100.0 % 22 / 22
subgroup.c
95.0%95.0%
95.0 % 344 / 362 100.0 % 22 / 22
bnflog.c
97.9%97.9%
97.9 % 275 / 281 100.0 % 24 / 24
Flxq_log.c
95.5%95.5%
95.5 % 446 / 467 100.0 % 28 / 28
polarit1.c
95.6%95.6%
95.6 % 306 / 320 100.0 % 30 / 30
qfsolve.c
98.5%98.5%
98.5 % 595 / 604 100.0 % 30 / 30
map.c
95.5%95.5%
95.5 % 275 / 288 100.0 % 33 / 33
hyperell.c
95.8%95.8%
95.8 % 482 / 503 100.0 % 41 / 41
ellpadic.c
96.0%96.0%
96.0 % 581 / 605 100.0 % 47 / 47
qfisom.c
95.9%95.9%
95.9 % 985 / 1027 100.0 % 54 / 54
trans2.c
96.1%96.1%
96.1 % 999 / 1040 100.0 % 63 / 63
char.c
97.3%97.3%
97.3 % 783 / 805 100.0 % 63 / 63
ellisog.c
97.2%97.2%
97.2 % 944 / 971 100.0 % 76 / 76
gen1.c
93.6%93.6%
93.6 % 1716 / 1833 100.0 % 88 / 88
polmodular.c
96.3%96.3%
96.3 % 2443 / 2536 100.0 % 150 / 150

Generated by: LCOV version 1.11