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.8.0 lcov report (development 19608-b7b365e) Lines: 80142 87135 92.0 %
Date: 2016-09-26 05:54:43 Functions: 6897 7304 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
93.8%93.8%
93.8 % 1244 / 1326 96.9 % 156 / 161
F2xqE.c
94.1%94.1%
94.1 % 417 / 443 94.7 % 54 / 57
FF.c
94.9%94.9%
94.9 % 912 / 961 96.3 % 104 / 108
Fle.c
83.2%83.2%
83.2 % 232 / 279 75.0 % 30 / 40
Flx.c
90.1%90.1%
90.1 % 2611 / 2898 91.3 % 315 / 345
FlxqE.c
95.8%95.8%
95.8 % 906 / 946 99.0 % 96 / 97
Flxq_log.c
93.9%93.9%
93.9 % 419 / 446 100.0 % 27 / 27
FpE.c
91.4%91.4%
91.4 % 911 / 997 92.4 % 97 / 105
FpV.c
75.5%75.5%
75.5 % 628 / 832 76.7 % 89 / 116
FpX.c
92.5%92.5%
92.5 % 1229 / 1328 96.1 % 147 / 153
FpXQX_factor.c
93.4%93.4%
93.4 % 1173 / 1256 92.9 % 91 / 98
FpXX.c
86.9%86.9%
86.9 % 718 / 826 92.1 % 93 / 101
FpX_factor.c
90.7%90.7%
90.7 % 1418 / 1564 93.3 % 126 / 135
Hensel.c
96.0%96.0%
96.0 % 530 / 552 97.9 % 46 / 47
QX_factor.c
95.9%95.9%
95.9 % 720 / 751 97.6 % 40 / 41
Qfb.c
92.0%92.0%
92.0 % 833 / 905 93.8 % 91 / 97
RgV.c
86.0%86.0%
86.0 % 455 / 529 88.5 % 77 / 87
RgX.c
91.1%91.1%
91.1 % 1254 / 1376 93.2 % 138 / 148
ZG.c
55.7%55.7%
55.7 % 44 / 79 57.1 % 8 / 14
ZV.c
90.0%90.0%
90.0 % 732 / 813 93.8 % 105 / 112
ZX.c
94.5%94.5%
94.5 % 433 / 458 96.5 % 55 / 57
alglin1.c
92.8%92.8%
92.8 % 2230 / 2404 91.7 % 199 / 217
alglin2.c
88.6%88.6%
88.6 % 945 / 1066 93.3 % 70 / 75
alglin3.c
90.7%90.7%
90.7 % 458 / 505 87.2 % 41 / 47
arith1.c
92.0%92.0%
92.0 % 2618 / 2845 94.2 % 228 / 242
arith2.c
92.3%92.3%
92.3 % 554 / 600 96.3 % 79 / 82
base1.c
92.9%92.9%
92.9 % 1344 / 1447 87.7 % 107 / 122
base2.c
85.8%85.8%
85.8 % 1950 / 2274 93.4 % 156 / 167
base3.c
94.5%94.5%
94.5 % 1314 / 1391 95.2 % 140 / 147
base4.c
91.5%91.5%
91.5 % 1459 / 1594 93.1 % 134 / 144
base5.c
92.5%92.5%
92.5 % 1029 / 1112 94.7 % 72 / 76
bb_group.c
91.9%91.9%
91.9 % 500 / 544 97.0 % 32 / 33
bibli1.c
95.1%95.1%
95.1 % 978 / 1028 92.3 % 60 / 65
bibli2.c
96.2%96.2%
96.2 % 1032 / 1073 95.8 % 91 / 95
bit.c
90.7%90.7%
90.7 % 372 / 410 91.7 % 33 / 36
bnflog.c
97.6%97.6%
97.6 % 243 / 249 100.0 % 21 / 21
buch1.c
94.8%94.8%
94.8 % 636 / 671 93.6 % 44 / 47
buch2.c
93.6%93.6%
93.6 % 2330 / 2489 94.6 % 140 / 148
buch3.c
94.1%94.1%
94.1 % 1444 / 1535 96.1 % 98 / 102
buch4.c
81.4%81.4%
81.4 % 398 / 489 81.8 % 27 / 33
char.c
95.0%95.0%
95.0 % 587 / 618 100.0 % 50 / 50
concat.c
90.3%90.3%
90.3 % 306 / 339 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.6%91.6%
91.6 % 667 / 728 94.8 % 55 / 58
elliptic.c
93.1%93.1%
93.1 % 3801 / 4083 97.3 % 328 / 337
ellisog.c
97.9%97.9%
97.9 % 640 / 654 100.0 % 54 / 54
ellsea.c
85.8%85.8%
85.8 % 996 / 1161 92.8 % 77 / 83
elltors.c
97.0%97.0%
97.0 % 382 / 394 91.3 % 21 / 23
galconj.c
94.7%94.7%
94.7 % 1418 / 1498 97.7 % 85 / 87
gen1.c
92.3%92.3%
92.3 % 1785 / 1933 100.0 % 88 / 88
gen2.c
86.4%86.4%
86.4 % 1323 / 1531 92.4 % 134 / 145
gen3.c
90.5%90.5%
90.5 % 2074 / 2292 95.4 % 209 / 219
hnf_snf.c
90.4%90.4%
90.4 % 1416 / 1567 92.9 % 79 / 85
hyperell.c
96.0%96.0%
96.0 % 498 / 519 100.0 % 43 / 43
ifactor1.c
81.6%81.6%
81.6 % 1385 / 1698 89.3 % 75 / 84
lfun.c
93.8%93.8%
93.8 % 1232 / 1313 98.5 % 128 / 130
lfunutils.c
92.7%92.7%
92.7 % 991 / 1069 95.7 % 89 / 93
lll.c
90.4%90.4%
90.4 % 443 / 490 93.5 % 29 / 31
map.c
90.0%90.0%
90.0 % 260 / 289 90.9 % 30 / 33
mellininv.c
96.9%96.9%
96.9 % 316 / 326 100.0 % 30 / 30
modsym.c
97.4%97.4%
97.4 % 2058 / 2113 100.0 % 215 / 215
nffactor.c
92.1%92.1%
92.1 % 1112 / 1208 94.2 % 65 / 69
perm.c
94.2%94.2%
94.2 % 540 / 573 96.9 % 62 / 64
polarit1.c
95.0%95.0%
95.0 % 284 / 299 100.0 % 29 / 29
polarit2.c
87.2%87.2%
87.2 % 1493 / 1713 94.0 % 125 / 133
polarit3.c
84.1%84.1%
84.1 % 1012 / 1203 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 % 2464 / 2584 100.0 % 147 / 147
prime.c
90.1%90.1%
90.1 % 558 / 619 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
97.8%97.8%
97.8 % 133 / 136 100.0 % 16 / 16
rootpol.c
91.0%91.0%
91.0 % 1508 / 1658 94.0 % 109 / 116
subcyclo.c
94.2%94.2%
94.2 % 524 / 556 97.4 % 38 / 39
subgroup.c
95.3%95.3%
95.3 % 345 / 362 100.0 % 22 / 22
trans1.c
97.3%97.3%
97.3 % 1840 / 1891 98.6 % 136 / 138
trans2.c
94.3%94.3%
94.3 % 956 / 1014 98.4 % 62 / 63
trans3.c
92.0%92.0%
92.0 % 1712 / 1861 93.9 % 108 / 115
volcano.c
93.7%93.7%
93.7 % 418 / 446 100.0 % 22 / 22
zetamult.c
99.1%99.1%
99.1 % 109 / 110 100.0 % 10 / 10

Generated by: LCOV version 1.11