Branch Coverage

BiDiRule.xs
Criterion Covered Total %
branch 17 52 32.6


line true false branch
43 0 131 if (SvOK(string))
0 0 if (SvOK(string))
0 0 if (SvOK(string))
44 131 0 buf = SvPV(string, buflen);
48 131 0 switch (GIMME_V) {
52 47 56 switch (retval) {
58 0 56 XPUSHs(sv_2mortal(newSViv(retval)));
65 0 28 XPUSHs(sv_2mortal(newSVpv("result", 0)));
66 0 28 XPUSHs(sv_2mortal(newSViv(
28 0 XPUSHs(sv_2mortal(newSViv(
68 0 28 XPUSHs(sv_2mortal(newSVpv("offset", 0)));
69 14 14 if (SvUTF8(string))
70 0 14 XPUSHs(sv_2mortal(newSViv(idx)));
72 0 14 XPUSHs(sv_2mortal(newSViv(err - (U8 *)buf)));
73 0 28 if (errlen == 0)
75 28 0 if (retval != BDR_INVALID && retval != BDR_AVOIDED)
28 0 if (retval != BDR_INVALID && retval != BDR_AVOIDED)
78 0 0 XPUSHs(sv_2mortal(newSVpv("length", 0)));
79 0 0 if (SvUTF8(string))
80 0 0 XPUSHs(sv_2mortal(newSViv(errulen)));
82 0 0 XPUSHs(sv_2mortal(newSViv(errlen)));
83 0 0 XPUSHs(sv_2mortal(newSVpv("ord", 0)));
84 0 0 XPUSHs(sv_2mortal(newSViv(cp)));
85 0 0 if (retval != BDR_AVOIDED)
88 0 0 XPUSHs(sv_2mortal(newSVpv("unsafe", 0)));
89 0 0 XPUSHs(sv_2mortal(newSViv(1)));