| line |
true |
false |
branch |
|
17
|
72 |
240 |
if (items > 1 && (items - 1) % 2 == 0) { |
|
|
72 |
0 |
if (items > 1 && (items - 1) % 2 == 0) { |
|
18
|
98 |
72 |
for (i = 1; i < items; i += 2) { |
|
20
|
19 |
79 |
if (strcmp(key, "pretty") == 0) { |
|
22
|
48 |
31 |
} else if (strcmp(key, "dedupe") == 0) { |
|
24
|
4 |
27 |
} else if (strcmp(key, "indent") == 0) { |
|
25
|
4 |
0 |
if (ctx->indent) free(ctx->indent); |
|
27
|
13 |
14 |
} else if (strcmp(key, "shorthand_hex") == 0) { |
|
29
|
14 |
0 |
} else if (strcmp(key, "sort_props") == 0) { |
|
102
|
3 |
2 |
if (items > 1) |
|
104
|
0 |
5 |
RETVAL = self->pretty; |
|
112
|
3 |
2 |
if (items > 1) |
|
114
|
0 |
5 |
RETVAL = self->dedupe; |
|
140
|
0 |
46 |
RETVAL = self->ast->count; |
|
149
|
36 |
1 |
if (index < 0 || index >= self->ast->count) |
|
|
1 |
35 |
if (index < 0 || index >= self->ast->count) |
|
178
|
1 |
10 |
if (!rule) |
|
189
|
1 |
132 |
if (!rule) |
|
192
|
1 |
131 |
if (!val) |
|
205
|
1 |
3 |
if (!rule) |
|
218
|
1 |
3 |
if (!rule) |
|
233
|
3 |
2 |
if (!a || !b) |
|
|
1 |
2 |
if (!a || !b) |
|
248
|
2 |
2 |
if (!dst || !src) |
|
|
1 |
1 |
if (!dst || !src) |