Branch Coverage

Tools.xs
Criterion Covered Total %
branch 52 90 57.7


line true false branch
61 328 0 bytes = (U8*)SvPV(string, len);
77 46 0 bytes = (U8*)SvPV(string, len);
119 49 0 bytes = (unsigned char*)SvPV(string, len);
121 9643 17 for(i=0; i < len; i++) {
122 383 9260 if (bytes[i] > 0x7f && bytes[i] < 0xa0) {
32 351 if (bytes[i] > 0x7f && bytes[i] < 0xa0) {
142 0 0 bytes = (unsigned char*)SvPV(string, len);
143 0 0 for(i=0; i < len; i++) {
158 1 0 bytes = (unsigned char*)SvPV(string, len);
160 1 0 for(i=0; i < len; i++) {
161 1 0 if (bytes[i] >= 0x80) {
180 4 0 bytes = (unsigned char*)SvPV(string, len);
182 87 1 for(i=0; i < len; i++) {
183 8 79 if (bytes[i] > 0x7f && bytes[i] < 0xa0) {
3 5 if (bytes[i] > 0x7f && bytes[i] < 0xa0) {
214 43 5 if (items > 2) {
218 0 48 if (items > 3) {
219 0 0 match_num = SvIV(ST(3));
234 15 33 if (!SvUTF8(str)) {
235 2 13 if (!st_is_ascii(str)) {
236 2 0 bytes = (U8*)SvPV(str, len);
237 0 2 if(!is_utf8_string(bytes, len)) {
264 0 0 if (SvREFCNT(st_debug_var) == 1) {
313 0 349 if (len == -1) {
317 9 340 else if (self->pos > len) {
322 0 340 if (!av_exists(self->tokens, self->pos)) {
344 0 6 if (len == -1) {
348 0 6 else if (self->pos < 0) {
353 0 6 if (!av_exists(self->tokens, (self->pos-1))) {
370 0 5808 if (!av_exists(self->tokens, pos)) {
464 238 60 while (pos < len) {
488 44 15 while (pos < len) {
513 193 7 while (pos < len) {
516 3 190 if (token->is_match) {
540 0 0 while (pos < len) {
542 0 0 if (token->is_match) {
564 48 0 if (ST_DEBUG) {
0 48 if (ST_DEBUG) {
566 0 0 warn("DESTROY %s [%ld] [0x%lx]\n",
571 48 0 if (tl->ref_cnt < 1) {
724 12450 0 if (ST_DEBUG) {
0 12450 if (ST_DEBUG) {
726 0 0 warn("DESTROY %s [%ld] [0x%lx]\n",
729 12450 0 if (tok->ref_cnt < 1) {
747 1 5 if (is_flagged_utf8) {