Branch Coverage

include/eshu.h
Criterion Covered Total %
branch 29 36 80.5


line true false branch
98 8700 13 if (cfg->range_start == 0) return 1; /* no range = all lines */
99 10 3 return line_num >= cfg->range_start && line_num <= cfg->range_end;
5 5 return line_num >= cfg->range_start && line_num <= cfg->range_end;
113 505 0 b->cap = initial > 0 ? initial : 4096;
119 20 29200 while (b->len + extra > b->cap) {
137 122 0 if (b->data) free(b->data);
150 251226 0 while (*p && *p != '\n')
240989 10237 while (*p && *p != '\n')
157 4398 25980 while (*p == ' ' || *p == '\t')
13183 12797 while (*p == ' ' || *p == '\t')
168 8107 0 while (len > 0 && (content[len - 1] == ' ' || content[len - 1] == '\t'))
21 8086 while (len > 0 && (content[len - 1] == ' ' || content[len - 1] == '\t'))
0 8086 while (len > 0 && (content[len - 1] == ' ' || content[len - 1] == '\t'))
176 8086 0 if (n > 0)
187 0 7116 if (depth < 0) depth = 0;
188 7098 18 if (cfg->indent_char == '\t') {
189 9543 7098 for (i = 0; i < depth; i++)
193 24 18 for (i = 0; i < n; i++)