| line |
true |
false |
branch |
|
34
|
280 |
0 |
exists $opts->{'preserve_newlines'} ? : |
|
36
|
280 |
0 |
exists $opts->{'space_after_anon_function'} ? : |
|
67
|
280 |
3194 |
if ($token_type eq 'TK_EOF') |
|
71
|
332 |
2862 |
if ($token_type eq 'TK_START_EXPR') { } |
|
|
319 |
2543 |
elsif ($token_type eq 'TK_END_EXPR') { } |
|
|
254 |
2289 |
elsif ($token_type eq 'TK_START_BLOCK') { } |
|
|
251 |
2038 |
elsif ($token_type eq 'TK_END_BLOCK') { } |
|
|
1127 |
911 |
elsif ($token_type eq 'TK_WORD') { } |
|
|
292 |
619 |
elsif ($token_type eq 'TK_SEMICOLON') { } |
|
|
88 |
531 |
elsif ($token_type eq 'TK_STRING') { } |
|
|
445 |
86 |
elsif ($token_type eq 'TK_OPERATOR') { } |
|
|
2 |
84 |
elsif ($token_type eq 'TK_BLOCK_COMMENT') { } |
|
|
34 |
50 |
elsif ($token_type eq 'TK_COMMENT') { } |
|
|
50 |
0 |
elsif ($token_type eq 'TK_UNKNOWN') { } |
|
74
|
76 |
256 |
if ($token_text eq '[') { } |
|
75
|
24 |
52 |
if ($last_type eq 'TK_WORD' or $last_text eq ')') |
|
82
|
30 |
22 |
if ($current_mode eq '[EXPRESSION]' or $current_mode eq '[INDENTED-EXPRESSION]') { } |
|
83
|
16 |
14 |
if ($last_last_text eq ']' and $last_text eq ',') { } |
|
|
10 |
4 |
elsif ($last_text eq '[') { } |
|
102
|
12 |
296 |
if ($last_text eq ';' or $last_type eq 'TK_START_BLOCK') { } |
|
|
20 |
276 |
elsif ($last_type eq 'TK_END_EXPR' or $last_type eq 'TK_START_EXPR') { } |
|
|
6 |
270 |
elsif ($last_type ne 'TK_WORD' and $last_type ne 'TK_OPERATOR') { } |
|
|
17 |
253 |
elsif ($last_word eq 'function') { } |
|
|
67 |
186 |
elsif (grep {$last_word eq $_;} @line_starter) { } |
|
110
|
8 |
9 |
if ($opt_space_after_anon_function) |
|
119
|
26 |
293 |
if ($token_text eq ']' and $current_mode eq '[INDENTED-EXPRESSION]') |
|
126
|
10 |
244 |
if ($last_word eq 'do') { } |
|
131
|
87 |
167 |
if ($last_type ne 'TK_OPERATOR' and $last_type ne 'TK_START_EXPR') |
|
132
|
19 |
68 |
if ($last_type eq 'TK_START_BLOCK') { } |
|
142
|
22 |
229 |
if ($last_type eq 'TK_START_BLOCK') { } |
|
144
|
4 |
18 |
if ($just_added_newline) { } |
|
164
|
10 |
1117 |
if ($do_block_just_closed) |
|
171
|
10 |
1107 |
if ($token_text eq 'case' or $token_text eq 'default') |
|
172
|
2 |
8 |
if ($last_text eq ':') { } |
|
186
|
49 |
1058 |
if ($last_type eq 'TK_END_BLOCK') { } |
|
|
51 |
1007 |
elsif ($last_type eq 'TK_SEMICOLON' and $current_mode eq 'BLOCK' || $current_mode eq 'DO_BLOCK') { } |
|
|
6 |
1001 |
elsif ($last_type eq 'TK_SEMICOLON' and is_expression($current_mode)) { } |
|
|
7 |
994 |
elsif ($last_type eq 'TK_STRING') { } |
|
|
102 |
892 |
elsif ($last_type eq 'TK_WORD') { } |
|
|
180 |
712 |
elsif ($last_type eq 'TK_START_BLOCK') { } |
|
|
67 |
645 |
elsif ($last_type eq 'TK_END_EXPR') { } |
|
187
|
37 |
12 |
if (not grep({lc $token_text eq $_;} 'else', 'catch', 'finally')) { } |
|
208
|
6 |
1101 |
if ($last_type ne 'TK_END_BLOCK' and grep {lc $token_text eq $_;} 'else', 'catch', 'finally') { } |
|
|
426 |
675 |
elsif (grep {$token_text eq $_;} @line_starter or $prefix eq 'NEWLINE') { } |
|
|
110 |
565 |
elsif ($prefix eq 'SPACE') { } |
|
211
|
4 |
422 |
if ($last_text eq 'else') { } |
|
|
20 |
402 |
elsif ($last_type eq 'TK_START_EXPR' || $last_text eq '=' || $last_text eq ',' and $token_text eq 'function') { } |
|
|
0 |
402 |
elsif ($last_text eq 'return' or $last_text eq 'throw') { } |
|
|
339 |
63 |
elsif ($last_type ne 'TK_END_EXPR') { } |
|
221
|
311 |
28 |
if ($last_type ne 'TK_START_EXPR' || $token_text ne 'var' and $last_text ne ':') |
|
223
|
0 |
311 |
if ($token_text eq 'if' and $last_word eq 'else' and $last_text ne '{') { } |
|
231
|
2 |
61 |
if (grep {$token_text eq $_;} @line_starter and $last_text ne ')') |
|
240
|
36 |
1071 |
if ($token_text eq 'var') |
|
244
|
65 |
1042 |
if ($token_text eq 'if' or $token_text eq 'else') |
|
253
|
10 |
78 |
if ($last_type eq 'TK_START_BLOCK' or $last_type eq 'TK_END_BLOCK' or $last_type eq 'TK_SEMICOLON') { } |
|
|
0 |
78 |
elsif ($last_type eq 'TK_WORD') { } |
|
263
|
54 |
391 |
if ($var_line and $token_text ne ',') |
|
265
|
2 |
52 |
if ($token_text eq ':') |
|
269
|
10 |
70 |
if ($var_line and $token_text eq ',' and is_expression($current_mode)) |
|
273
|
10 |
435 |
if ($token_text eq ':' and $in_case) |
|
279
|
2 |
433 |
if ($token_text eq '::') |
|
285
|
130 |
303 |
if ($token_text eq ',') { } |
|
|
16 |
287 |
elsif ($token_text eq '--' or $token_text eq '++') { } |
|
|
8 |
279 |
elsif ($token_text eq '!' || $token_text eq '+' || $token_text eq '-' and $last_text eq 'return' || $last_text eq 'case') { } |
|
|
6 |
273 |
elsif ($token_text eq '!' || $token_text eq '+' || $token_text eq '-' and $last_type eq 'TK_START_EXPR') { } |
|
|
11 |
262 |
elsif ($last_type eq 'TK_OPERATOR') { } |
|
|
8 |
254 |
elsif ($last_type eq 'TK_END_EXPR') { } |
|
|
0 |
254 |
elsif ($token_text eq '.') { } |
|
|
56 |
198 |
elsif ($token_text eq ':') { } |
|
286
|
28 |
102 |
if ($var_line) { } |
|
|
4 |
98 |
elsif ($last_type eq 'TK_END_BLOCK') { } |
|
287
|
6 |
22 |
if ($var_line_tainted) { } |
|
299
|
18 |
80 |
if ($current_mode eq 'BLOCK') { } |
|
310
|
6 |
10 |
if ($last_text eq ';') { } |
|
311
|
4 |
2 |
if ($current_mode eq 'BLOCK') { } |
|
322
|
4 |
6 |
if ($last_text eq '{') |
|
347
|
18 |
38 |
if (is_ternary_op()) { } |
|
353
|
238 |
65 |
if ($start_delim) |
|
357
|
262 |
41 |
if ($end_delim) |
|
392
|
947 |
20 |
unless defined $ignore_repeated |
|
396
|
29 |
938 |
unless (scalar @output) |
|
400
|
762 |
176 |
if ($output[scalar @output - 1] ne "\n" or not $ignore_repeated) |
|
411
|
990 |
8 |
if scalar @output |
|
412
|
886 |
92 |
if ($last_output ne ' ' and $last_output ne "\n" and $last_output ne $indent_string) |
|
425
|
285 |
0 |
if ($opt_indent_level) |
|
430
|
6 |
0 |
if (scalar @output and $output[scalar @output - 1] eq $indent_string) |
|
441
|
16 |
18 |
$mode eq '[EXPRESSION]' || $mode eq '[INDENTED-EXPRESSION]' || $mode eq '(EXPRESSION)' ? : |
|
444
|
10 |
560 |
$current_mode eq 'DO_BLOCK' ? : |
|
456
|
42 |
532 |
if ($o eq ':') { } |
|
|
32 |
500 |
elsif ($o eq '?') { } |
|
|
42 |
458 |
elsif ($o eq '{') { } |
|
457
|
34 |
8 |
if ($level == 0) |
|
462
|
32 |
0 |
if ($level == 0) |
|
463
|
18 |
14 |
if ($colon_count == 0) { } |
|
471
|
38 |
4 |
if ($level == 0) |
|
477
|
6 |
452 |
if ($o eq '(' or $o eq '[') { } |
|
|
10 |
442 |
elsif ($o eq ')' or $o eq ']' or $o eq '}') { } |
|
490
|
279 |
3205 |
if ($parser_pos >= scalar @input) |
|
498
|
1 |
820 |
if ($parser_pos >= scalar @input) |
|
501
|
336 |
484 |
if ($c eq "\n") |
|
508
|
3200 |
4 |
if ($opt_preserve_newlines) |
|
509
|
10 |
3190 |
if ($n_newlines > 1) |
|
511
|
10 |
10 |
$i == 0 ? : |
|
515
|
315 |
2885 |
$n_newlines == 1 ? : |
|
517
|
1135 |
2069 |
if (grep {$c eq $_;} @wordchar) |
|
518
|
1116 |
19 |
if ($parser_pos < scalar @input) |
|
522
|
11 |
1808 |
if ($parser_pos == scalar @input) |
|
529
|
10 |
0 |
if ($parser_pos != scalar @input and $c =~ /^[0-9]+[Ee]$/ and $input[$parser_pos] eq '-' || $input[$parser_pos] eq '+') |
|
536
|
4 |
1121 |
if ($c eq 'in') |
|
539
|
222 |
36 |
if ($wanted_newline and $last_type ne 'TK_OPERATOR' and not $if_line_flag) |
|
544
|
332 |
1737 |
if ($c eq '(' or $c eq '[') |
|
547
|
319 |
1418 |
if ($c eq ')' or $c eq ']') |
|
550
|
254 |
1164 |
if ($c eq '{') |
|
553
|
251 |
913 |
if ($c eq '}') |
|
556
|
292 |
621 |
if ($c eq ';') |
|
559
|
50 |
571 |
if ($c eq '/') |
|
562
|
2 |
48 |
if ($input[$parser_pos] eq '*') |
|
564
|
2 |
0 |
if ($parser_pos < scalar @input) |
|
568
|
0 |
14 |
if ($parser_pos >= scalar @input) |
|
577
|
21 |
27 |
if ($input[$parser_pos] eq '/') |
|
582
|
1 |
192 |
if ($parser_pos >= scalar @input) |
|
587
|
12 |
9 |
if ($wanted_newline) |
|
593
|
48 |
4 |
if ($c eq q['] or $c eq '"' or $c eq '/' and $last_type eq 'TK_WORD' && $last_text eq 'return' || ($last_type eq 'TK_START_EXPR' || $last_type eq 'TK_START_BLOCK' || $last_type eq 'TK_END_BLOCK' || $last_type eq 'TK_OPERATOR' || $last_type eq 'TK_EOF' || $last_type eq 'TK_SEMICOLON')) |
|
601
|
88 |
0 |
if ($parser_pos < scalar @input) |
|
602
|
23 |
65 |
if ($sep eq '/') { } |
|
607
|
99 |
9 |
if (not $esc) { } |
|
608
|
9 |
90 |
$input[$parser_pos] eq '\\' ? : |
|
609
|
5 |
94 |
if ($input[$parser_pos] eq '[') { } |
|
|
4 |
90 |
elsif ($input[$parser_pos] eq ']') { } |
|
618
|
2 |
106 |
if ($parser_pos >= scalar @input) |
|
629
|
226 |
9 |
if (not $esc) { } |
|
630
|
9 |
217 |
$input[$parser_pos] eq '\\' ? : |
|
635
|
1 |
234 |
if ($parser_pos >= scalar @input) |
|
645
|
21 |
64 |
if ($sep eq '/') |
|
655
|
14 |
496 |
if ($c eq '#') |
|
660
|
13 |
1 |
if ($parser_pos < scalar @input and grep {$input[$parser_pos] eq $_;} @digits) |
|
666
|
6 |
7 |
if ($c eq '#') { } |
|
674
|
7 |
13 |
if ($c eq '<' and $parser_pos + 2 < scalar @input and join('', @input[$parser_pos - 1 .. $parser_pos + 2]) eq '') |
|
680
|
6 |
0 |
if ($wanted_newline) |
|
686
|
434 |
50 |
if (grep {$c eq $_;} @punct) |
|
690
|
0 |
46 |
if $parser_pos >= scalar @input |