Branch Coverage

lib/Shannon/Entropy/XS.xs
Criterion Covered Total %
branch 19 30 63.3


line true false branch
24 1024 4 for (i = 0; i < 256; i++) chars[i] = -1;
25 63 4 for (i = 0; i < len; i++) {
27 57 6 if (chars[c] == -1) {
41 1 4 if (len == 0) return 0.0;
43 57 4 for (i = 0; i < histlen; i++) {
68 0 5 if (!pushop) return entersubop;
69 5 0 if (pushop->op_type == OP_NULL && cLISTOPx(pushop)->op_first) {
5 0 if (pushop->op_type == OP_NULL && cLISTOPx(pushop)->op_first) {
72 5 0 argop = OpSIBLING(pushop);
73 0 5 if (!argop) return entersubop;
74 5 0 nextop = OpSIBLING(argop);
75 0 5 if (!nextop) return entersubop;
76 0 5 if (OpSIBLING(nextop)) return entersubop;
0 0 if (OpSIBLING(nextop)) return entersubop;
108 2 0 if (entropy_cv) {