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.14.0 lcov report (development 26556-bf10826472) Lines: 113301 122485 92.5 %
Date: 2021-05-16 06:48:43 Functions: 10240 10864 94.3 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
F2v.c
84.3%84.3%
84.3 % 537 / 637 75.8 % 50 / 66
F2x.c
83.3%83.3%
83.3 % 1438 / 1727 86.6 % 175 / 202
F2xqE.c
93.7%93.7%
93.7 % 419 / 447 94.8 % 55 / 58
FF.c
92.6%92.6%
92.6 % 1345 / 1453 94.6 % 139 / 147
Fle.c
93.2%93.2%
93.2 % 438 / 470 89.1 % 57 / 64
Flv.c
97.6%97.6%
97.6 % 743 / 761 95.2 % 59 / 62
Flx.c
89.1%89.1%
89.1 % 2131 / 2392 88.5 % 253 / 286
FlxX.c
89.3%89.3%
89.3 % 1099 / 1230 89.4 % 127 / 142
FlxqE.c
97.3%97.3%
97.3 % 797 / 819 98.8 % 79 / 80
Flxq_log.c
95.3%95.3%
95.3 % 445 / 467 100.0 % 28 / 28
FpE.c
91.7%91.7%
91.7 % 985 / 1074 93.0 % 106 / 114
FpV.c
78.5%78.5%
78.5 % 747 / 951 84.2 % 112 / 133
FpX.c
90.9%90.9%
90.9 % 1434 / 1578 93.0 % 173 / 186
FpXQX_factor.c
83.2%83.2%
83.2 % 1590 / 1910 84.5 % 125 / 148
FpXX.c
83.9%83.9%
83.9 % 915 / 1091 87.9 % 109 / 124
FpX_factor.c
91.7%91.7%
91.7 % 1276 / 1391 91.5 % 108 / 118
Hensel.c
92.8%92.8%
92.8 % 632 / 681 92.6 % 63 / 68
QX_factor.c
96.4%96.4%
96.4 % 772 / 801 97.9 % 46 / 47
Qfb.c
88.6%88.6%
88.6 % 933 / 1053 91.9 % 114 / 124
RgV.c
88.9%88.9%
88.9 % 519 / 584 91.3 % 94 / 103
RgX.c
89.6%89.6%
89.6 % 1553 / 1734 91.2 % 187 / 205
Ser.c
99.3%99.3%
99.3 % 140 / 141 100.0 % 18 / 18
ZG.c
60.3%60.3%
60.3 % 44 / 73 57.1 % 8 / 14
ZV.c
89.1%89.1%
89.1 % 781 / 877 92.4 % 122 / 132
ZX.c
89.3%89.3%
89.3 % 690 / 773 92.9 % 91 / 98
alglin1.c
86.7%86.7%
86.7 % 2742 / 3163 93.0 % 291 / 313
alglin2.c
90.2%90.2%
90.2 % 1016 / 1126 92.9 % 79 / 85
alglin3.c
92.6%92.6%
92.6 % 529 / 571 88.7 % 47 / 53
aprcl.c
85.1%85.1%
85.1 % 601 / 706 98.0 % 50 / 51
arith1.c
93.1%93.1%
93.1 % 3177 / 3413 94.7 % 284 / 300
arith2.c
88.9%88.9%
88.9 % 617 / 694 91.7 % 88 / 96
base1.c
92.2%92.2%
92.2 % 1658 / 1798 85.7 % 132 / 154
base2.c
94.7%94.7%
94.7 % 2161 / 2282 97.7 % 167 / 171
base3.c
93.5%93.5%
93.5 % 1875 / 2006 94.6 % 209 / 221
base4.c
89.2%89.2%
89.2 % 1578 / 1769 89.6 % 155 / 173
base5.c
92.8%92.8%
92.8 % 1079 / 1163 94.9 % 75 / 79
bb_group.c
93.8%93.8%
93.8 % 541 / 577 100.0 % 36 / 36
bb_hnf.c
94.0%94.0%
94.0 % 630 / 670 92.7 % 51 / 55
bern.c
91.2%91.2%
91.2 % 289 / 317 96.8 % 30 / 31
bibli1.c
95.1%95.1%
95.1 % 1058 / 1112 91.9 % 68 / 74
bibli2.c
95.2%95.2%
95.2 % 1183 / 1243 94.8 % 110 / 116
bit.c
96.7%96.7%
96.7 % 408 / 422 94.4 % 34 / 36
bnflog.c
97.8%97.8%
97.8 % 273 / 279 100.0 % 26 / 26
bnfunits.c
96.4%96.4%
96.4 % 216 / 224 100.0 % 14 / 14
buch1.c
94.6%94.6%
94.6 % 636 / 672 91.5 % 43 / 47
buch2.c
92.0%92.0%
92.0 % 2172 / 2362 92.6 % 150 / 162
buch3.c
94.4%94.4%
94.4 % 1519 / 1609 96.0 % 119 / 124
buch4.c
95.9%95.9%
95.9 % 141 / 147 100.0 % 8 / 8
char.c
97.2%97.2%
97.2 % 807 / 830 100.0 % 63 / 63
concat.c
91.6%91.6%
91.6 % 329 / 359 100.0 % 15 / 15
crvwtors.c
83.2%83.2%
83.2 % 283 / 340 82.8 % 24 / 29
dirichlet.c
91.5%91.5%
91.5 % 313 / 342 100.0 % 21 / 21
ecpp.c
92.1%92.1%
92.1 % 745 / 809 96.9 % 95 / 98
ellanal.c
92.1%92.1%
92.1 % 727 / 789 94.4 % 67 / 71
elliptic.c
93.8%93.8%
93.8 % 4152 / 4428 98.2 % 375 / 382
ellisog.c
98.8%98.8%
98.8 % 952 / 964 100.0 % 79 / 79
ellpadic.c
96.0%96.0%
96.0 % 583 / 607 100.0 % 47 / 47
ellpadiclambdamu.c
100.0%
100.0 % 113 / 113 100.0 % 7 / 7
ellrank.c
90.2%90.2%
90.2 % 868 / 962 90.6 % 77 / 85
ellsea.c
95.5%95.5%
95.5 % 1156 / 1211 96.8 % 90 / 93
elltors.c
95.5%95.5%
95.5 % 424 / 444 92.6 % 25 / 27
galconj.c
80.7%80.7%
80.7 % 1835 / 2275 75.8 % 113 / 149
gen1.c
94.8%94.8%
94.8 % 1823 / 1923 100.0 % 94 / 94
gen2.c
88.6%88.6%
88.6 % 1531 / 1728 94.0 % 142 / 151
gen3.c
92.6%92.6%
92.6 % 2461 / 2659 95.8 % 229 / 239
hnf_snf.c
90.4%90.4%
90.4 % 1514 / 1674 90.5 % 86 / 95
hyperell.c
92.1%92.1%
92.1 % 488 / 530 97.7 % 42 / 43
hypergeom.c
99.7%99.7%
99.7 % 668 / 670 100.0 % 70 / 70
ifactor1.c
84.7%84.7%
84.7 % 1571 / 1854 90.4 % 94 / 104
kummer.c
98.7%98.7%
98.7 % 851 / 862 100.0 % 61 / 61
lambert.c
89.5%89.5%
89.5 % 212 / 237 82.6 % 19 / 23
lfun.c
96.1%96.1%
96.1 % 1424 / 1482 99.4 % 157 / 158
lfunquad.c
96.9%96.9%
96.9 % 342 / 353 97.7 % 43 / 44
lfunutils.c
93.1%93.1%
93.1 % 1611 / 1730 95.0 % 153 / 161
lll.c
95.6%95.6%
95.6 % 1196 / 1251 97.8 % 90 / 92
map.c
99.1%99.1%
99.1 % 219 / 221 100.0 % 27 / 27
matperm.c
100.0%
100.0 % 78 / 78 100.0 % 4 / 4
mellininv.c
98.8%98.8%
98.8 % 333 / 337 100.0 % 36 / 36
mftrace.c
97.5%97.5%
97.5 % 7535 / 7725 99.4 % 766 / 771
modsym.c
93.2%93.2%
93.2 % 2819 / 3025 98.3 % 294 / 299
msfarey.c
96.8%96.8%
96.8 % 184 / 190 100.0 % 17 / 17
nffactor.c
95.4%95.4%
95.4 % 1144 / 1199 98.6 % 69 / 70
nflist.c
97.7%97.7%
97.7 % 3059 / 3130 98.7 % 312 / 316
nflistQT.c
98.6%98.6%
98.6 % 510 / 517 100.0 % 11 / 11
perm.c
82.5%82.5%
82.5 % 738 / 895 88.7 % 86 / 97
polarit1.c
95.8%95.8%
95.8 % 316 / 330 100.0 % 32 / 32
polarit2.c
89.9%89.9%
89.9 % 2161 / 2403 94.8 % 199 / 210
polarit3.c
89.8%89.8%
89.8 % 1724 / 1920 92.8 % 181 / 195
polclass.c
97.0%97.0%
97.0 % 833 / 859 98.3 % 58 / 59
polmodular.c
97.1%97.1%
97.1 % 2314 / 2384 100.0 % 143 / 143
prime.c
87.8%87.8%
87.8 % 646 / 736 90.8 % 69 / 76
qfisom.c
97.6%97.6%
97.6 % 867 / 888 100.0 % 55 / 55
qfsolve.c
98.3%98.3%
98.3 % 590 / 600 100.0 % 32 / 32
ramanujantau.c
97.3%97.3%
97.3 % 107 / 110 100.0 % 12 / 12
random.c
100.0%
100.0 % 152 / 152 100.0 % 17 / 17
rootpol.c
95.8%95.8%
95.8 % 1470 / 1535 97.5 % 116 / 119
subcyclo.c
92.4%92.4%
92.4 % 546 / 591 95.3 % 41 / 43
subfield.c
98.1%98.1%
98.1 % 933 / 951 98.0 % 48 / 49
subgroup.c
96.0%96.0%
96.0 % 356 / 371 100.0 % 24 / 24
trans1.c
96.8%96.8%
96.8 % 2233 / 2306 98.2 % 165 / 168
trans2.c
95.9%95.9%
95.9 % 1196 / 1247 97.9 % 92 / 94
trans3.c
93.2%93.2%
93.2 % 1877 / 2013 97.7 % 130 / 133
volcano.c
98.0%98.0%
98.0 % 336 / 343 100.0 % 22 / 22
zetamult.c
96.6%96.6%
96.6 % 544 / 563 100.0 % 40 / 40

Generated by: LCOV version 1.13