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 25819-e703fe1174) Lines: 106679 115810 92.1 %
Date: 2020-09-18 06:10:04 Functions: 9612 10240 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
ZG.c
60.3%60.3%
60.3 % 44 / 73 57.1 % 8 / 14
F2v.c
81.2%81.2%
81.2 % 517 / 637 71.2 % 47 / 66
Fle.c
84.1%84.1%
84.1 % 301 / 358 76.9 % 40 / 52
galconj.c
81.5%81.5%
81.5 % 1853 / 2273 77.2 % 115 / 149
buch4.c
75.2%75.2%
75.2 % 301 / 400 77.4 % 24 / 31
crvwtors.c
83.2%83.2%
83.2 % 283 / 340 82.8 % 24 / 29
FpV.c
78.4%78.4%
78.4 % 746 / 951 84.2 % 112 / 133
FpXQX_factor.c
83.2%83.2%
83.2 % 1590 / 1910 84.5 % 125 / 148
perm.c
79.3%79.3%
79.3 % 689 / 869 85.1 % 80 / 94
F2x.c
83.4%83.4%
83.4 % 1438 / 1725 86.6 % 175 / 202
ifactor1.c
81.3%81.3%
81.3 % 1508 / 1854 87.5 % 91 / 104
base1.c
94.5%94.5%
94.5 % 1635 / 1730 87.6 % 127 / 145
elltors.c
94.2%94.2%
94.2 % 404 / 429 88.5 % 23 / 26
Flx.c
89.1%89.1%
89.1 % 2132 / 2393 88.5 % 253 / 286
alglin3.c
92.6%92.6%
92.6 % 529 / 571 88.7 % 47 / 53
base4.c
89.1%89.1%
89.1 % 1578 / 1771 89.6 % 155 / 173
Qfb.c
87.8%87.8%
87.8 % 872 / 993 90.1 % 100 / 111
FlxX.c
89.5%89.5%
89.5 % 1101 / 1230 90.1 % 128 / 142
FpXX.c
86.2%86.2%
86.2 % 940 / 1091 90.3 % 112 / 124
RgX.c
89.3%89.3%
89.3 % 1531 / 1715 90.5 % 180 / 199
hnf_snf.c
90.3%90.3%
90.3 % 1512 / 1674 90.5 % 86 / 95
buch1.c
94.6%94.6%
94.6 % 636 / 672 91.5 % 43 / 47
FpX_factor.c
91.8%91.8%
91.8 % 1245 / 1356 91.5 % 107 / 117
arith2.c
88.6%88.6%
88.6 % 605 / 683 91.6 % 87 / 95
ZV.c
88.5%88.5%
88.5 % 801 / 905 91.6 % 120 / 131
bibli1.c
95.1%95.1%
95.1 % 1057 / 1111 91.9 % 68 / 74
prime.c
87.9%87.9%
87.9 % 645 / 734 92.0 % 69 / 75
RgV.c
89.9%89.9%
89.9 % 515 / 573 92.1 % 93 / 101
polarit3.c
89.2%89.2%
89.2 % 1722 / 1930 92.3 % 180 / 195
Hensel.c
92.5%92.5%
92.5 % 632 / 683 92.6 % 63 / 68
buch2.c
91.9%91.9%
91.9 % 2178 / 2369 92.6 % 151 / 163
bb_hnf.c
94.0%94.0%
94.0 % 630 / 670 92.7 % 51 / 55
alglin2.c
90.2%90.2%
90.2 % 1018 / 1128 92.9 % 79 / 85
FpE.c
92.3%92.3%
92.3 % 982 / 1064 93.0 % 106 / 114
alglin1.c
86.7%86.7%
86.7 % 2728 / 3146 93.2 % 290 / 311
gen2.c
87.6%87.6%
87.6 % 1509 / 1723 93.4 % 141 / 151
ellanal.c
91.5%91.5%
91.5 % 658 / 719 93.4 % 57 / 61
Flv.c
96.2%96.2%
96.2 % 730 / 759 93.4 % 57 / 61
ZX.c
89.1%89.1%
89.1 % 660 / 741 93.8 % 91 / 97
arith1.c
92.6%92.6%
92.6 % 3166 / 3418 94.0 % 282 / 300
lll.c
93.9%93.9%
93.9 % 434 / 462 94.3 % 33 / 35
lfunutils.c
92.7%92.7%
92.7 % 1592 / 1717 94.3 % 149 / 158
bit.c
96.7%96.7%
96.7 % 408 / 422 94.4 % 34 / 36
FpX.c
91.1%91.1%
91.1 % 1431 / 1570 94.5 % 171 / 181
FF.c
92.6%92.6%
92.6 % 1345 / 1453 94.6 % 139 / 147
base3.c
93.5%93.5%
93.5 % 1853 / 1981 94.5 % 207 / 219
bibli2.c
95.1%95.1%
95.1 % 1159 / 1219 94.7 % 108 / 114
F2xqE.c
93.7%93.7%
93.7 % 419 / 447 94.8 % 55 / 58
base5.c
92.8%92.8%
92.8 % 1076 / 1160 94.9 % 75 / 79
buch3.c
94.2%94.2%
94.2 % 1513 / 1606 95.2 % 118 / 124
polarit2.c
90.0%90.0%
90.0 % 2151 / 2389 95.2 % 198 / 208
bern.c
96.5%96.5%
96.5 % 194 / 201 95.2 % 20 / 21
elliptic.c
92.1%92.1%
92.1 % 3854 / 4184 95.3 % 345 / 362
gen3.c
92.5%92.5%
92.5 % 2436 / 2633 95.8 % 226 / 236
ecpp.c
92.3%92.3%
92.3 % 705 / 764 96.8 % 90 / 93
rootpol.c
95.8%95.8%
95.8 % 1476 / 1541 97.5 % 116 / 119
subcyclo.c
94.6%94.6%
94.6 % 541 / 572 97.6 % 40 / 41
hyperell.c
91.6%91.6%
91.6 % 489 / 534 97.7 % 42 / 43
base2.c
94.7%94.7%
94.7 % 2159 / 2280 97.7 % 167 / 171
lfunquad.c
97.0%97.0%
97.0 % 356 / 367 97.8 % 44 / 45
trans2.c
95.6%95.6%
95.6 % 1140 / 1192 97.8 % 87 / 89
trans3.c
93.5%93.5%
93.5 % 1905 / 2037 97.8 % 131 / 134
QX_factor.c
96.4%96.4%
96.4 % 768 / 797 97.9 % 46 / 47
ellsea.c
95.7%95.7%
95.7 % 1160 / 1212 97.8 % 91 / 93
aprcl.c
84.8%84.8%
84.8 % 599 / 706 98.0 % 50 / 51
polclass.c
97.1%97.1%
97.1 % 833 / 858 98.3 % 58 / 59
modsym.c
93.2%93.2%
93.2 % 2819 / 3025 98.3 % 294 / 299
nffactor.c
95.6%95.6%
95.6 % 1146 / 1199 98.6 % 69 / 70
FlxqE.c
97.0%97.0%
97.0 % 845 / 871 98.8 % 82 / 83
trans1.c
97.1%97.1%
97.1 % 2222 / 2288 98.8 % 163 / 165
lfun.c
96.1%96.1%
96.1 % 1409 / 1466 99.4 % 153 / 154
mftrace.c
97.5%97.5%
97.5 % 7409 / 7598 99.3 % 757 / 762
matperm.c
100.0%
100.0 % 78 / 78 100.0 % 4 / 4
ellpadiclambdamu.c
100.0%
100.0 % 113 / 113 100.0 % 7 / 7
bnfunits.c
94.6%94.6%
94.6 % 209 / 221 100.0 % 14 / 14
concat.c
90.8%90.8%
90.8 % 326 / 359 100.0 % 15 / 15
random.c
100.0%
100.0 % 152 / 152 100.0 % 17 / 17
dirichlet.c
100.0%
100.0 % 263 / 263 100.0 % 17 / 17
msfarey.c
96.8%96.8%
96.8 % 184 / 190 100.0 % 17 / 17
Ser.c
100.0%
100.0 % 132 / 132 100.0 % 18 / 18
volcano.c
96.8%96.8%
96.8 % 332 / 343 100.0 % 22 / 22
subgroup.c
96.0%96.0%
96.0 % 356 / 371 100.0 % 24 / 24
bnflog.c
97.9%97.9%
97.9 % 274 / 280 100.0 % 26 / 26
map.c
99.1%99.1%
99.1 % 219 / 221 100.0 % 27 / 27
Flxq_log.c
95.3%95.3%
95.3 % 445 / 467 100.0 % 28 / 28
qfsolve.c
98.5%98.5%
98.5 % 596 / 605 100.0 % 30 / 30
polarit1.c
96.7%96.7%
96.7 % 318 / 329 100.0 % 32 / 32
bb_group.c
93.6%93.6%
93.6 % 540 / 577 100.0 % 36 / 36
mellininv.c
97.8%97.8%
97.8 % 357 / 365 100.0 % 37 / 37
zetamult.c
96.6%96.6%
96.6 % 544 / 563 100.0 % 40 / 40
ellpadic.c
96.0%96.0%
96.0 % 583 / 607 100.0 % 47 / 47
subfield.c
97.0%97.0%
97.0 % 928 / 957 100.0 % 48 / 48
qfisom.c
97.8%97.8%
97.8 % 870 / 890 100.0 % 55 / 55
kummer.c
99.0%99.0%
99.0 % 854 / 863 100.0 % 61 / 61
char.c
97.2%97.2%
97.2 % 807 / 830 100.0 % 63 / 63
hypergeom.c
100.0%
100.0 % 630 / 630 100.0 % 66 / 66
ellisog.c
98.7%98.7%
98.7 % 945 / 957 100.0 % 79 / 79
gen1.c
94.9%94.9%
94.9 % 1837 / 1936 100.0 % 94 / 94
polmodular.c
97.1%97.1%
97.1 % 2320 / 2389 100.0 % 143 / 143

Generated by: LCOV version 1.13