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.1 lcov report (development 22708-0f0e6fe44) Lines: 97336 104733 92.9 %
Date: 2018-06-18 05:36:21 Functions: 8778 9250 94.9 %
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
60.3%60.3%
60.3 % 44 / 73 57.1 % 8 / 14
FpV.c
75.4%75.4%
75.4 % 706 / 936 79.4 % 104 / 131
ifactor1.c
80.1%80.1%
80.1 % 1452 / 1812 87.0 % 87 / 100
buch4.c
80.5%80.5%
80.5 % 389 / 483 81.8 % 27 / 33
FpXQX_factor.c
83.5%83.5%
83.5 % 1576 / 1888 85.0 % 125 / 147
crvwtors.c
83.9%83.9%
83.9 % 270 / 322 82.8 % 24 / 29
FpXX.c
84.0%84.0%
84.0 % 826 / 983 88.6 % 101 / 114
aprcl.c
84.6%84.6%
84.6 % 609 / 720 98.1 % 51 / 52
kummer.c
86.5%86.5%
86.5 % 741 / 857 91.5 % 54 / 59
Fle.c
86.8%86.8%
86.8 % 296 / 341 79.6 % 39 / 49
polarit3.c
87.3%87.3%
87.3 % 1304 / 1493 89.8 % 141 / 157
gen2.c
87.7%87.7%
87.7 % 1315 / 1499 92.5 % 135 / 146
RgX.c
89.6%89.6%
89.6 % 1454 / 1622 92.0 % 172 / 187
lfunutils.c
90.0%90.0%
90.0 % 1354 / 1505 91.9 % 125 / 136
RgV.c
90.1%90.1%
90.1 % 483 / 536 92.7 % 89 / 96
concat.c
90.5%90.5%
90.5 % 304 / 336 100.0 % 15 / 15
ecpp.c
90.5%90.5%
90.5 % 618 / 683 94.2 % 81 / 86
alglin2.c
90.6%90.6%
90.6 % 953 / 1052 94.9 % 74 / 78
base4.c
90.5%90.5%
90.5 % 1416 / 1564 91.0 % 141 / 155
FpX.c
90.8%90.8%
90.8 % 1309 / 1442 94.5 % 154 / 163
polarit2.c
90.9%90.9%
90.9 % 1831 / 2015 96.6 % 172 / 178
prime.c
90.9%90.9%
90.9 % 640 / 704 96.0 % 72 / 75
hnf_snf.c
91.1%91.1%
91.1 % 1516 / 1665 94.6 % 87 / 92
bit.c
91.2%91.2%
91.2 % 372 / 408 91.7 % 33 / 36
ZV.c
91.2%91.2%
91.2 % 765 / 839 95.1 % 116 / 122
ellanal.c
91.3%91.3%
91.3 % 669 / 733 93.2 % 55 / 59
rootpol.c
91.4%91.4%
91.4 % 1514 / 1656 94.0 % 109 / 116
alglin3.c
91.6%91.6%
91.6 % 466 / 509 87.8 % 43 / 49
lll.c
91.8%91.8%
91.8 % 423 / 461 93.3 % 28 / 30
arith2.c
91.7%91.7%
91.7 % 589 / 642 94.5 % 86 / 91
Qfb.c
91.8%91.8%
91.8 % 847 / 923 93.0 % 93 / 100
FpE.c
92.0%92.0%
92.0 % 976 / 1061 92.1 % 105 / 114
Flx.c
92.0%92.0%
92.0 % 2830 / 3076 92.3 % 346 / 375
arith1.c
92.5%92.5%
92.5 % 2930 / 3169 93.8 % 271 / 289
bb_group.c
92.6%92.6%
92.6 % 538 / 581 97.2 % 35 / 36
base5.c
92.6%92.6%
92.6 % 1035 / 1118 94.8 % 73 / 77
F2x.c
92.5%92.5%
92.5 % 1428 / 1543 94.1 % 176 / 187
nffactor.c
92.7%92.7%
92.7 % 1151 / 1242 94.5 % 69 / 73
FpX_factor.c
92.7%92.7%
92.7 % 1253 / 1351 93.3 % 111 / 119
gen3.c
92.9%92.9%
92.9 % 2089 / 2249 96.4 % 213 / 221
perm.c
93.3%93.3%
93.3 % 653 / 700 94.9 % 75 / 79
alglin1.c
93.3%93.3%
93.3 % 3426 / 3671 94.7 % 338 / 357
base3.c
93.7%93.7%
93.7 % 1618 / 1726 94.8 % 181 / 191
bb_hnf.c
93.9%93.9%
93.9 % 600 / 639 92.7 % 51 / 55
elliptic.c
93.9%93.9%
93.9 % 3716 / 3957 98.0 % 339 / 346
ZX.c
94.0%94.0%
94.0 % 552 / 587 95.1 % 77 / 81
F2xqE.c
94.2%94.2%
94.2 % 420 / 446 94.8 % 55 / 58
gen1.c
94.2%94.2%
94.2 % 1720 / 1826 100.0 % 89 / 89
trans3.c
94.3%94.3%
94.3 % 1897 / 2012 98.3 % 117 / 119
buch2.c
94.3%94.3%
94.3 % 2354 / 2497 94.2 % 146 / 155
buch3.c
94.3%94.3%
94.3 % 1407 / 1492 96.3 % 104 / 108
FF.c
94.7%94.7%
94.7 % 1068 / 1128 95.6 % 129 / 135
buch1.c
94.8%94.8%
94.8 % 635 / 670 93.6 % 44 / 47
subcyclo.c
94.9%94.9%
94.9 % 525 / 553 97.6 % 40 / 41
subgroup.c
95.0%95.0%
95.0 % 343 / 361 100.0 % 22 / 22
bibli1.c
95.1%95.1%
95.1 % 1028 / 1081 91.4 % 64 / 70
base1.c
95.0%95.0%
95.0 % 1523 / 1603 87.6 % 113 / 129
galconj.c
95.2%95.2%
95.2 % 1599 / 1680 98.1 % 101 / 103
base2.c
95.3%95.3%
95.3 % 2132 / 2238 98.2 % 168 / 171
modsym.c
95.3%95.3%
95.3 % 2552 / 2677 98.2 % 274 / 279
dirichlet.c
95.5%95.5%
95.5 % 84 / 88 100.0 % 8 / 8
map.c
95.5%95.5%
95.5 % 275 / 288 100.0 % 33 / 33
Flxq_log.c
95.7%95.7%
95.7 % 447 / 467 100.0 % 28 / 28
lfun.c
95.7%95.7%
95.7 % 1340 / 1400 99.3 % 136 / 137
hyperell.c
95.8%95.8%
95.8 % 482 / 503 100.0 % 41 / 41
QX_factor.c
95.8%95.8%
95.8 % 715 / 746 97.6 % 41 / 42
ellsea.c
95.9%95.9%
95.9 % 1111 / 1159 97.6 % 81 / 83
ellpadic.c
96.0%96.0%
96.0 % 580 / 604 100.0 % 47 / 47
polarit1.c
96.2%96.2%
96.2 % 308 / 320 100.0 % 30 / 30
trans2.c
96.3%96.3%
96.3 % 1006 / 1045 100.0 % 65 / 65
mellininv.c
96.3%96.3%
96.3 % 314 / 326 96.7 % 29 / 30
Hensel.c
96.4%96.4%
96.4 % 535 / 555 97.9 % 47 / 48
ellisog.c
96.5%96.5%
96.5 % 943 / 977 98.8 % 79 / 80
volcano.c
96.8%96.8%
96.8 % 330 / 341 100.0 % 22 / 22
qfisom.c
97.0%97.0%
97.0 % 998 / 1029 100.0 % 55 / 55
polmodular.c
96.9%96.9%
96.9 % 2276 / 2348 100.0 % 142 / 142
FlxqE.c
97.0%97.0%
97.0 % 914 / 942 99.0 % 96 / 97
elltors.c
97.3%97.3%
97.3 % 394 / 405 91.7 % 22 / 24
char.c
97.3%97.3%
97.3 % 783 / 805 100.0 % 63 / 63
polclass.c
97.2%97.2%
97.2 % 838 / 862 98.3 % 59 / 60
bibli2.c
97.3%97.3%
97.3 % 1034 / 1063 97.9 % 93 / 95
trans1.c
97.4%97.4%
97.4 % 2031 / 2086 98.7 % 151 / 153
mftrace.c
97.6%97.6%
97.6 % 7093 / 7264 99.7 % 731 / 733
bnflog.c
98.2%98.2%
98.2 % 275 / 280 100.0 % 24 / 24
zetamult.c
98.4%98.4%
98.4 % 246 / 250 95.5 % 21 / 22
qfsolve.c
98.5%98.5%
98.5 % 594 / 603 100.0 % 30 / 30
matperm.c
100.0%
100.0 % 78 / 78 100.0 % 4 / 4
Ser.c
100.0%
100.0 % 122 / 122 100.0 % 17 / 17
random.c
100.0%
100.0 % 141 / 141 100.0 % 16 / 16

Generated by: LCOV version 1.13