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 20443-183d202) Lines: 82181 89684 91.6 %
Date: 2017-03-27 05:17:48 Functions: 7160 7608 94.1 %
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
92.5%92.5%
92.5 % 1240 / 1341 95.1 % 154 / 162
F2xqE.c
94.2%94.2%
94.2 % 420 / 446 94.8 % 55 / 58
FF.c
92.6%92.6%
92.6 % 916 / 989 96.6 % 113 / 117
Fle.c
83.2%83.2%
83.2 % 232 / 279 75.0 % 30 / 40
Flx.c
89.1%89.1%
89.1 % 2703 / 3033 90.4 % 329 / 364
FlxqE.c
97.0%97.0%
97.0 % 916 / 944 99.0 % 96 / 97
Flxq_log.c
92.8%92.8%
92.8 % 440 / 474 100.0 % 29 / 29
FpE.c
76.6%76.6%
76.6 % 760 / 992 88.5 % 92 / 104
FpV.c
76.4%76.4%
76.4 % 646 / 846 78.2 % 93 / 119
FpX.c
90.0%90.0%
90.0 % 1199 / 1332 94.8 % 145 / 153
FpXQX_factor.c
90.5%90.5%
90.5 % 1090 / 1205 93.8 % 90 / 96
FpXX.c
86.7%86.7%
86.7 % 716 / 826 92.1 % 93 / 101
FpX_factor.c
87.8%87.8%
87.8 % 1404 / 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.0%91.0%
91.0 % 843 / 926 92.0 % 92 / 100
RgV.c
86.4%86.4%
86.4 % 465 / 538 89.8 % 79 / 88
RgX.c
91.7%91.7%
91.7 % 1279 / 1395 92.1 % 140 / 152
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
90.9%90.9%
90.9 % 3053 / 3359 92.4 % 278 / 301
alglin2.c
89.1%89.1%
89.1 % 907 / 1018 93.1 % 67 / 72
alglin3.c
82.6%82.6%
82.6 % 423 / 512 79.2 % 38 / 48
arith1.c
90.8%90.8%
90.8 % 2646 / 2914 92.4 % 230 / 249
arith2.c
92.6%92.6%
92.6 % 554 / 598 96.3 % 79 / 82
base1.c
93.3%93.3%
93.3 % 1401 / 1501 87.2 % 109 / 125
base2.c
86.1%86.1%
86.1 % 2004 / 2327 93.6 % 160 / 171
base3.c
93.8%93.8%
93.8 % 1579 / 1683 94.7 % 177 / 187
base4.c
90.8%90.8%
90.8 % 1314 / 1447 92.3 % 131 / 142
base5.c
92.5%92.5%
92.5 % 1030 / 1113 94.7 % 72 / 76
bb_group.c
92.5%92.5%
92.5 % 518 / 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
92.8%92.8%
92.8 % 623 / 671 91.5 % 43 / 47
buch2.c
93.3%93.3%
93.3 % 2326 / 2493 94.7 % 143 / 151
buch3.c
94.1%94.1%
94.1 % 1392 / 1479 96.3 % 104 / 108
buch4.c
81.2%81.2%
81.2 % 390 / 480 81.8 % 27 / 33
char.c
96.8%96.8%
96.8 % 670 / 692 100.0 % 54 / 54
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
95.5%95.5%
95.5 % 84 / 88 100.0 % 8 / 8
ellanal.c
91.7%91.7%
91.7 % 667 / 727 94.8 % 55 / 58
elliptic.c
93.7%93.7%
93.7 % 3931 / 4195 97.5 % 346 / 355
ellisog.c
97.4%97.4%
97.4 % 664 / 682 100.0 % 55 / 55
ellsea.c
85.8%85.8%
85.8 % 999 / 1165 91.6 % 76 / 83
elltors.c
97.3%97.3%
97.3 % 392 / 403 91.7 % 22 / 24
galconj.c
95.2%95.2%
95.2 % 1512 / 1589 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 % 1345 / 1535 92.6 % 137 / 148
gen3.c
92.4%92.4%
92.4 % 2078 / 2249 95.9 % 210 / 219
hnf_snf.c
90.7%90.7%
90.7 % 1485 / 1637 94.4 % 84 / 89
hyperell.c
95.9%95.9%
95.9 % 490 / 511 100.0 % 41 / 41
ifactor1.c
80.8%80.8%
80.8 % 1374 / 1701 86.7 % 78 / 90
lfun.c
94.3%94.3%
94.3 % 1309 / 1388 98.5 % 133 / 135
lfunutils.c
92.6%92.6%
92.6 % 1158 / 1251 96.4 % 106 / 110
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 % 75 / 75 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.0%92.0%
92.0 % 1110 / 1207 94.2 % 65 / 69
perm.c
93.2%93.2%
93.2 % 587 / 630 95.8 % 68 / 71
polarit1.c
95.4%95.4%
95.4 % 292 / 306 100.0 % 29 / 29
polarit2.c
88.5%88.5%
88.5 % 1508 / 1704 95.0 % 132 / 139
polarit3.c
80.7%80.7%
80.7 % 994 / 1231 86.7 % 111 / 128
polclass.c
96.2%96.2%
96.2 % 923 / 959 98.3 % 59 / 60
polmodular.c
93.8%93.8%
93.8 % 2436 / 2598 99.3 % 146 / 147
prime.c
86.1%86.1%
86.1 % 544 / 632 91.2 % 62 / 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.3%98.3%
98.3 % 113 / 115 100.0 % 14 / 14
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.1%97.1%
97.1 % 1911 / 1968 98.6 % 141 / 143
trans2.c
96.3%96.3%
96.3 % 975 / 1012 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