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 20116-58a92a9) Lines: 81081 87814 92.3 %
Date: 2017-01-23 05:49:11 Functions: 7031 7435 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
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.8%94.8%
94.8 % 919 / 969 96.5 % 110 / 114
Fle.c
83.2%83.2%
83.2 % 232 / 279 75.0 % 30 / 40
Flx.c
89.1%89.1%
89.1 % 2628 / 2948 90.1 % 317 / 352
FlxqE.c
96.2%96.2%
96.2 % 910 / 946 99.0 % 96 / 97
Flxq_log.c
93.9%93.9%
93.9 % 445 / 474 100.0 % 29 / 29
FpE.c
91.4%91.4%
91.4 % 911 / 997 92.4 % 97 / 105
FpV.c
74.5%74.5%
74.5 % 619 / 831 76.7 % 89 / 116
FpX.c
92.6%92.6%
92.6 % 1235 / 1333 96.1 % 147 / 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
90.8%90.8%
90.8 % 1418 / 1562 93.3 % 126 / 135
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
92.1%92.1%
92.1 % 834 / 906 92.9 % 91 / 98
RgV.c
86.4%86.4%
86.4 % 465 / 538 89.8 % 79 / 88
RgX.c
91.3%91.3%
91.3 % 1255 / 1374 93.2 % 138 / 148
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
94.1%94.1%
94.1 % 2378 / 2528 93.5 % 217 / 232
alglin2.c
89.1%89.1%
89.1 % 907 / 1018 93.1 % 67 / 72
alglin3.c
91.4%91.4%
91.4 % 458 / 501 87.2 % 41 / 47
arith1.c
92.5%92.5%
92.5 % 2655 / 2869 94.3 % 232 / 246
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
85.9%85.9%
85.9 % 1955 / 2275 93.4 % 156 / 167
base3.c
93.6%93.6%
93.6 % 1554 / 1660 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
93.0%93.0%
93.0 % 521 / 560 97.1 % 33 / 34
bibli1.c
95.2%95.2%
95.2 % 989 / 1039 91.0 % 61 / 67
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 % 2334 / 2492 94.7 % 142 / 150
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 % 605 / 625 100.0 % 52 / 52
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.5%93.5%
93.5 % 3822 / 4087 97.4 % 332 / 341
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
94.8%94.8%
94.8 % 1418 / 1495 97.7 % 85 / 87
gen1.c
93.3%93.3%
93.3 % 1780 / 1907 100.0 % 88 / 88
gen2.c
87.7%87.7%
87.7 % 1347 / 1536 92.6 % 137 / 148
gen3.c
92.2%92.2%
92.2 % 2075 / 2251 95.4 % 209 / 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.6%81.6%
81.6 % 1389 / 1702 89.4 % 76 / 85
lfun.c
94.0%94.0%
94.0 % 1241 / 1320 98.5 % 129 / 131
lfunutils.c
92.6%92.6%
92.6 % 1030 / 1112 95.8 % 92 / 96
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 % 2121 / 2187 100.0 % 225 / 225
nffactor.c
92.1%92.1%
92.1 % 1111 / 1206 94.2 % 65 / 69
perm.c
94.2%94.2%
94.2 % 540 / 573 96.9 % 62 / 64
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
84.6%84.6%
84.6 % 1017 / 1202 88.9 % 112 / 126
polclass.c
96.2%96.2%
96.2 % 922 / 958 98.3 % 59 / 60
polmodular.c
95.4%95.4%
95.4 % 2466 / 2585 100.0 % 147 / 147
prime.c
90.3%90.3%
90.3 % 558 / 618 95.3 % 61 / 64
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 % 1514 / 1662 94.0 % 110 / 117
subcyclo.c
95.3%95.3%
95.3 % 524 / 550 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 % 1875 / 1924 98.6 % 137 / 139
trans2.c
95.0%95.0%
95.0 % 963 / 1014 98.4 % 62 / 63
trans3.c
95.6%95.6%
95.6 % 1823 / 1907 98.3 % 115 / 117
volcano.c
93.7%93.7%
93.7 % 418 / 446 100.0 % 22 / 22
zetamult.c
99.5%99.5%
99.5 % 221 / 222 100.0 % 17 / 17

Generated by: LCOV version 1.11