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 19357-d770f77) Lines: 79612 86739 91.8 %
Date: 2016-08-27 06:11:27 Functions: 6818 7244 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
F2x.c
93.2%93.2%
93.2 % 1229 / 1318 96.9 % 154 / 159
F2xqE.c
93.9%93.9%
93.9 % 401 / 427 94.4 % 51 / 54
FF.c
94.8%94.8%
94.8 % 911 / 961 96.3 % 104 / 108
Fle.c
83.2%83.2%
83.2 % 232 / 279 75.0 % 30 / 40
Flx.c
89.9%89.9%
89.9 % 2605 / 2898 90.7 % 313 / 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 % 1228 / 1328 96.1 % 147 / 153
FpXQX_factor.c
95.7%95.7%
95.7 % 780 / 815 93.1 % 67 / 72
FpXX.c
87.0%87.0%
87.0 % 719 / 826 93.1 % 94 / 101
FpX_factor.c
91.3%91.3%
91.3 % 1461 / 1601 93.3 % 126 / 135
Hensel.c
95.9%95.9%
95.9 % 514 / 536 97.4 % 38 / 39
QX_factor.c
94.7%94.7%
94.7 % 730 / 771 95.3 % 41 / 43
Qfb.c
92.0%92.0%
92.0 % 833 / 905 93.8 % 91 / 97
RgV.c
83.4%83.4%
83.4 % 441 / 529 86.2 % 75 / 87
RgX.c
91.1%91.1%
91.1 % 1255 / 1377 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 % 733 / 814 93.7 % 104 / 111
ZX.c
94.5%94.5%
94.5 % 433 / 458 96.5 % 55 / 57
alglin1.c
92.9%92.9%
92.9 % 2248 / 2419 91.4 % 201 / 220
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 % 2617 / 2845 94.2 % 228 / 242
arith2.c
92.3%92.3%
92.3 % 554 / 600 96.3 % 79 / 82
base1.c
93.0%93.0%
93.0 % 1364 / 1467 88.1 % 111 / 126
base2.c
85.6%85.6%
85.6 % 1939 / 2265 93.3 % 152 / 163
base3.c
93.9%93.9%
93.9 % 1382 / 1472 95.1 % 136 / 143
base4.c
90.8%90.8%
90.8 % 1406 / 1549 92.0 % 127 / 138
base5.c
92.3%92.3%
92.3 % 1026 / 1112 94.7 % 72 / 76
bb_group.c
91.9%91.9%
91.9 % 500 / 544 97.0 % 32 / 33
bibli1.c
95.3%95.3%
95.3 % 979 / 1027 92.3 % 60 / 65
bibli2.c
96.6%96.6%
96.6 % 1033 / 1069 95.8 % 92 / 96
bit.c
90.7%90.7%
90.7 % 372 / 410 91.7 % 33 / 36
buch1.c
94.8%94.8%
94.8 % 636 / 671 93.6 % 44 / 47
buch2.c
93.5%93.5%
93.5 % 2328 / 2491 94.6 % 140 / 148
buch3.c
93.3%93.3%
93.3 % 1393 / 1493 91.3 % 95 / 104
buch4.c
81.3%81.3%
81.3 % 383 / 471 80.6 % 25 / 31
char.c
94.8%94.8%
94.8 % 551 / 581 100.0 % 47 / 47
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.3%97.3%
97.3 % 109 / 112 100.0 % 13 / 13
ellanal.c
91.6%91.6%
91.6 % 667 / 728 94.8 % 55 / 58
elliptic.c
92.7%92.7%
92.7 % 3611 / 3894 96.6 % 315 / 326
ellisog.c
98.2%98.2%
98.2 % 642 / 654 100.0 % 54 / 54
ellsea.c
85.9%85.9%
85.9 % 998 / 1162 92.9 % 78 / 84
elltors.c
97.2%97.2%
97.2 % 383 / 394 91.3 % 21 / 23
galconj.c
91.0%91.0%
91.0 % 1424 / 1564 95.5 % 85 / 89
gen1.c
92.3%92.3%
92.3 % 1786 / 1934 100.0 % 89 / 89
gen2.c
86.5%86.5%
86.5 % 1324 / 1531 92.4 % 134 / 145
gen3.c
90.5%90.5%
90.5 % 2070 / 2288 95.4 % 209 / 219
hnf_snf.c
90.2%90.2%
90.2 % 1386 / 1537 92.6 % 75 / 81
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.4%92.4%
92.4 % 994 / 1076 95.7 % 88 / 92
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 % 2061 / 2116 100.0 % 215 / 215
nffactor.c
92.0%92.0%
92.0 % 1132 / 1231 94.3 % 66 / 70
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
86.0%86.0%
86.0 % 1494 / 1738 91.7 % 122 / 133
polarit3.c
85.9%85.9%
85.9 % 1368 / 1593 88.9 % 128 / 144
polclass.c
96.2%96.2%
96.2 % 921 / 957 98.3 % 59 / 60
polmodular.c
95.4%95.4%
95.4 % 2456 / 2574 100.0 % 145 / 145
prime.c
90.2%90.2%
90.2 % 561 / 622 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
93.3%93.3%
93.3 % 527 / 565 97.4 % 38 / 39
subgroup.c
95.3%95.3%
95.3 % 345 / 362 100.0 % 22 / 22
trans1.c
97.0%97.0%
97.0 % 1826 / 1883 97.8 % 135 / 138
trans2.c
94.5%94.5%
94.5 % 958 / 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