Branch Coverage

lib/HTML/Escape.xs
Criterion Covered Total %
branch 26 40 65.0


line true false branch
43 11 0 while(cur != end) {
45 4 7 if(unsafe[c]) {
56 5 0 const char* cur = SvPV_const(src, len);
61 5 0 (void)SvGROW(dest, dest_cur + ( len * ( sizeof(""") - 1) ) + 1);
3 2 (void)SvGROW(dest, dest_cur + ( len * ( sizeof(""") - 1) ) + 1);
62 5 0 if(!SvUTF8(dest) && SvUTF8(src)) {
0 5 if(!SvUTF8(dest) && SvUTF8(src)) {
73 7 5 while(cur != end) {
78 7 0 if(cur != end) {
80 0 7 if(c == '&') {
83 1 6 else if(c == '<') {
86 2 4 else if(c == '>') {
89 0 4 else if(c == '"') {
92 1 3 else if(c == '`') {
95 1 2 else if(c == '{') {
98 1 1 else if(c == '}') {
117 0 5 SvGETMAGIC(str);
118 0 5 if(!( !SvOK(str) )) {
0 0 if(!( !SvOK(str) )) {
0 0 if(!( !SvOK(str) )) {