Branch Coverage

include/eshu.h
Criterion Covered Total %
branch 27 36 75.0


line true false branch
89 7167 9 if (cfg->range_start == 0) return 1; /* no range = all lines */
90 7 2 return line_num >= cfg->range_start && line_num <= cfg->range_end;
3 4 return line_num >= cfg->range_start && line_num <= cfg->range_end;
104 271 0 b->cap = initial > 0 ? initial : 4096;
110 0 23110 while (b->len + extra > b->cap) {
128 0 0 if (b->data) free(b->data);
141 184730 0 while (*p && *p != '\n')
177195 7535 while (*p && *p != '\n')
148 3228 19250 while (*p == ' ' || *p == '\t')
10141 9109 while (*p == ' ' || *p == '\t')
159 6641 0 while (len > 0 && (content[len - 1] == ' ' || content[len - 1] == '\t'))
21 6620 while (len > 0 && (content[len - 1] == ' ' || content[len - 1] == '\t'))
0 6620 while (len > 0 && (content[len - 1] == ' ' || content[len - 1] == '\t'))
167 6620 0 if (n > 0)
178 0 5995 if (depth < 0) depth = 0;
179 5980 15 if (cfg->indent_char == '\t') {
180 8724 5980 for (i = 0; i < depth; i++)
184 20 15 for (i = 0; i < n; i++)