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 20916-a74d914) Lines: 90920 98870 92.0 %
Date: 2017-08-18 06:23:59 Functions: 7983 8468 94.3 %
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
76.6%76.6%
76.6 % 648 / 846 78.2 % 93 / 119
buch4.c
80.6%80.6%
80.6 % 390 / 484 81.8 % 27 / 33
ifactor1.c
81.1%81.1%
81.1 % 1428 / 1760 87.5 % 84 / 96
Fle.c
83.2%83.2%
83.2 % 232 / 279 75.0 % 30 / 40
mftrace.c
84.2%84.2%
84.2 % 4235 / 5030 88.8 % 434 / 489
polarit3.c
84.5%84.5%
84.5 % 1127 / 1333 89.6 % 120 / 134
aprcl.c
84.6%84.6%
84.6 % 610 / 721 98.1 % 51 / 52
ellsea.c
85.8%85.8%
85.8 % 1000 / 1165 92.8 % 77 / 83
kummer.c
86.0%86.0%
86.0 % 719 / 836 91.1 % 51 / 56
base2.c
86.1%86.1%
86.1 % 2011 / 2335 93.6 % 161 / 172
RgV.c
86.4%86.4%
86.4 % 465 / 538 89.8 % 79 / 88
FpXX.c
86.6%86.6%
86.6 % 713 / 823 91.8 % 90 / 98
gen2.c
87.6%87.6%
87.6 % 1345 / 1535 92.6 % 137 / 148
alglin2.c
89.1%89.1%
89.1 % 907 / 1018 93.1 % 67 / 72
base4.c
89.9%89.9%
89.9 % 1314 / 1462 91.0 % 131 / 144
FpXQX_factor.c
90.2%90.2%
90.2 % 1090 / 1209 91.8 % 89 / 97
RgX.c
90.2%90.2%
90.2 % 1397 / 1549 90.5 % 153 / 169
map.c
90.3%90.3%
90.3 % 260 / 288 90.9 % 30 / 33
concat.c
90.5%90.5%
90.5 % 304 / 336 100.0 % 15 / 15
polarit2.c
90.5%90.5%
90.5 % 1661 / 1836 95.3 % 141 / 148
prime.c
91.0%91.0%
91.0 % 583 / 641 97.1 % 66 / 68
FpX_factor.c
91.0%91.0%
91.0 % 1456 / 1600 93.4 % 128 / 137
hnf_snf.c
91.0%91.0%
91.0 % 1490 / 1637 94.4 % 84 / 89
bit.c
91.2%91.2%
91.2 % 372 / 408 91.7 % 33 / 36
ZV.c
91.1%91.1%
91.1 % 772 / 847 94.8 % 110 / 116
rootpol.c
91.3%91.3%
91.3 % 1503 / 1647 94.0 % 109 / 116
lll.c
91.3%91.3%
91.3 % 422 / 462 93.3 % 28 / 30
alglin3.c
91.6%91.6%
91.6 % 470 / 513 87.5 % 42 / 48
ellanal.c
91.7%91.7%
91.7 % 667 / 727 94.8 % 55 / 58
Qfb.c
91.8%91.8%
91.8 % 850 / 926 93.0 % 93 / 100
Flx.c
91.7%91.7%
91.7 % 2789 / 3040 92.5 % 333 / 360
ZX.c
91.9%91.9%
91.9 % 521 / 567 93.4 % 71 / 76
FpE.c
91.9%91.9%
91.9 % 981 / 1068 92.1 % 105 / 114
nffactor.c
92.2%92.2%
92.2 % 1116 / 1211 94.3 % 66 / 70
arith1.c
92.4%92.4%
92.4 % 2779 / 3008 93.9 % 246 / 262
ecpp.c
92.5%92.5%
92.5 % 886 / 958 94.2 % 98 / 104
gen3.c
92.5%92.5%
92.5 % 2108 / 2280 95.9 % 212 / 221
bb_group.c
92.7%92.7%
92.7 % 519 / 560 97.1 % 33 / 34
base5.c
92.6%92.6%
92.6 % 1031 / 1113 94.7 % 72 / 76
lfunutils.c
92.8%92.8%
92.8 % 1154 / 1244 96.3 % 104 / 108
F2x.c
92.8%92.8%
92.8 % 1245 / 1341 95.1 % 154 / 162
FpX.c
93.2%93.2%
93.2 % 1241 / 1332 96.6 % 144 / 149
perm.c
93.2%93.2%
93.2 % 594 / 637 95.8 % 69 / 72
gen1.c
93.3%93.3%
93.3 % 1765 / 1892 100.0 % 88 / 88
arith2.c
93.4%93.4%
93.4 % 596 / 638 96.6 % 86 / 89
buch2.c
93.5%93.5%
93.5 % 2332 / 2493 94.7 % 143 / 151
volcano.c
93.7%93.7%
93.7 % 418 / 446 100.0 % 22 / 22
base3.c
94.0%94.0%
94.0 % 1593 / 1695 95.2 % 180 / 189
elliptic.c
94.0%94.0%
94.0 % 4159 / 4425 97.6 % 370 / 379
F2xqE.c
94.2%94.2%
94.2 % 420 / 446 94.8 % 55 / 58
buch3.c
94.1%94.1%
94.1 % 1392 / 1479 96.3 % 104 / 108
buch1.c
94.8%94.8%
94.8 % 636 / 671 93.6 % 44 / 47
FF.c
94.9%94.9%
94.9 % 967 / 1019 96.7 % 116 / 120
bibli1.c
94.9%94.9%
94.9 % 1036 / 1092 91.4 % 64 / 70
base1.c
94.8%94.8%
94.8 % 1425 / 1503 87.3 % 110 / 126
subcyclo.c
95.0%95.0%
95.0 % 528 / 556 97.4 % 38 / 39
subgroup.c
95.0%95.0%
95.0 % 344 / 362 100.0 % 22 / 22
Flxq_log.c
95.1%95.1%
95.1 % 444 / 467 100.0 % 28 / 28
alglin1.c
95.1%95.1%
95.1 % 3192 / 3358 95.3 % 287 / 301
galconj.c
95.2%95.2%
95.2 % 1557 / 1635 98.0 % 98 / 100
polmodular.c
95.4%95.4%
95.4 % 2503 / 2625 100.0 % 150 / 150
dirichlet.c
95.5%95.5%
95.5 % 84 / 88 100.0 % 8 / 8
lfun.c
95.5%95.5%
95.5 % 1326 / 1389 98.5 % 133 / 135
modsym.c
95.4%95.4%
95.4 % 2114 / 2215 99.1 % 224 / 226
trans3.c
95.5%95.5%
95.5 % 1800 / 1884 98.3 % 114 / 116
polarit1.c
95.6%95.6%
95.6 % 306 / 320 100.0 % 30 / 30
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
trans2.c
96.0%96.0%
96.0 % 993 / 1034 100.0 % 63 / 63
polclass.c
96.3%96.3%
96.3 % 925 / 961 98.3 % 57 / 58
Hensel.c
96.4%96.4%
96.4 % 533 / 553 97.9 % 47 / 48
trans1.c
96.6%96.6%
96.6 % 1948 / 2016 96.6 % 141 / 146
ellisog.c
97.0%97.0%
97.0 % 849 / 875 100.0 % 72 / 72
FlxqE.c
97.0%97.0%
97.0 % 916 / 944 99.0 % 96 / 97
char.c
97.1%97.1%
97.1 % 773 / 796 100.0 % 63 / 63
mellininv.c
97.2%97.2%
97.2 % 317 / 326 100.0 % 30 / 30
elltors.c
97.3%97.3%
97.3 % 392 / 403 91.7 % 22 / 24
bibli2.c
97.4%97.4%
97.4 % 1051 / 1079 97.9 % 95 / 97
bnflog.c
97.9%97.9%
97.9 % 275 / 281 100.0 % 24 / 24
zetamult.c
98.4%98.4%
98.4 % 246 / 250 95.5 % 21 / 22
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
matperm.c
100.0%
100.0 % 76 / 76 100.0 % 4 / 4

Generated by: LCOV version 1.11