| line |
true |
false |
branch |
|
14
|
0 |
177 |
if (!buf) LITAVIS_FATAL("out of memory"); |
|
16
|
0 |
177 |
if (!buf->data) LITAVIS_FATAL("out of memory"); |
|
24
|
0 |
4194 |
if (buf->length + extra + 1 > buf->capacity) { |
|
27
|
0 |
0 |
if (!nd) LITAVIS_FATAL("out of memory"); |
|
34
|
1 |
1933 |
if (len <= 0) return; |
|
59
|
0 |
0 |
if (!buf) return; |
|
60
|
0 |
0 |
if (buf->data) free(buf->data); |
|
77
|
630 |
0 |
if (shorthand && value[0] == '#' && len == 7) { |
|
|
41 |
589 |
if (shorthand && value[0] == '#' && len == 7) { |
|
|
30 |
11 |
if (shorthand && value[0] == '#' && len == 7) { |
|
78
|
15 |
15 |
if (value[1] == value[2] && value[3] == value[4] && value[5] == value[6]) { |
|
|
14 |
1 |
if (value[1] == value[2] && value[3] == value[4] && value[5] == value[6]) { |
|
|
13 |
1 |
if (value[1] == value[2] && value[3] == value[4] && value[5] == value[6]) { |
|
101
|
12 |
4 |
if (count > 1) |
|
109
|
48 |
96 |
for (i = 0; i < depth; i++) |
|
116
|
1014 |
22 |
if (!rule->is_at_rule) return 0; |
|
117
|
2 |
20 |
if (strncmp(rule->selector, "@charset", 8) == 0) return 1; |
|
118
|
4 |
16 |
if (strncmp(rule->selector, "@import", 7) == 0) return 1; |
|
134
|
16 |
501 |
if (config->sort_props) |
|
137
|
631 |
517 |
for (i = 0; i < rule->prop_count; i++) { |
|
138
|
42 |
589 |
if (config->pretty) |
|
143
|
42 |
589 |
if (config->pretty) |
|
148
|
630 |
1 |
if (config->shorthand_hex) |
|
156
|
42 |
589 |
if (config->pretty) |
|
166
|
0 |
517 |
if (rule->prop_count == 0 && rule->child_count == 0) return; |
|
|
0 |
0 |
if (rule->prop_count == 0 && rule->child_count == 0) return; |
|
168
|
25 |
492 |
if (config->pretty) |
|
173
|
25 |
492 |
if (config->pretty) { |
|
181
|
25 |
492 |
if (config->pretty) { |
|
193
|
2 |
9 |
if (config->pretty) |
|
199
|
8 |
3 |
if (rule->child_count > 0) { |
|
201
|
2 |
6 |
if (config->pretty) { |
|
209
|
10 |
8 |
for (i = 0; i < rule->child_count; i++) { |
|
210
|
0 |
10 |
if (rule->children[i].is_at_rule) |
|
216
|
2 |
6 |
if (config->pretty) { |
|
222
|
0 |
3 |
} else if (rule->prop_count > 0) { |
|
224
|
0 |
0 |
if (config->pretty) { |
|
232
|
0 |
0 |
if (config->pretty) { |
|
241
|
0 |
3 |
if (config->pretty) |
|
252
|
518 |
177 |
for (i = 0; i < ast->count; i++) { |
|
253
|
3 |
515 |
if (litavis_is_emit_first(&ast->rules[i])) { |
|
259
|
518 |
177 |
for (i = 0; i < ast->count; i++) { |
|
260
|
3 |
515 |
if (litavis_is_emit_first(&ast->rules[i])) continue; |
|
262
|
8 |
507 |
if (ast->rules[i].is_at_rule) { |
|
285
|
143 |
34 |
if (ctx->dedupe > 0) |
|
291
|
177 |
0 |
config.indent = ctx->indent ? ctx->indent : " "; |
|
313
|
0 |
2 |
if (!f) { |