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 19828-fe528f7) Lines: 80377 87400 92.0 %
Date: 2016-12-07 05:49:12 Functions: 6959 7366 94.5 %
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.1%94.1%
94.1 % 1263 / 1342 96.9 % 157 / 162
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
89.7%89.7%
89.7 % 2617 / 2917 91.0 % 315 / 346
FlxqE.c
95.8%95.8%
95.8 % 906 / 946 99.0 % 96 / 97
Flxq_log.c
94.3%94.3%
94.3 % 447 / 474 100.0 % 29 / 29
FpE.c
91.4%91.4%
91.4 % 911 / 997 92.4 % 97 / 105
FpV.c
76.3%76.3%
76.3 % 635 / 832 78.4 % 91 / 116
FpX.c
92.6%92.6%
92.6 % 1235 / 1333 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 % 531 / 553 97.9 % 47 / 48
QX_factor.c
95.9%95.9%
95.9 % 719 / 750 97.6 % 41 / 42
Qfb.c
92.0%92.0%
92.0 % 833 / 905 93.8 % 91 / 97
RgV.c
86.2%86.2%
86.2 % 456 / 529 89.7 % 78 / 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
91.0%91.0%
91.0 % 750 / 824 94.7 % 107 / 113
ZX.c
94.5%94.5%
94.5 % 433 / 458 96.5 % 55 / 57
alglin1.c
92.5%92.5%
92.5 % 2249 / 2431 91.3 % 199 / 218
alglin2.c
88.4%88.4%
88.4 % 907 / 1026 93.1 % 67 / 72
alglin3.c
90.7%90.7%
90.7 % 458 / 505 87.2 % 41 / 47
arith1.c
92.1%92.1%
92.1 % 2650 / 2877 94.3 % 231 / 245
arith2.c
92.3%92.3%
92.3 % 554 / 600 96.3 % 79 / 82
base1.c
92.8%92.8%
92.8 % 1350 / 1454 87.7 % 107 / 122
base2.c
85.9%85.9%
85.9 % 1955 / 2276 93.4 % 156 / 167
base3.c
94.5%94.5%
94.5 % 1482 / 1569 95.5 % 168 / 176
base4.c
90.6%90.6%
90.6 % 1302 / 1437 92.1 % 128 / 139
base5.c
92.5%92.5%
92.5 % 1027 / 1110 94.7 % 72 / 76
bb_group.c
92.3%92.3%
92.3 % 519 / 562 97.1 % 33 / 34
bibli1.c
95.2%95.2%
95.2 % 990 / 1040 92.4 % 61 / 66
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.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.6%93.6%
93.6 % 2334 / 2494 94.7 % 142 / 150
buch3.c
93.7%93.7%
93.7 % 1384 / 1477 96.3 % 103 / 107
buch4.c
81.1%81.1%
81.1 % 391 / 482 81.8 % 27 / 33
char.c
95.1%95.1%
95.1 % 588 / 618 100.0 % 51 / 51
concat.c
89.7%89.7%
89.7 % 304 / 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.4%97.4%
97.4 % 664 / 682 100.0 % 55 / 55
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.6%86.6%
86.6 % 1330 / 1535 92.5 % 136 / 147
gen3.c
90.5%90.5%
90.5 % 2074 / 2292 95.4 % 209 / 219
hnf_snf.c
90.3%90.3%
90.3 % 1430 / 1583 93.0 % 80 / 86
hyperell.c
96.0%96.0%
96.0 % 498 / 519 100.0 % 43 / 43
ifactor1.c
81.6%81.6%
81.6 % 1389 / 1702 89.4 % 76 / 85
lfun.c
93.8%93.8%
93.8 % 1232 / 1313 98.5 % 128 / 130
lfunutils.c
92.3%92.3%
92.3 % 992 / 1075 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.0%97.0%
97.0 % 2121 / 2187 100.0 % 225 / 225
nffactor.c
92.0%92.0%
92.0 % 1111 / 1207 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 % 1497 / 1717 94.0 % 126 / 134
polarit3.c
84.1%84.1%
84.1 % 1014 / 1205 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 % 2463 / 2583 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.6%94.6%
94.6 % 524 / 554 97.4 % 38 / 39
subgroup.c
95.0%95.0%
95.0 % 344 / 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 % 1715 / 1865 94.0 % 109 / 116
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