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.1 lcov report (development 25156-1acb90b619) Lines: 104590 113657 92.0 %
Date: 2020-03-29 06:01:15 Functions: 9447 10062 93.9 %
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
73.2%73.2%
73.2 % 251 / 343 66.0 % 31 / 47
F2x.c
83.3%83.3%
83.3 % 1437 / 1725 86.6 % 175 / 202
F2xqE.c
93.7%93.7%
93.7 % 419 / 447 94.8 % 55 / 58
FF.c
92.5%92.5%
92.5 % 1345 / 1454 94.6 % 139 / 147
Fle.c
84.1%84.1%
84.1 % 301 / 358 76.9 % 40 / 52
Flv.c
96.2%96.2%
96.2 % 733 / 762 93.4 % 57 / 61
Flx.c
89.1%89.1%
89.1 % 2136 / 2397 88.5 % 253 / 286
FlxX.c
89.5%89.5%
89.5 % 1101 / 1230 90.1 % 128 / 142
FlxqE.c
97.0%97.0%
97.0 % 845 / 871 98.8 % 82 / 83
Flxq_log.c
96.1%96.1%
96.1 % 449 / 467 100.0 % 28 / 28
FpE.c
92.3%92.3%
92.3 % 982 / 1064 93.0 % 106 / 114
FpV.c
78.4%78.4%
78.4 % 746 / 951 84.2 % 112 / 133
FpX.c
91.5%91.5%
91.5 % 1364 / 1490 94.7 % 160 / 169
FpXQX_factor.c
83.2%83.2%
83.2 % 1590 / 1910 84.5 % 125 / 148
FpXX.c
86.4%86.4%
86.4 % 959 / 1110 90.6 % 115 / 127
FpX_factor.c
91.8%91.8%
91.8 % 1245 / 1356 91.5 % 107 / 117
Hensel.c
92.5%92.5%
92.5 % 632 / 683 92.6 % 63 / 68
QX_factor.c
96.4%96.4%
96.4 % 768 / 797 97.9 % 46 / 47
Qfb.c
87.7%87.7%
87.7 % 872 / 994 90.1 % 100 / 111
RgV.c
90.3%90.3%
90.3 % 503 / 557 92.9 % 91 / 98
RgX.c
89.7%89.7%
89.7 % 1531 / 1706 91.9 % 181 / 197
Ser.c
100.0%
100.0 % 131 / 131 100.0 % 18 / 18
ZG.c
60.3%60.3%
60.3 % 44 / 73 57.1 % 8 / 14
ZV.c
88.9%88.9%
88.9 % 801 / 901 92.3 % 120 / 130
ZX.c
86.2%86.2%
86.2 % 581 / 674 90.9 % 80 / 88
alglin1.c
86.4%86.4%
86.4 % 2700 / 3125 92.9 % 288 / 310
alglin2.c
90.2%90.2%
90.2 % 1018 / 1128 92.9 % 79 / 85
alglin3.c
92.6%92.6%
92.6 % 529 / 571 88.7 % 47 / 53
aprcl.c
85.0%85.0%
85.0 % 600 / 706 98.0 % 50 / 51
arith1.c
92.7%92.7%
92.7 % 3161 / 3410 94.0 % 281 / 299
arith2.c
88.2%88.2%
88.2 % 605 / 686 91.6 % 87 / 95
base1.c
95.6%95.6%
95.6 % 1614 / 1689 88.4 % 122 / 138
base2.c
94.7%94.7%
94.7 % 2160 / 2281 97.7 % 167 / 171
base3.c
92.9%92.9%
92.9 % 1765 / 1900 94.7 % 197 / 208
base4.c
89.0%89.0%
89.0 % 1569 / 1762 89.6 % 155 / 173
base5.c
92.8%92.8%
92.8 % 1080 / 1164 94.9 % 75 / 79
bb_group.c
93.6%93.6%
93.6 % 540 / 577 100.0 % 36 / 36
bb_hnf.c
94.0%94.0%
94.0 % 630 / 670 92.7 % 51 / 55
bern.c
96.5%96.5%
96.5 % 194 / 201 95.2 % 20 / 21
bibli1.c
95.1%95.1%
95.1 % 1042 / 1096 91.5 % 65 / 71
bibli2.c
95.1%95.1%
95.1 % 1153 / 1213 94.7 % 107 / 113
bit.c
96.7%96.7%
96.7 % 408 / 422 94.4 % 34 / 36
bnflog.c
97.9%97.9%
97.9 % 274 / 280 100.0 % 26 / 26
bnfunits.c
94.1%94.1%
94.1 % 193 / 205 100.0 % 13 / 13
buch1.c
94.6%94.6%
94.6 % 636 / 672 91.5 % 43 / 47
buch2.c
90.9%90.9%
90.9 % 2127 / 2339 92.6 % 150 / 162
buch3.c
94.6%94.6%
94.6 % 1409 / 1489 96.3 % 104 / 108
buch4.c
73.0%73.0%
73.0 % 284 / 389 76.7 % 23 / 30
char.c
97.2%97.2%
97.2 % 807 / 830 100.0 % 63 / 63
concat.c
90.6%90.6%
90.6 % 326 / 360 100.0 % 15 / 15
crvwtors.c
83.2%83.2%
83.2 % 283 / 340 82.8 % 24 / 29
dirichlet.c
99.3%99.3%
99.3 % 137 / 138 100.0 % 11 / 11
ecpp.c
91.9%91.9%
91.9 % 659 / 717 96.6 % 85 / 88
ellanal.c
91.5%91.5%
91.5 % 658 / 719 93.4 % 57 / 61
elliptic.c
92.1%92.1%
92.1 % 3854 / 4185 95.3 % 345 / 362
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
ellsea.c
95.7%95.7%
95.7 % 1160 / 1212 97.8 % 91 / 93
elltors.c
94.2%94.2%
94.2 % 404 / 429 88.5 % 23 / 26
galconj.c
80.8%80.8%
80.8 % 1722 / 2132 76.6 % 111 / 145
gen1.c
94.7%94.7%
94.7 % 1811 / 1912 100.0 % 92 / 92
gen2.c
87.6%87.6%
87.6 % 1511 / 1725 93.4 % 141 / 151
gen3.c
92.5%92.5%
92.5 % 2431 / 2629 95.8 % 226 / 236
hnf_snf.c
92.1%92.1%
92.1 % 1545 / 1678 92.6 % 88 / 95
hyperell.c
91.6%91.6%
91.6 % 489 / 534 97.7 % 42 / 43
hypergeom.c
100.0%
100.0 % 630 / 630 100.0 % 66 / 66
ifactor1.c
80.9%80.9%
80.9 % 1459 / 1804 86.3 % 88 / 102
kummer.c
91.7%91.7%
91.7 % 999 / 1089 97.2 % 69 / 71
lfun.c
96.2%96.2%
96.2 % 1456 / 1513 99.4 % 156 / 157
lfunquad.c
98.1%98.1%
98.1 % 357 / 364 100.0 % 45 / 45
lfunutils.c
92.0%92.0%
92.0 % 1544 / 1679 92.9 % 143 / 154
lll.c
92.5%92.5%
92.5 % 444 / 480 93.9 % 31 / 33
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
97.7%97.7%
97.7 % 333 / 341 100.0 % 33 / 33
mftrace.c
97.6%97.6%
97.6 % 7430 / 7612 99.5 % 759 / 763
modsym.c
93.1%93.1%
93.1 % 2819 / 3028 98.3 % 294 / 299
msfarey.c
96.8%96.8%
96.8 % 184 / 190 100.0 % 17 / 17
nffactor.c
95.6%95.6%
95.6 % 1147 / 1200 98.6 % 69 / 70
perm.c
83.5%83.5%
83.5 % 689 / 825 88.8 % 79 / 89
polarit1.c
96.7%96.7%
96.7 % 318 / 329 100.0 % 32 / 32
polarit2.c
90.1%90.1%
90.1 % 2150 / 2386 95.2 % 198 / 208
polarit3.c
89.2%89.2%
89.2 % 1713 / 1921 92.3 % 179 / 194
polclass.c
97.1%97.1%
97.1 % 833 / 858 98.3 % 58 / 59
polmodular.c
97.0%97.0%
97.0 % 2321 / 2392 100.0 % 143 / 143
prime.c
87.7%87.7%
87.7 % 627 / 715 91.8 % 67 / 73
qfisom.c
97.2%97.2%
97.2 % 1001 / 1030 100.0 % 55 / 55
qfsolve.c
98.5%98.5%
98.5 % 596 / 605 100.0 % 30 / 30
random.c
100.0%
100.0 % 148 / 148 100.0 % 16 / 16
rootpol.c
95.8%95.8%
95.8 % 1476 / 1541 97.5 % 116 / 119
subcyclo.c
94.5%94.5%
94.5 % 531 / 562 97.6 % 40 / 41
subgroup.c
95.8%95.8%
95.8 % 341 / 356 100.0 % 22 / 22
trans1.c
97.1%97.1%
97.1 % 2223 / 2289 98.8 % 163 / 165
trans2.c
95.6%95.6%
95.6 % 1140 / 1192 97.8 % 87 / 89
trans3.c
93.5%93.5%
93.5 % 1903 / 2035 97.8 % 131 / 134
volcano.c
96.8%96.8%
96.8 % 332 / 343 100.0 % 22 / 22
zetamult.c
98.4%98.4%
98.4 % 247 / 251 95.5 % 21 / 22

Generated by: LCOV version 1.13