Branch Coverage

util.c
Criterion Covered Total %
branch 128 134 95.5


line true false branch
18 723287 30748 for (; len--; s++)
19 74270 649017 *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);
84 57773 3597 while (s < end) {
87 57111 662 if ((*t++ = *s++) != '&')
93 656 6 if (s < end && *s == '#') {
111 545 if (s < end && *s == '#') {
97 110 1 if (s < end && (*s == 'x' || *s == 'X')) {
72 38 if (s < end && (*s == 'x' || *s == 'X')) {
3 69 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 277 5 while (s < end && isDIGIT(*s)) {
214 63 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) ||
155 46 1 ((num & 0xFFFE) == 0xFFFE) ||
0 46 ((num & 0xFFFE) == 0xFFFE) ||
171 2074 22 while (s < end && isALNUM(*s))
1545 529 while (s < end && isALNUM(*s))
173 367 184 if (ent_name != s && entity2char) {
366 1 if (ent_name != s && entity2char) {
175 86 280 if ( (svp = hv_fetch(entity2char, ent_name, s - ent_name, 0)) ||
176 16 70 (*s == ';' && (svp = hv_fetch(entity2char, ent_name, s - ent_name + 1, 0)))
13 3 (*s == ';' && (svp = hv_fetch(entity2char, ent_name, s - ent_name + 1, 0)))
182 4 69 else if (expand_prefix) {
184 14 2 while (ss > ent_name) {
186 2 12 if (svp) {
199 390 272 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 196 272 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))