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 to exceed 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.12.0 lcov report (development 23332-367b47754) Lines: 98774 106200 93.0 %
Date: 2018-12-10 05:41:52 Functions: 8953 9437 94.9 %
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
FpV.c
75.4%75.4%
75.4 % 706 / 936 79.4 % 104 / 131
buch4.c
80.3%80.3%
80.3 % 387 / 482 81.8 % 27 / 33
ifactor1.c
80.4%80.4%
80.4 % 1456 / 1811 87.0 % 87 / 100
FpXQX_factor.c
83.5%83.5%
83.5 % 1577 / 1889 85.0 % 125 / 147
crvwtors.c
83.9%83.9%
83.9 % 270 / 322 82.8 % 24 / 29
FpXX.c
84.5%84.5%
84.5 % 865 / 1024 87.9 % 102 / 116
aprcl.c
84.8%84.8%
84.8 % 599 / 706 98.0 % 50 / 51
Qfb.c
87.0%87.0%
87.0 % 849 / 976 89.5 % 94 / 105
polarit3.c
87.8%87.8%
87.8 % 1310 / 1492 90.4 % 142 / 157
arith2.c
87.9%87.9%
87.9 % 590 / 671 91.6 % 87 / 95
gen2.c
88.3%88.3%
88.3 % 1322 / 1497 93.2 % 137 / 147
RgX.c
89.7%89.7%
89.7 % 1459 / 1626 92.1 % 175 / 190
FpX.c
90.0%90.0%
90.0 % 1294 / 1438 93.9 % 154 / 164
RgV.c
90.1%90.1%
90.1 % 484 / 537 92.7 % 89 / 96
lfunutils.c
90.1%90.1%
90.1 % 1380 / 1531 92.1 % 128 / 139
Fle.c
90.4%90.4%
90.4 % 301 / 333 83.3 % 40 / 48
base4.c
90.5%90.5%
90.5 % 1414 / 1562 91.0 % 141 / 155
alglin2.c
90.7%90.7%
90.7 % 954 / 1052 94.9 % 74 / 78
concat.c
90.8%90.8%
90.8 % 305 / 336 100.0 % 15 / 15
polarit2.c
90.7%90.7%
90.7 % 1879 / 2071 95.9 % 185 / 193
prime.c
90.9%90.9%
90.9 % 636 / 700 96.0 % 72 / 75
hnf_snf.c
91.0%91.0%
91.0 % 1508 / 1658 93.5 % 86 / 92
bit.c
91.2%91.2%
91.2 % 372 / 408 91.7 % 33 / 36
ZV.c
91.2%91.2%
91.2 % 765 / 839 95.1 % 116 / 122
ellanal.c
91.3%91.3%
91.3 % 669 / 733 93.2 % 55 / 59
rootpol.c
91.6%91.6%
91.6 % 1512 / 1651 93.9 % 108 / 115
alglin3.c
91.7%91.7%
91.7 % 473 / 516 88.0 % 44 / 50
kummer.c
91.7%91.7%
91.7 % 795 / 867 96.7 % 59 / 61
lll.c
91.8%91.8%
91.8 % 423 / 461 93.3 % 28 / 30
Flx.c
91.9%91.9%
91.9 % 2865 / 3117 92.1 % 349 / 379
FpE.c
92.2%92.2%
92.2 % 984 / 1067 93.0 % 106 / 114
bb_group.c
92.5%92.5%
92.5 % 534 / 577 97.2 % 35 / 36
base5.c
92.6%92.6%
92.6 % 1036 / 1119 94.8 % 73 / 77
gen3.c
92.6%92.6%
92.6 % 2070 / 2235 95.4 % 209 / 219
FpX_factor.c
92.8%92.8%
92.8 % 1244 / 1341 93.2 % 110 / 118
arith1.c
92.8%92.8%
92.8 % 3056 / 3294 93.9 % 275 / 293
ecpp.c
92.8%92.8%
92.8 % 633 / 682 97.7 % 84 / 86
nffactor.c
93.1%93.1%
93.1 % 1155 / 1241 94.5 % 69 / 73
F2x.c
93.1%93.1%
93.1 % 1466 / 1575 94.7 % 179 / 189
perm.c
93.3%93.3%
93.3 % 652 / 699 94.9 % 75 / 79
alglin1.c
93.4%93.4%
93.4 % 3442 / 3687 94.7 % 340 / 359
ZX.c
93.8%93.8%
93.8 % 558 / 595 95.1 % 77 / 81
base3.c
93.7%93.7%
93.7 % 1616 / 1724 94.8 % 181 / 191
bb_hnf.c
93.9%93.9%
93.9 % 600 / 639 92.7 % 51 / 55
elliptic.c
93.9%93.9%
93.9 % 3726 / 3967 98.0 % 340 / 347
F2xqE.c
94.2%94.2%
94.2 % 420 / 446 94.8 % 55 / 58
trans3.c
94.2%94.2%
94.2 % 1785 / 1894 98.2 % 111 / 113
buch2.c
94.3%94.3%
94.3 % 2354 / 2497 94.2 % 147 / 156
buch3.c
94.4%94.4%
94.4 % 1405 / 1489 96.3 % 105 / 109
gen1.c
94.4%94.4%
94.4 % 1708 / 1810 100.0 % 89 / 89
base2.c
94.6%94.6%
94.6 % 2115 / 2235 97.7 % 167 / 171
buch1.c
94.8%94.8%
94.8 % 634 / 669 93.6 % 44 / 47
FF.c
94.8%94.8%
94.8 % 1109 / 1170 95.7 % 134 / 140
subcyclo.c
94.9%94.9%
94.9 % 525 / 553 97.6 % 40 / 41
base1.c
95.0%95.0%
95.0 % 1533 / 1614 88.1 % 118 / 134
bibli1.c
95.1%95.1%
95.1 % 1028 / 1081 91.4 % 64 / 70
modsym.c
95.1%95.1%
95.1 % 2556 / 2689 97.9 % 274 / 280
galconj.c
95.2%95.2%
95.2 % 1591 / 1672 98.1 % 101 / 103
Hensel.c
95.4%95.4%
95.4 % 622 / 652 96.9 % 62 / 64
subgroup.c
95.5%95.5%
95.5 % 339 / 355 100.0 % 22 / 22
hyperell.c
95.8%95.8%
95.8 % 481 / 502 100.0 % 41 / 41
QX_factor.c
95.9%95.9%
95.9 % 717 / 748 97.6 % 41 / 42
ellsea.c
95.9%95.9%
95.9 % 1116 / 1164 97.6 % 82 / 84
lfun.c
95.9%95.9%
95.9 % 1372 / 1431 99.3 % 141 / 142
ellpadic.c
96.0%96.0%
96.0 % 580 / 604 100.0 % 47 / 47
trans2.c
96.1%96.1%
96.1 % 1079 / 1123 98.8 % 83 / 84
bibli2.c
96.1%96.1%
96.1 % 1086 / 1130 95.3 % 101 / 106
bern.c
96.3%96.3%
96.3 % 180 / 187 94.7 % 18 / 19
mellininv.c
96.3%96.3%
96.3 % 311 / 323 96.8 % 30 / 31
Flxq_log.c
96.4%96.4%
96.4 % 450 / 467 100.0 % 28 / 28
polarit1.c
96.6%96.6%
96.6 % 309 / 320 100.0 % 30 / 30
ellisog.c
96.5%96.5%
96.5 % 944 / 978 98.8 % 80 / 81
volcano.c
96.8%96.8%
96.8 % 329 / 340 100.0 % 22 / 22
FlxqE.c
96.9%96.9%
96.9 % 840 / 867 98.8 % 82 / 83
qfisom.c
97.0%97.0%
97.0 % 997 / 1028 100.0 % 55 / 55
polmodular.c
96.9%96.9%
96.9 % 2255 / 2326 100.0 % 142 / 142
dirichlet.c
97.0%97.0%
97.0 % 130 / 134 100.0 % 11 / 11
trans1.c
97.1%97.1%
97.1 % 2041 / 2101 98.7 % 151 / 153
elltors.c
97.3%97.3%
97.3 % 394 / 405 91.7 % 22 / 24
char.c
97.3%97.3%
97.3 % 784 / 806 100.0 % 63 / 63
polclass.c
97.3%97.3%
97.3 % 833 / 856 98.3 % 59 / 60
mftrace.c
97.7%97.7%
97.7 % 7294 / 7462 99.6 % 744 / 747
map.c
98.2%98.2%
98.2 % 215 / 219 100.0 % 27 / 27
bnflog.c
98.2%98.2%
98.2 % 273 / 278 100.0 % 24 / 24
zetamult.c
98.4%98.4%
98.4 % 246 / 250 95.5 % 21 / 22
qfsolve.c
98.5%98.5%
98.5 % 595 / 604 100.0 % 30 / 30
matperm.c
100.0%
100.0 % 78 / 78 100.0 % 4 / 4
Ser.c
100.0%
100.0 % 126 / 126 100.0 % 17 / 17
random.c
100.0%
100.0 % 141 / 141 100.0 % 16 / 16
hypergeom.c
100.0%
100.0 % 619 / 619 100.0 % 66 / 66

Generated by: LCOV version 1.13