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 19199-979caa2) Lines: 79616 86843 91.7 %
Date: 2016-07-24 07:10:30 Functions: 6795 7218 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
ZG.c
55.7%55.7%
55.7 % 44 / 79 57.1 % 8 / 14
Fle.c
83.2%83.2%
83.2 % 232 / 279 75.0 % 30 / 40
FpV.c
75.0%75.0%
75.0 % 611 / 815 76.1 % 86 / 113
buch4.c
81.3%81.3%
81.3 % 383 / 471 80.6 % 25 / 31
RgV.c
83.4%83.4%
83.4 % 441 / 529 86.2 % 75 / 87
alglin3.c
90.7%90.7%
90.7 % 458 / 505 87.2 % 41 / 47
base1.c
93.0%93.0%
93.0 % 1549 / 1665 88.6 % 117 / 132
polarit3.c
85.9%85.9%
85.9 % 1368 / 1593 88.9 % 128 / 144
ifactor1.c
81.6%81.6%
81.6 % 1385 / 1698 89.3 % 75 / 84
ellsea.c
84.3%84.3%
84.3 % 979 / 1161 90.4 % 75 / 83
Flx.c
89.9%89.9%
89.9 % 2605 / 2898 90.7 % 313 / 345
map.c
90.0%90.0%
90.0 % 260 / 289 90.9 % 30 / 33
elltors.c
97.2%97.2%
97.2 % 383 / 394 91.3 % 21 / 23
buch3.c
93.5%93.5%
93.5 % 1388 / 1484 91.3 % 95 / 104
bit.c
90.7%90.7%
90.7 % 372 / 410 91.7 % 33 / 36
polarit2.c
86.0%86.0%
86.0 % 1494 / 1738 91.7 % 122 / 133
alglin1.c
93.2%93.2%
93.2 % 2255 / 2419 92.3 % 203 / 220
bibli1.c
95.3%95.3%
95.3 % 979 / 1027 92.3 % 60 / 65
trans3.c
89.3%89.3%
89.3 % 1712 / 1917 92.3 % 108 / 117
FpE.c
91.4%91.4%
91.4 % 917 / 1003 92.5 % 98 / 106
gen2.c
86.5%86.5%
86.5 % 1324 / 1531 92.4 % 134 / 145
hnf_snf.c
90.2%90.2%
90.2 % 1386 / 1537 92.6 % 75 / 81
nffactor.c
91.3%91.3%
91.3 % 1127 / 1234 92.9 % 65 / 70
FpXQX_factor.c
95.7%95.7%
95.7 % 786 / 821 93.1 % 67 / 72
FpXX.c
87.0%87.0%
87.0 % 719 / 826 93.1 % 94 / 101
FpX_factor.c
91.1%91.1%
91.1 % 1471 / 1614 93.2 % 123 / 132
RgX.c
91.1%91.1%
91.1 % 1255 / 1377 93.2 % 138 / 148
alglin2.c
88.6%88.6%
88.6 % 945 / 1066 93.3 % 70 / 75
lll.c
90.4%90.4%
90.4 % 443 / 490 93.5 % 29 / 31
base4.c
91.7%91.7%
91.7 % 1424 / 1553 93.6 % 131 / 140
buch1.c
94.8%94.8%
94.8 % 636 / 671 93.6 % 44 / 47
ZV.c
90.0%90.0%
90.0 % 733 / 814 93.7 % 104 / 111
base2.c
85.7%85.7%
85.7 % 1895 / 2212 93.7 % 149 / 159
Qfb.c
92.0%92.0%
92.0 % 833 / 905 93.8 % 91 / 97
rootpol.c
91.0%91.0%
91.0 % 1508 / 1658 94.0 % 109 / 116
arith1.c
91.9%91.9%
91.9 % 2617 / 2847 94.2 % 229 / 243
F2xqE.c
93.9%93.9%
93.9 % 401 / 427 94.4 % 51 / 54
buch2.c
92.3%92.3%
92.3 % 2305 / 2496 94.4 % 136 / 144
ellanal.c
91.6%91.6%
91.6 % 667 / 728 94.8 % 55 / 58
base5.c
92.3%92.3%
92.3 % 1032 / 1118 94.8 % 73 / 77
QX_factor.c
94.7%94.7%
94.7 % 727 / 768 95.3 % 41 / 43
prime.c
90.2%90.2%
90.2 % 561 / 622 95.3 % 61 / 64
galconj.c
91.0%91.0%
91.0 % 1414 / 1554 95.5 % 85 / 89
lfunutils.c
92.4%92.4%
92.4 % 995 / 1077 95.7 % 88 / 92
bibli2.c
95.9%95.9%
95.9 % 1018 / 1062 95.7 % 89 / 93
base3.c
94.0%94.0%
94.0 % 1369 / 1456 95.7 % 132 / 138
FpX.c
92.5%92.5%
92.5 % 1228 / 1328 96.1 % 147 / 153
arith2.c
92.2%92.2%
92.2 % 543 / 589 96.2 % 76 / 79
FF.c
94.8%94.8%
94.8 % 911 / 961 96.3 % 104 / 108
gen3.c
90.8%90.8%
90.8 % 2037 / 2244 96.3 % 206 / 214
ZX.c
94.5%94.5%
94.5 % 433 / 458 96.5 % 55 / 57
elliptic.c
92.6%92.6%
92.6 % 3554 / 3836 96.6 % 311 / 322
perm.c
94.2%94.2%
94.2 % 540 / 573 96.9 % 62 / 64
F2x.c
93.2%93.2%
93.2 % 1229 / 1318 96.9 % 154 / 159
bb_group.c
91.7%91.7%
91.7 % 499 / 544 97.0 % 32 / 33
Hensel.c
95.9%95.9%
95.9 % 514 / 536 97.4 % 38 / 39
subcyclo.c
93.3%93.3%
93.3 % 527 / 565 97.4 % 38 / 39
trans1.c
97.0%97.0%
97.0 % 1826 / 1883 97.8 % 135 / 138
polclass.c
96.2%96.2%
96.2 % 921 / 957 98.3 % 59 / 60
trans2.c
94.5%94.5%
94.5 % 958 / 1014 98.4 % 62 / 63
FlxqE.c
95.8%95.8%
95.8 % 906 / 946 99.0 % 96 / 97
lfun.c
93.9%93.9%
93.9 % 1235 / 1315 99.2 % 129 / 130
modsym.c
96.7%96.7%
96.7 % 2047 / 2116 99.5 % 214 / 215
zetamult.c
99.1%99.1%
99.1 % 109 / 110 100.0 % 10 / 10
dirichlet.c
97.3%97.3%
97.3 % 109 / 112 100.0 % 13 / 13
concat.c
90.6%90.6%
90.6 % 307 / 339 100.0 % 15 / 15
random.c
97.8%97.8%
97.8 % 133 / 136 100.0 % 16 / 16
subgroup.c
95.3%95.3%
95.3 % 345 / 362 100.0 % 22 / 22
volcano.c
93.7%93.7%
93.7 % 418 / 446 100.0 % 22 / 22
mellininv.c
96.9%96.9%
96.9 % 310 / 320 100.0 % 24 / 24
Flxq_log.c
93.9%93.9%
93.9 % 419 / 446 100.0 % 27 / 27
crvwtors.c
98.8%98.8%
98.8 % 318 / 322 100.0 % 29 / 29
qfsolve.c
98.5%98.5%
98.5 % 595 / 604 100.0 % 30 / 30
polarit1.c
95.5%95.5%
95.5 % 319 / 334 100.0 % 31 / 31
hyperell.c
96.0%96.0%
96.0 % 498 / 519 100.0 % 43 / 43
char.c
94.8%94.8%
94.8 % 551 / 581 100.0 % 47 / 47
qfisom.c
95.9%95.9%
95.9 % 985 / 1027 100.0 % 54 / 54
ellisog.c
98.2%98.2%
98.2 % 642 / 654 100.0 % 54 / 54
gen1.c
92.3%92.3%
92.3 % 1786 / 1934 100.0 % 89 / 89
polmodular.c
95.4%95.4%
95.4 % 2458 / 2576 100.0 % 145 / 145

Generated by: LCOV version 1.11