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.16.2 lcov report (development 29419-8afb0ed749) Lines: 124113 135307 91.7 %
Date: 2024-07-02 09:03:41 Functions: 11364 12109 93.8 %
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
base5.c
68.8%68.8%
68.8 % 1098 / 1597 85.4 % 76 / 89
FpV.c
76.3%76.3%
76.3 % 729 / 955 79.3 % 107 / 135
pclgp.c
77.2%77.2%
77.2 % 1838 / 2381 85.0 % 153 / 180
FpXX.c
78.3%78.3%
78.3 % 955 / 1219 85.1 % 114 / 134
lll.c
81.3%81.3%
81.3 % 1330 / 1636 97.7 % 125 / 128
FlxX.c
81.4%81.4%
81.4 % 1195 / 1468 76.4 % 149 / 195
ifactor1.c
82.2%82.2%
82.2 % 1577 / 1918 86.9 % 93 / 107
FpXQX_factor.c
82.9%82.9%
82.9 % 1614 / 1946 83.0 % 127 / 153
galconj.c
83.2%83.2%
83.2 % 1913 / 2299 79.1 % 121 / 153
F3v.c
83.5%83.5%
83.5 % 152 / 182 76.7 % 23 / 30
F2x.c
83.9%83.9%
83.9 % 1544 / 1840 89.7 % 192 / 214
crvwtors.c
84.8%84.8%
84.8 % 274 / 323 83.3 % 25 / 30
aprcl.c
84.8%84.8%
84.8 % 597 / 704 98.0 % 49 / 50
factcyclo.c
85.0%85.0%
85.0 % 915 / 1077 90.6 % 77 / 85
Zp.c
85.3%85.3%
85.3 % 734 / 860 87.3 % 69 / 79
ellanal.c
87.0%87.0%
87.0 % 683 / 785 92.8 % 64 / 69
F2v.c
87.4%87.4%
87.4 % 554 / 634 80.9 % 55 / 68
alglin1.c
87.6%87.6%
87.6 % 2751 / 3142 93.4 % 296 / 317
ZV.c
87.9%87.9%
87.9 % 791 / 900 89.7 % 122 / 136
RgV.c
88.1%88.1%
88.1 % 509 / 578 91.3 % 95 / 104
Flx.c
88.6%88.6%
88.6 % 2402 / 2712 86.5 % 296 / 342
ZX.c
88.7%88.7%
88.7 % 702 / 791 88.8 % 95 / 107
gen2.c
89.0%89.0%
89.0 % 1585 / 1780 94.3 % 149 / 158
lambert.c
89.8%89.8%
89.8 % 237 / 264 81.8 % 18 / 22
polarit3.c
89.8%89.8%
89.8 % 1757 / 1956 93.0 % 185 / 199
Qfb.c
90.0%90.0%
90.0 % 1102 / 1224 93.6 % 131 / 140
hnf_snf.c
90.2%90.2%
90.2 % 1612 / 1788 90.7 % 97 / 107
alglin2.c
90.4%90.4%
90.4 % 1061 / 1174 93.4 % 85 / 91
polarit2.c
90.6%90.6%
90.6 % 2245 / 2479 95.3 % 204 / 214
prime.c
91.0%91.0%
91.0 % 640 / 703 92.1 % 70 / 76
FpX.c
91.1%91.1%
91.1 % 1631 / 1791 93.4 % 184 / 197
arith1.c
91.2%91.2%
91.2 % 2072 / 2272 93.9 % 216 / 230
FF.c
91.3%91.3%
91.3 % 1356 / 1486 93.3 % 139 / 149
RgX.c
91.4%91.4%
91.4 % 1620 / 1773 91.7 % 200 / 218
FpE.c
91.5%91.5%
91.5 % 1093 / 1195 93.8 % 121 / 129
buch2.c
91.4%91.4%
91.4 % 2190 / 2395 93.4 % 155 / 166
lfunutils.c
91.7%91.7%
91.7 % 1804 / 1968 94.1 % 177 / 188
FpX_factor.c
91.7%91.7%
91.7 % 1307 / 1425 91.9 % 114 / 124
base4.c
91.7%91.7%
91.7 % 1685 / 1837 91.9 % 170 / 185
concat.c
91.9%91.9%
91.9 % 329 / 358 100.0 % 15 / 15
perm.c
92.3%92.3%
92.3 % 1025 / 1111 94.1 % 112 / 119
gen3.c
92.3%92.3%
92.3 % 2423 / 2626 95.5 % 231 / 242
alglin3.c
92.4%92.4%
92.4 % 550 / 595 88.7 % 47 / 53
lfunlarge.c
92.7%92.7%
92.7 % 481 / 519 97.3 % 73 / 75
subcyclo.c
92.8%92.8%
92.8 % 609 / 656 93.9 % 46 / 49
ecpp.c
92.9%92.9%
92.9 % 748 / 805 96.9 % 95 / 98
nffactor.c
93.0%93.0%
93.0 % 1222 / 1314 94.9 % 75 / 79
ispower.c
93.2%93.2%
93.2 % 685 / 735 94.9 % 37 / 39
modsym.c
93.2%93.2%
93.2 % 2824 / 3030 98.3 % 294 / 299
dirichlet.c
93.3%93.3%
93.3 % 614 / 658 95.2 % 40 / 42
ellrank.c
93.4%93.4%
93.4 % 1141 / 1222 93.9 % 108 / 115
trans3.c
93.3%93.3%
93.3 % 1742 / 1867 97.7 % 126 / 129
FlxqE.c
93.4%93.4%
93.4 % 865 / 926 94.5 % 86 / 91
buch3.c
93.4%93.4%
93.4 % 1508 / 1614 96.0 % 120 / 125
Fle.c
93.6%93.6%
93.6 % 427 / 456 89.1 % 57 / 64
F2xqE.c
93.7%93.7%
93.7 % 419 / 447 94.8 % 55 / 58
hyperell.c
93.9%93.9%
93.9 % 875 / 932 100.0 % 75 / 75
arith2.c
93.9%93.9%
93.9 % 524 / 558 93.4 % 71 / 76
gen1.c
93.9%93.9%
93.9 % 1935 / 2060 100.0 % 101 / 101
elliptic.c
94.0%94.0%
94.0 % 4365 / 4645 98.0 % 388 / 396
bb_group.c
94.0%94.0%
94.0 % 534 / 568 100.0 % 36 / 36
base3.c
94.2%94.2%
94.2 % 2052 / 2179 94.6 % 228 / 241
bibli1.c
94.3%94.3%
94.3 % 1190 / 1262 92.5 % 74 / 80
base1.c
94.5%94.5%
94.5 % 1716 / 1816 88.0 % 139 / 158
Flxq_log.c
94.7%94.7%
94.7 % 443 / 468 100.0 % 28 / 28
base2.c
94.7%94.7%
94.7 % 2213 / 2338 97.7 % 168 / 172
bern.c
95.0%95.0%
95.0 % 340 / 358 97.2 % 35 / 36
buch1.c
95.3%95.3%
95.3 % 652 / 684 92.5 % 49 / 53
bibli2.c
95.4%95.4%
95.4 % 1255 / 1315 95.9 % 116 / 121
digits.c
95.6%95.6%
95.6 % 195 / 204 100.0 % 27 / 27
elltors.c
95.7%95.7%
95.7 % 419 / 438 92.3 % 24 / 26
char.c
95.7%95.7%
95.7 % 820 / 857 100.0 % 63 / 63
polarit1.c
95.8%95.8%
95.8 % 319 / 333 100.0 % 32 / 32
buch4.c
95.9%95.9%
95.9 % 140 / 146 100.0 % 8 / 8
ellsea.c
95.9%95.9%
95.9 % 1208 / 1260 96.9 % 94 / 97
subgroup.c
96.0%96.0%
96.0 % 356 / 371 100.0 % 24 / 24
trans2.c
96.0%96.0%
96.0 % 1260 / 1313 97.9 % 95 / 97
rootpol.c
95.9%95.9%
95.9 % 1480 / 1543 97.5 % 116 / 119
quad.c
96.1%96.1%
96.1 % 687 / 715 95.0 % 57 / 60
ellpadic.c
96.2%96.2%
96.2 % 588 / 611 100.0 % 47 / 47
nflist.c
96.3%96.3%
96.3 % 3109 / 3228 97.8 % 314 / 321
bnfunits.c
96.4%96.4%
96.4 % 217 / 225 100.0 % 14 / 14
lerch.c
96.4%96.4%
96.4 % 352 / 365 100.0 % 23 / 23
QX_factor.c
96.5%96.5%
96.5 % 773 / 801 97.8 % 44 / 45
bit.c
96.7%96.7%
96.7 % 408 / 422 94.4 % 34 / 36
msfarey.c
96.9%96.9%
96.9 % 187 / 193 100.0 % 17 / 17
lfunquad.c
96.8%96.8%
96.8 % 337 / 348 97.7 % 42 / 43
zetamult.c
96.9%96.9%
96.9 % 560 / 578 97.6 % 40 / 41
bb_hnf.c
96.8%96.8%
96.8 % 643 / 664 96.4 % 53 / 55
hgm.c
96.9%96.9%
96.9 % 1218 / 1257 100.0 % 139 / 139
polmodular.c
97.0%97.0%
97.0 % 2281 / 2352 100.0 % 142 / 142
nflistQT.c
97.0%97.0%
97.0 % 164 / 169 100.0 % 12 / 12
ramanujantau.c
97.3%97.3%
97.3 % 107 / 110 100.0 % 12 / 12
Flv.c
97.2%97.2%
97.2 % 737 / 758 93.5 % 58 / 62
trans1.c
97.2%97.2%
97.2 % 2260 / 2325 99.4 % 166 / 167
mftrace.c
97.3%97.3%
97.3 % 7539 / 7750 99.2 % 766 / 772
lfun.c
97.5%97.5%
97.5 % 1591 / 1632 100.0 % 163 / 163
polclass.c
97.5%97.5%
97.5 % 825 / 846 98.6 % 72 / 73
bnflog.c
97.8%97.8%
97.8 % 272 / 278 100.0 % 26 / 26
qfisom.c
98.1%98.1%
98.1 % 871 / 888 100.0 % 55 / 55
subfield.c
98.0%98.0%
98.0 % 939 / 958 100.0 % 49 / 49
qfsolve.c
98.3%98.3%
98.3 % 623 / 634 100.0 % 34 / 34
volcano.c
98.6%98.6%
98.6 % 340 / 345 100.0 % 28 / 28
mellininv.c
98.6%98.6%
98.6 % 349 / 354 100.0 % 40 / 40
ellisog.c
98.5%98.5%
98.5 % 1015 / 1030 100.0 % 88 / 88
grossenchar.c
98.6%98.6%
98.6 % 1033 / 1048 100.0 % 66 / 66
Ser.c
98.8%98.8%
98.8 % 162 / 164 100.0 % 21 / 21
kummer.c
98.7%98.7%
98.7 % 855 / 866 100.0 % 61 / 61
map.c
99.2%99.2%
99.2 % 240 / 242 100.0 % 30 / 30
hypergeom.c
99.4%99.4%
99.4 % 682 / 686 100.0 % 69 / 69
matperm.c
100.0%
100.0 % 78 / 78 100.0 % 4 / 4
ellpadiclambdamu.c
100.0%
100.0 % 113 / 113 100.0 % 7 / 7
random.c
100.0%
100.0 % 157 / 157 100.0 % 17 / 17

Generated by: LCOV version 1.16