Branch Coverage

lib/Colouring/In/XS.xs
Criterion Covered Total %
branch 22 80 27.5


line true false branch
26 5 10021 SV * a = (items > 2) && SvOK(ST(2)) ? ST(2) : newSViv(1);
4 1 SV * a = (items > 2) && SvOK(ST(2)) ? ST(2) : newSViv(1);
42 1 0 double a = colouring_clamp(items > 4 ? SvNV(ST(4)) : 1, 1);
61 0 0 double a = colouring_clamp(items > 4 ? SvNV(ST(4)) : 1, 1);
76 1 0 double a = colouring_clamp(items > 4 ? SvNV(ST(4)) : 1, 1);
89 0 0 double a = colouring_clamp(items > 4 ? SvNV(ST(4)) : 1, 1);
99 0 0 int r = items > 1 ? SvIV(ST(1)) : 0;
100 0 0 int s = items > 2 ? SvIV(ST(1)) : 0;
103 0 0 if (alpha == 1) {
144 0 0 if (numIs(alpha_sv) && SvIV(alpha_sv) != 1) {
0 0 if (numIs(alpha_sv) && SvIV(alpha_sv) != 1) {
173 0 0 int force_long = SvTRUE(ST(1)) && SvTYPE(ST(1)) == SVt_IV;
0 0 int force_long = SvTRUE(ST(1)) && SvTYPE(ST(1)) == SVt_IV;
209 0 7 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
0 0 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
0 0 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
225 0 8 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
0 0 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
0 0 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
256 0 11 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
0 0 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
0 0 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
272 0 11 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
0 0 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
0 0 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
290 1 0 if (SvOK(ST(2)) && SvIV(ST(2)) != 0) {
0 1 if (SvOK(ST(2)) && SvIV(ST(2)) != 0) {
309 1 0 if (SvOK(ST(2)) && SvIV(ST(2)) != 0) {
0 1 if (SvOK(ST(2)) && SvIV(ST(2)) != 0) {
326 1 0 if (SvOK(ST(2)) && SvIV(ST(2)) != 0) {
0 1 if (SvOK(ST(2)) && SvIV(ST(2)) != 0) {
342 0 1 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
0 0 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
0 0 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
358 0 2 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
0 0 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
0 0 int relative = items > 2 && SvOK(ST(2)) && strcmp(SvPV_nolen(ST(2)), "relative") == 0;
388 10001 0 EXTEND(SP, len + 1);
0 10001 EXTEND(SP, len + 1);
389 30003 10001 for (i = 0; i <= len; i++) {