Branch Coverage

util.c
Criterion Covered Total %
branch 131 142 92.2


line true false branch
17 45029 0 char *s = SvPV_force(sv, len);
18 1158872 45029 for (; len--; s++)
19 120869 1038003 *s = toLOWER(*s);
26 1880 269 while (n--) {
27 1874 6 if (ignore_case) {
28 1868 6 if (toLOWER(*s1) != toLOWER(*s2))
1874 0 if (toLOWER(*s1) != toLOWER(*s2))
1 1873 if (toLOWER(*s1) != toLOWER(*s2))
32 0 6 if (*s1 != *s2)
53 26 0 SvGROW(sv, e_offset + grow + 1);
3 23 SvGROW(sv, e_offset + grow + 1);
68 4414 0 char *s = SvPV_force(sv, len);
84 83074 4414 while (s < end) {
87 82258 816 if ((*t++ = *s++) != '&')
93 804 12 if (s < end && *s == '#') {
109 695 if (s < end && *s == '#') {
97 109 0 if (s < end && (*s == 'x' || *s == 'X')) {
71 38 if (s < end && (*s == 'x' || *s == 'X')) {
3 68 if (s < end && (*s == 'x' || *s == 'X')) {
99 162 12 while (s < end) {
101 25 137 if (!tmp)
104 4 133 if (num > 0x10FFFF) {
114 276 4 while (s < end && isDIGIT(*s)) {
214 62 while (s < end && isDIGIT(*s)) {
116 2 212 if (num > 0x10FFFF) {
125 102 7 if (num && ok) {
96 6 if (num && ok) {
126 56 40 if (!SvUTF8(sv) && num <= 255) {
41 15 if (!SvUTF8(sv) && num <= 255) {
132 55 0 else if (num == 0xFFFE || num == 0xFFFF) {
54 1 else if (num == 0xFFFE || num == 0xFFFF) {
137 1 53 if ((num & 0xFFFFFC00) == 0xDC00) { /* low-surrogate */
138 1 0 if (high_surrogate != 0) {
147 2 51 else if ((num & 0xFFFFFC00) == 0xD800) { /* high-surrogate */
154 8 43 if ((num >= 0xFDD0 && num <= 0xFDEF) ||
4 4 if ((num >= 0xFDD0 && num <= 0xFDEF) ||
46 1 if ((num >= 0xFDD0 && num <= 0xFDEF) ||
155 0 46 ((num & 0xFFFE) == 0xFFFE) ||
171 2254 30 while (s < end && isALNUM(*s))
1577 677 while (s < end && isALNUM(*s))
173 395 312 if (ent_name != s && entity2char) {
394 1 if (ent_name != s && entity2char) {
175 114 280 if ( (svp = hv_fetch(entity2char, ent_name, s - ent_name, 0)) ||
16 98 if ( (svp = hv_fetch(entity2char, ent_name, s - ent_name, 0)) ||
176 13 3 (*s == ';' && (svp = hv_fetch(entity2char, ent_name, s - ent_name + 1, 0)))
179 293 0 repl = SvPV(*svp, repl_len);
182 4 97 else if (expand_prefix) {
184 14 2 while (ss > ent_name) {
186 2 12 if (svp) {
187 2 0 repl = SvPV(*svp, repl_len);
199 390 426 if (repl) {
201 365 25 if (s < end && *s == ';')
245 120 if (s < end && *s == ';')
205 101 289 if (*s != '&') {
209 129 261 if (!SvUTF8(sv) && repl_utf8) {
18 111 if (!SvUTF8(sv) && repl_utf8) {
226 261 111 else if (SvUTF8(sv) && !repl_utf8) {
212 49 else if (SvUTF8(sv) && !repl_utf8) {
231 26 364 if (t + repl_len > s) {
237 751 390 while (repl_len--)
240 212 178 if (repl_allocated)
244 226 426 while (ent_start < s)
258 25 4 while (s < e) {
260 9 16 if (!UTF8_IS_INVARIANT(ch)) {
275 17 1 while (s < e && UTF8_IS_CONTINUATION((U8)*(e - 1)))
5 12 while (s < e && UTF8_IS_CONTINUATION((U8)*(e - 1)))
277 12 1 if (s < e && UTF8_IS_START((U8)*(e - 1)))
6 6 if (s < e && UTF8_IS_START((U8)*(e - 1)))
280 6 7 if (clen && UTF8SKIP(e) == clen) {
2 4 if (clen && UTF8SKIP(e) == clen) {
285 4 9 if (!has_hibit(s, e))