Branch Coverage

util.c
Criterion Covered Total %
branch 131 142 92.2


line true false branch
17 47246 0 char *s = SvPV_force(sv, len);
18 1234468 47246 for (; len--; s++)
19 127915 1106553 *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 4577 0 char *s = SvPV_force(sv, len);
84 91385 4577 while (s < end) {
87 90560 825 if ((*t++ = *s++) != '&')
93 814 11 if (s < end && *s == '#') {
111 703 if (s < end && *s == '#') {
97 111 0 if (s < end && (*s == 'x' || *s == 'X')) {
73 38 if (s < end && (*s == 'x' || *s == 'X')) {
3 70 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 278 4 while (s < end && isDIGIT(*s)) {
214 64 while (s < end && isDIGIT(*s)) {
116 2 212 if (num > 0x10FFFF) {
125 102 9 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 2296 29 while (s < end && isALNUM(*s))
1611 685 while (s < end && isALNUM(*s))
173 418 296 if (ent_name != s && entity2char) {
417 1 if (ent_name != s && entity2char) {
175 137 280 if ( (svp = hv_fetch(entity2char, ent_name, s - ent_name, 0)) ||
16 121 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 120 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 435 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 262 435 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))