Branch Coverage

XS.xs
Criterion Covered Total %
branch 37 62 59.6


line true false branch
14 93 116 if (codepoint < width_table[0].start) {
22 0 116 if (codepoint > width_table[max].end) {
26 1071 0 while (max >= min) {
28 589 482 if (codepoint > width_table[mid].end) {
30 366 116 } else if (codepoint < width_table[mid].start) {
60 0 12 int width = 0;
63 0 12 if (!SvOK(input)) {
66 0 12 if (!SvPOK(input)) {
73 68 12 while (p < end) {
75 0 68 if (clen == -1 ) {
101 0 20 if (!SvOK(input)) {
105 0 20 if (!SvPOK(input)) {
114 66 0 while (p < end) {
118 0 66 if (clen == -1) {
125 20 46 if (str_w + this_w > max_width) {
134 0 20 if (!split_point) {
136 0 0 if (GIMME_V == G_ARRAY) {
137 0 0 XPUSHs(sv_2mortal(newSVsv(input)));
138 0 0 XPUSHs(sv_2mortal(newSVpvn("", 0)));
140 0 0 XPUSHs(sv_2mortal(newSVsv(input)));
147 6 14 if (str_w == max_width - 1) {
152 10 10 if (GIMME_V == G_ARRAY) {
157 0 10 XPUSHs(sv_2mortal(first_part));
158 0 10 XPUSHs(sv_2mortal(rest_part));
160 0 10 XPUSHs(sv_2mortal(first_part));
177 0 17 if (!SvOK(input)) {
181 0 17 if (!SvPOK(input)) {
190 63 7 while (p < end) {
192 0 63 if (clen == (STRLEN)-1) {
198 10 53 if (str_w + this_w > width) {
208 7 10 if (str_w == width) {