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 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.10.0 lcov report (development 20084-3366ab4) Lines: 81063 87790 92.3 %
Date: 2017-01-19 05:50:13 Functions: 7028 7430 94.6 %
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
55.7%55.7%
55.7 % 44 / 79 57.1 % 8 / 14
FpV.c
75.2%75.2%
75.2 % 625 / 831 76.7 % 89 / 116
buch4.c
81.3%81.3%
81.3 % 391 / 481 81.8 % 27 / 33
ifactor1.c
81.6%81.6%
81.6 % 1389 / 1702 89.4 % 76 / 85
Fle.c
83.2%83.2%
83.2 % 232 / 279 75.0 % 30 / 40
polarit3.c
84.6%84.6%
84.6 % 1017 / 1202 88.9 % 112 / 126
ellsea.c
85.8%85.8%
85.8 % 1000 / 1165 92.8 % 77 / 83
base2.c
85.9%85.9%
85.9 % 1955 / 2275 93.4 % 156 / 167
RgV.c
86.4%86.4%
86.4 % 465 / 538 89.8 % 79 / 88
FpXX.c
87.0%87.0%
87.0 % 719 / 826 92.1 % 93 / 101
gen2.c
87.7%87.7%
87.7 % 1347 / 1536 92.6 % 137 / 148
polarit2.c
88.5%88.5%
88.5 % 1506 / 1702 95.0 % 132 / 139
alglin2.c
89.1%89.1%
89.1 % 907 / 1018 93.1 % 67 / 72
Flx.c
89.1%89.1%
89.1 % 2628 / 2948 90.1 % 317 / 352
map.c
90.3%90.3%
90.3 % 260 / 288 90.9 % 30 / 33
prime.c
90.3%90.3%
90.3 % 558 / 618 95.3 % 61 / 64
concat.c
90.5%90.5%
90.5 % 304 / 336 100.0 % 15 / 15
hnf_snf.c
90.5%90.5%
90.5 % 1431 / 1581 94.2 % 81 / 86
base4.c
90.7%90.7%
90.7 % 1302 / 1435 92.1 % 128 / 139
FpX_factor.c
90.8%90.8%
90.8 % 1418 / 1562 93.3 % 126 / 135
ZV.c
90.9%90.9%
90.9 % 761 / 837 94.7 % 108 / 114
rootpol.c
91.1%91.1%
91.1 % 1514 / 1662 94.0 % 110 / 117
bit.c
91.2%91.2%
91.2 % 372 / 408 91.7 % 33 / 36
lll.c
91.3%91.3%
91.3 % 422 / 462 93.3 % 28 / 30
FpE.c
91.4%91.4%
91.4 % 911 / 997 92.4 % 97 / 105
RgX.c
91.3%91.3%
91.3 % 1255 / 1374 93.2 % 138 / 148
alglin3.c
91.4%91.4%
91.4 % 458 / 501 87.2 % 41 / 47
ellanal.c
91.7%91.7%
91.7 % 667 / 727 94.8 % 55 / 58
nffactor.c
92.1%92.1%
92.1 % 1111 / 1206 94.2 % 65 / 69
gen3.c
92.2%92.2%
92.2 % 2075 / 2251 95.4 % 209 / 219
Qfb.c
92.2%92.2%
92.2 % 833 / 903 93.8 % 91 / 97
arith1.c
92.5%92.5%
92.5 % 2650 / 2864 94.3 % 231 / 245
arith2.c
92.6%92.6%
92.6 % 554 / 598 96.3 % 79 / 82
base5.c
92.6%92.6%
92.6 % 1027 / 1109 94.7 % 72 / 76
lfunutils.c
92.6%92.6%
92.6 % 1030 / 1112 95.8 % 92 / 96
FpX.c
92.6%92.6%
92.6 % 1235 / 1333 96.1 % 147 / 153
bb_group.c
93.0%93.0%
93.0 % 521 / 560 97.1 % 33 / 34
base1.c
93.1%93.1%
93.1 % 1350 / 1450 87.7 % 107 / 122
gen1.c
93.3%93.3%
93.3 % 1780 / 1907 100.0 % 88 / 88
elliptic.c
93.5%93.5%
93.5 % 3816 / 4081 97.4 % 331 / 340
base3.c
93.6%93.6%
93.6 % 1554 / 1660 94.6 % 176 / 186
buch2.c
93.7%93.7%
93.7 % 2334 / 2492 94.7 % 142 / 150
volcano.c
93.7%93.7%
93.7 % 418 / 446 100.0 % 22 / 22
Flxq_log.c
93.9%93.9%
93.9 % 445 / 474 100.0 % 29 / 29
FpXQX_factor.c
93.9%93.9%
93.9 % 1179 / 1256 94.9 % 93 / 98
lfun.c
94.0%94.0%
94.0 % 1241 / 1320 98.5 % 129 / 131
buch3.c
94.1%94.1%
94.1 % 1386 / 1473 96.3 % 103 / 107
alglin1.c
94.1%94.1%
94.1 % 2378 / 2528 93.5 % 217 / 232
F2xqE.c
94.1%94.1%
94.1 % 417 / 443 94.7 % 54 / 57
F2x.c
94.2%94.2%
94.2 % 1263 / 1341 96.9 % 157 / 162
perm.c
94.2%94.2%
94.2 % 540 / 573 96.9 % 62 / 64
ZX.c
94.5%94.5%
94.5 % 433 / 458 96.5 % 55 / 57
buch1.c
94.8%94.8%
94.8 % 636 / 671 93.6 % 44 / 47
FF.c
94.8%94.8%
94.8 % 919 / 969 96.5 % 110 / 114
galconj.c
94.8%94.8%
94.8 % 1418 / 1495 97.7 % 85 / 87
trans2.c
95.0%95.0%
95.0 % 963 / 1014 98.4 % 62 / 63
subgroup.c
95.0%95.0%
95.0 % 344 / 362 100.0 % 22 / 22
subcyclo.c
95.3%95.3%
95.3 % 524 / 550 97.4 % 38 / 39
bibli1.c
95.3%95.3%
95.3 % 990 / 1039 92.4 % 61 / 66
polmodular.c
95.4%95.4%
95.4 % 2466 / 2585 100.0 % 147 / 147
polarit1.c
95.4%95.4%
95.4 % 292 / 306 100.0 % 29 / 29
trans3.c
95.6%95.6%
95.6 % 1823 / 1907 98.3 % 115 / 117
FlxqE.c
95.8%95.8%
95.8 % 906 / 946 99.0 % 96 / 97
hyperell.c
95.9%95.9%
95.9 % 490 / 511 100.0 % 41 / 41
QX_factor.c
95.9%95.9%
95.9 % 719 / 750 97.6 % 41 / 42
qfisom.c
95.9%95.9%
95.9 % 985 / 1027 100.0 % 54 / 54
Hensel.c
96.0%96.0%
96.0 % 531 / 553 97.9 % 47 / 48
polclass.c
96.2%96.2%
96.2 % 922 / 958 98.3 % 59 / 60
char.c
96.8%96.8%
96.8 % 605 / 625 100.0 % 52 / 52
bibli2.c
96.8%96.8%
96.8 % 1038 / 1072 95.8 % 91 / 95
mellininv.c
96.9%96.9%
96.9 % 316 / 326 100.0 % 30 / 30
modsym.c
97.0%97.0%
97.0 % 2121 / 2187 100.0 % 225 / 225
elltors.c
97.3%97.3%
97.3 % 390 / 401 91.7 % 22 / 24
ellisog.c
97.4%97.4%
97.4 % 664 / 682 100.0 % 55 / 55
trans1.c
97.5%97.5%
97.5 % 1873 / 1922 98.6 % 137 / 139
dirichlet.c
97.6%97.6%
97.6 % 83 / 85 100.0 % 10 / 10
bnflog.c
97.9%97.9%
97.9 % 274 / 280 100.0 % 24 / 24
random.c
98.5%98.5%
98.5 % 133 / 135 100.0 % 16 / 16
qfsolve.c
98.5%98.5%
98.5 % 595 / 604 100.0 % 30 / 30
crvwtors.c
98.8%98.8%
98.8 % 318 / 322 100.0 % 29 / 29
zetamult.c
99.5%99.5%
99.5 % 221 / 222 100.0 % 17 / 17
matperm.c
100.0%
100.0 % 76 / 76 100.0 % 4 / 4

Generated by: LCOV version 1.11