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 20296-0a10b35) Lines: 81672 88660 92.1 %
Date: 2017-02-26 05:50:47 Functions: 7093 7515 94.4 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
F2x.c
94.2%94.2%
94.2 % 1263 / 1341 96.9 % 157 / 162
F2xqE.c
94.1%94.1%
94.1 % 417 / 443 94.7 % 54 / 57
FF.c
94.9%94.9%
94.9 % 939 / 989 96.6 % 113 / 117
Fle.c
83.2%83.2%
83.2 % 232 / 279 75.0 % 30 / 40
Flx.c
88.0%88.0%
88.0 % 2628 / 2985 89.0 % 317 / 356
FlxqE.c
97.0%97.0%
97.0 % 916 / 944 99.0 % 96 / 97
Flxq_log.c
93.9%93.9%
93.9 % 445 / 474 100.0 % 29 / 29
FpE.c
91.5%91.5%
91.5 % 912 / 997 92.4 % 97 / 105
FpV.c
75.3%75.3%
75.3 % 628 / 834 76.7 % 89 / 116
FpX.c
93.4%93.4%
93.4 % 1244 / 1332 96.7 % 148 / 153
FpXQX_factor.c
93.9%93.9%
93.9 % 1179 / 1256 94.9 % 93 / 98
FpXX.c
87.0%87.0%
87.0 % 719 / 826 92.1 % 93 / 101
FpX_factor.c
88.6%88.6%
88.6 % 1418 / 1600 92.0 % 126 / 137
Hensel.c
96.0%96.0%
96.0 % 531 / 553 97.9 % 47 / 48
QX_factor.c
95.9%95.9%
95.9 % 719 / 750 97.6 % 41 / 42
Qfb.c
91.5%91.5%
91.5 % 838 / 916 92.0 % 92 / 100
RgV.c
86.4%86.4%
86.4 % 465 / 538 89.8 % 79 / 88
RgX.c
92.1%92.1%
92.1 % 1272 / 1381 92.7 % 139 / 150
ZG.c
55.7%55.7%
55.7 % 44 / 79 57.1 % 8 / 14
ZV.c
90.9%90.9%
90.9 % 761 / 837 94.7 % 108 / 114
ZX.c
94.5%94.5%
94.5 % 433 / 458 96.5 % 55 / 57
alglin1.c
89.4%89.4%
89.4 % 2398 / 2682 91.1 % 226 / 248
alglin2.c
89.1%89.1%
89.1 % 907 / 1018 93.1 % 67 / 72
alglin3.c
89.5%89.5%
89.5 % 458 / 512 85.4 % 41 / 48
arith1.c
92.5%92.5%
92.5 % 2680 / 2896 94.4 % 234 / 248
arith2.c
92.6%92.6%
92.6 % 554 / 598 96.3 % 79 / 82
base1.c
93.1%93.1%
93.1 % 1350 / 1450 87.7 % 107 / 122
base2.c
86.1%86.1%
86.1 % 1983 / 2303 93.5 % 158 / 169
base3.c
93.7%93.7%
93.7 % 1559 / 1663 94.6 % 176 / 186
base4.c
90.7%90.7%
90.7 % 1302 / 1435 92.1 % 128 / 139
base5.c
92.6%92.6%
92.6 % 1027 / 1109 94.7 % 72 / 76
bb_group.c
92.7%92.7%
92.7 % 519 / 560 97.1 % 33 / 34
bibli1.c
95.2%95.2%
95.2 % 984 / 1034 90.8 % 59 / 65
bibli2.c
96.8%96.8%
96.8 % 1044 / 1078 95.8 % 92 / 96
bit.c
91.2%91.2%
91.2 % 372 / 408 91.7 % 33 / 36
bnflog.c
97.9%97.9%
97.9 % 274 / 280 100.0 % 24 / 24
buch1.c
94.8%94.8%
94.8 % 636 / 671 93.6 % 44 / 47
buch2.c
93.7%93.7%
93.7 % 2342 / 2500 94.7 % 143 / 151
buch3.c
94.1%94.1%
94.1 % 1386 / 1473 96.3 % 103 / 107
buch4.c
81.3%81.3%
81.3 % 391 / 481 81.8 % 27 / 33
char.c
96.8%96.8%
96.8 % 636 / 657 100.0 % 51 / 51
concat.c
90.5%90.5%
90.5 % 304 / 336 100.0 % 15 / 15
crvwtors.c
98.8%98.8%
98.8 % 318 / 322 100.0 % 29 / 29
dirichlet.c
97.6%97.6%
97.6 % 83 / 85 100.0 % 10 / 10
ellanal.c
91.7%91.7%
91.7 % 667 / 727 94.8 % 55 / 58
elliptic.c
93.6%93.6%
93.6 % 3892 / 4158 97.4 % 339 / 348
ellisog.c
97.4%97.4%
97.4 % 664 / 682 100.0 % 55 / 55
ellsea.c
85.8%85.8%
85.8 % 1000 / 1165 92.8 % 77 / 83
elltors.c
97.3%97.3%
97.3 % 390 / 401 91.7 % 22 / 24
galconj.c
95.1%95.1%
95.1 % 1509 / 1586 97.8 % 91 / 93
gen1.c
93.1%93.1%
93.1 % 1775 / 1906 100.0 % 88 / 88
gen2.c
87.6%87.6%
87.6 % 1346 / 1536 92.6 % 137 / 148
gen3.c
92.4%92.4%
92.4 % 2080 / 2251 95.9 % 210 / 219
hnf_snf.c
90.5%90.5%
90.5 % 1431 / 1581 94.2 % 81 / 86
hyperell.c
95.9%95.9%
95.9 % 490 / 511 100.0 % 41 / 41
ifactor1.c
81.0%81.0%
81.0 % 1381 / 1704 88.5 % 77 / 87
lfun.c
94.2%94.2%
94.2 % 1257 / 1335 98.5 % 131 / 133
lfunutils.c
92.4%92.4%
92.4 % 1124 / 1217 96.3 % 104 / 108
lll.c
91.3%91.3%
91.3 % 422 / 462 93.3 % 28 / 30
map.c
90.3%90.3%
90.3 % 260 / 288 90.9 % 30 / 33
matperm.c
100.0%
100.0 % 76 / 76 100.0 % 4 / 4
mellininv.c
96.9%96.9%
96.9 % 316 / 326 100.0 % 30 / 30
modsym.c
97.0%97.0%
97.0 % 2120 / 2186 100.0 % 224 / 224
nffactor.c
92.1%92.1%
92.1 % 1110 / 1205 94.2 % 65 / 69
perm.c
94.6%94.6%
94.6 % 573 / 606 97.1 % 67 / 69
polarit1.c
95.4%95.4%
95.4 % 292 / 306 100.0 % 29 / 29
polarit2.c
88.4%88.4%
88.4 % 1507 / 1704 95.0 % 132 / 139
polarit3.c
82.5%82.5%
82.5 % 1017 / 1232 87.5 % 112 / 128
polclass.c
96.2%96.2%
96.2 % 923 / 959 98.3 % 59 / 60
polmodular.c
94.7%94.7%
94.7 % 2461 / 2598 99.3 % 146 / 147
prime.c
90.6%90.6%
90.6 % 581 / 641 95.6 % 65 / 68
qfisom.c
95.9%95.9%
95.9 % 985 / 1027 100.0 % 54 / 54
qfsolve.c
98.5%98.5%
98.5 % 595 / 604 100.0 % 30 / 30
random.c
98.5%98.5%
98.5 % 133 / 135 100.0 % 16 / 16
rootpol.c
91.1%91.1%
91.1 % 1512 / 1660 94.0 % 110 / 117
subcyclo.c
94.9%94.9%
94.9 % 525 / 553 97.4 % 38 / 39
subgroup.c
95.0%95.0%
95.0 % 344 / 362 100.0 % 22 / 22
trans1.c
97.5%97.5%
97.5 % 1938 / 1988 98.6 % 141 / 143
trans2.c
96.4%96.4%
96.4 % 978 / 1015 100.0 % 63 / 63
trans3.c
95.6%95.6%
95.6 % 1824 / 1908 98.3 % 115 / 117
volcano.c
93.7%93.7%
93.7 % 418 / 446 100.0 % 22 / 22
zetamult.c
98.4%98.4%
98.4 % 246 / 250 95.5 % 21 / 22

Generated by: LCOV version 1.11