| line |
true |
false |
branch |
|
31
|
278 |
0 |
exists $opts->{'preserve_newlines'} ? : |
|
33
|
278 |
0 |
exists $opts->{'space_after_anon_function'} ? : |
|
64
|
278 |
3149 |
if ($token_type eq 'TK_EOF') |
|
68
|
326 |
2823 |
if ($token_type eq 'TK_START_EXPR') { } |
|
|
315 |
2508 |
elsif ($token_type eq 'TK_END_EXPR') { } |
|
|
253 |
2255 |
elsif ($token_type eq 'TK_START_BLOCK') { } |
|
|
251 |
2004 |
elsif ($token_type eq 'TK_END_BLOCK') { } |
|
|
1110 |
894 |
elsif ($token_type eq 'TK_WORD') { } |
|
|
288 |
606 |
elsif ($token_type eq 'TK_SEMICOLON') { } |
|
|
84 |
522 |
elsif ($token_type eq 'TK_STRING') { } |
|
|
441 |
81 |
elsif ($token_type eq 'TK_OPERATOR') { } |
|
|
2 |
79 |
elsif ($token_type eq 'TK_BLOCK_COMMENT') { } |
|
|
34 |
45 |
elsif ($token_type eq 'TK_COMMENT') { } |
|
|
45 |
0 |
elsif ($token_type eq 'TK_UNKNOWN') { } |
|
71
|
76 |
250 |
if ($token_text eq '[') { } |
|
72
|
24 |
52 |
if ($last_type eq 'TK_WORD' or $last_text eq ')') |
|
79
|
30 |
22 |
if ($current_mode eq '[EXPRESSION]' or $current_mode eq '[INDENTED-EXPRESSION]') { } |
|
80
|
16 |
14 |
if ($last_last_text eq ']' and $last_text eq ',') { } |
|
|
10 |
4 |
elsif ($last_text eq '[') { } |
|
99
|
12 |
290 |
if ($last_text eq ';' or $last_type eq 'TK_START_BLOCK') { } |
|
|
20 |
270 |
elsif ($last_type eq 'TK_END_EXPR' or $last_type eq 'TK_START_EXPR') { } |
|
|
6 |
264 |
elsif ($last_type ne 'TK_WORD' and $last_type ne 'TK_OPERATOR') { } |
|
|
16 |
248 |
elsif ($last_word eq 'function') { } |
|
|
67 |
181 |
elsif (grep {$last_word eq $_;} @line_starter) { } |
|
107
|
8 |
8 |
if ($opt_space_after_anon_function) |
|
116
|
26 |
289 |
if ($token_text eq ']' and $current_mode eq '[INDENTED-EXPRESSION]') |
|
123
|
10 |
243 |
if ($last_word eq 'do') { } |
|
128
|
86 |
167 |
if ($last_type ne 'TK_OPERATOR' and $last_type ne 'TK_START_EXPR') |
|
129
|
19 |
67 |
if ($last_type eq 'TK_START_BLOCK') { } |
|
139
|
22 |
229 |
if ($last_type eq 'TK_START_BLOCK') { } |
|
141
|
4 |
18 |
if ($just_added_newline) { } |
|
161
|
10 |
1100 |
if ($do_block_just_closed) |
|
168
|
10 |
1090 |
if ($token_text eq 'case' or $token_text eq 'default') |
|
169
|
2 |
8 |
if ($last_text eq ':') { } |
|
183
|
49 |
1041 |
if ($last_type eq 'TK_END_BLOCK') { } |
|
|
48 |
993 |
elsif ($last_type eq 'TK_SEMICOLON' and $current_mode eq 'BLOCK' || $current_mode eq 'DO_BLOCK') { } |
|
|
6 |
987 |
elsif ($last_type eq 'TK_SEMICOLON' and is_expression($current_mode)) { } |
|
|
7 |
980 |
elsif ($last_type eq 'TK_STRING') { } |
|
|
100 |
880 |
elsif ($last_type eq 'TK_WORD') { } |
|
|
179 |
701 |
elsif ($last_type eq 'TK_START_BLOCK') { } |
|
|
67 |
634 |
elsif ($last_type eq 'TK_END_EXPR') { } |
|
184
|
37 |
12 |
if (not grep({lc $token_text eq $_;} 'else', 'catch', 'finally')) { } |
|
205
|
6 |
1084 |
if ($last_type ne 'TK_END_BLOCK' and grep {lc $token_text eq $_;} 'else', 'catch', 'finally') { } |
|
|
420 |
664 |
elsif (grep {$token_text eq $_;} @line_starter or $prefix eq 'NEWLINE') { } |
|
|
108 |
556 |
elsif ($prefix eq 'SPACE') { } |
|
208
|
4 |
416 |
if ($last_text eq 'else') { } |
|
|
19 |
397 |
elsif ($last_type eq 'TK_START_EXPR' || $last_text eq '=' || $last_text eq ',' and $token_text eq 'function') { } |
|
|
0 |
397 |
elsif ($last_text eq 'return' or $last_text eq 'throw') { } |
|
|
334 |
63 |
elsif ($last_type ne 'TK_END_EXPR') { } |
|
218
|
307 |
27 |
if ($last_type ne 'TK_START_EXPR' || $token_text ne 'var' and $last_text ne ':') |
|
220
|
0 |
307 |
if ($token_text eq 'if' and $last_word eq 'else' and $last_text ne '{') { } |
|
228
|
2 |
61 |
if (grep {$token_text eq $_;} @line_starter and $last_text ne ')') |
|
237
|
34 |
1056 |
if ($token_text eq 'var') |
|
241
|
65 |
1025 |
if ($token_text eq 'if' or $token_text eq 'else') |
|
250
|
10 |
74 |
if ($last_type eq 'TK_START_BLOCK' or $last_type eq 'TK_END_BLOCK' or $last_type eq 'TK_SEMICOLON') { } |
|
|
0 |
74 |
elsif ($last_type eq 'TK_WORD') { } |
|
260
|
52 |
389 |
if ($var_line and $token_text ne ',') |
|
262
|
2 |
50 |
if ($token_text eq ':') |
|
266
|
10 |
68 |
if ($var_line and $token_text eq ',' and is_expression($current_mode)) |
|
270
|
10 |
431 |
if ($token_text eq ':' and $in_case) |
|
276
|
2 |
429 |
if ($token_text eq '::') |
|
282
|
130 |
299 |
if ($token_text eq ',') { } |
|
|
16 |
283 |
elsif ($token_text eq '--' or $token_text eq '++') { } |
|
|
8 |
275 |
elsif ($token_text eq '!' || $token_text eq '+' || $token_text eq '-' and $last_text eq 'return' || $last_text eq 'case') { } |
|
|
6 |
269 |
elsif ($token_text eq '!' || $token_text eq '+' || $token_text eq '-' and $last_type eq 'TK_START_EXPR') { } |
|
|
11 |
258 |
elsif ($last_type eq 'TK_OPERATOR') { } |
|
|
8 |
250 |
elsif ($last_type eq 'TK_END_EXPR') { } |
|
|
0 |
250 |
elsif ($token_text eq '.') { } |
|
|
56 |
194 |
elsif ($token_text eq ':') { } |
|
283
|
28 |
102 |
if ($var_line) { } |
|
|
4 |
98 |
elsif ($last_type eq 'TK_END_BLOCK') { } |
|
284
|
6 |
22 |
if ($var_line_tainted) { } |
|
296
|
18 |
80 |
if ($current_mode eq 'BLOCK') { } |
|
307
|
6 |
10 |
if ($last_text eq ';') { } |
|
308
|
4 |
2 |
if ($current_mode eq 'BLOCK') { } |
|
319
|
4 |
6 |
if ($last_text eq '{') |
|
344
|
18 |
38 |
if (is_ternary_op()) { } |
|
350
|
234 |
65 |
if ($start_delim) |
|
354
|
258 |
41 |
if ($end_delim) |
|
389
|
943 |
20 |
unless defined $ignore_repeated |
|
393
|
29 |
934 |
unless (scalar @output) |
|
397
|
758 |
176 |
if ($output[scalar @output - 1] ne "\n" or not $ignore_repeated) |
|
408
|
979 |
8 |
if scalar @output |
|
409
|
875 |
92 |
if ($last_output ne ' ' and $last_output ne "\n" and $last_output ne $indent_string) |
|
422
|
285 |
0 |
if ($opt_indent_level) |
|
427
|
6 |
0 |
if (scalar @output and $output[scalar @output - 1] eq $indent_string) |
|
438
|
16 |
18 |
$mode eq '[EXPRESSION]' || $mode eq '[INDENTED-EXPRESSION]' || $mode eq '(EXPRESSION)' ? : |
|
441
|
10 |
556 |
$current_mode eq 'DO_BLOCK' ? : |
|
453
|
42 |
532 |
if ($o eq ':') { } |
|
|
32 |
500 |
elsif ($o eq '?') { } |
|
|
42 |
458 |
elsif ($o eq '{') { } |
|
454
|
34 |
8 |
if ($level == 0) |
|
459
|
32 |
0 |
if ($level == 0) |
|
460
|
18 |
14 |
if ($colon_count == 0) { } |
|
468
|
38 |
4 |
if ($level == 0) |
|
474
|
6 |
452 |
if ($o eq '(' or $o eq '[') { } |
|
|
10 |
442 |
elsif ($o eq ')' or $o eq ']' or $o eq '}') { } |
|
487
|
278 |
3159 |
if ($parser_pos >= scalar @input) |
|
495
|
0 |
818 |
if ($parser_pos >= scalar @input) |
|
498
|
336 |
482 |
if ($c eq "\n") |
|
505
|
3155 |
4 |
if ($opt_preserve_newlines) |
|
506
|
10 |
3145 |
if ($n_newlines > 1) |
|
508
|
10 |
10 |
$i == 0 ? : |
|
512
|
315 |
2840 |
$n_newlines == 1 ? : |
|
514
|
1118 |
2041 |
if (grep {$c eq $_;} @wordchar) |
|
515
|
1099 |
19 |
if ($parser_pos < scalar @input) |
|
519
|
11 |
1749 |
if ($parser_pos == scalar @input) |
|
526
|
10 |
0 |
if ($parser_pos != scalar @input and $c =~ /^[0-9]+[Ee]$/ and $input[$parser_pos] eq '-' || $input[$parser_pos] eq '+') |
|
533
|
4 |
1104 |
if ($c eq 'in') |
|
536
|
222 |
36 |
if ($wanted_newline and $last_type ne 'TK_OPERATOR' and not $if_line_flag) |
|
541
|
326 |
1715 |
if ($c eq '(' or $c eq '[') |
|
544
|
315 |
1400 |
if ($c eq ')' or $c eq ']') |
|
547
|
253 |
1147 |
if ($c eq '{') |
|
550
|
251 |
896 |
if ($c eq '}') |
|
553
|
288 |
608 |
if ($c eq ';') |
|
556
|
49 |
559 |
if ($c eq '/') |
|
559
|
2 |
47 |
if ($input[$parser_pos] eq '*') |
|
561
|
2 |
0 |
if ($parser_pos < scalar @input) |
|
565
|
0 |
14 |
if ($parser_pos >= scalar @input) |
|
574
|
21 |
26 |
if ($input[$parser_pos] eq '/') |
|
579
|
1 |
192 |
if ($parser_pos >= scalar @input) |
|
584
|
12 |
9 |
if ($wanted_newline) |
|
590
|
46 |
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')) |
|
598
|
84 |
0 |
if ($parser_pos < scalar @input) |
|
599
|
22 |
62 |
if ($sep eq '/') { } |
|
604
|
90 |
9 |
if (not $esc) { } |
|
605
|
9 |
81 |
$input[$parser_pos] eq '\\' ? : |
|
606
|
5 |
85 |
if ($input[$parser_pos] eq '[') { } |
|
|
4 |
81 |
elsif ($input[$parser_pos] eq ']') { } |
|
615
|
2 |
97 |
if ($parser_pos >= scalar @input) |
|
626
|
86 |
0 |
if (not $esc) { } |
|
627
|
0 |
86 |
$input[$parser_pos] eq '\\' ? : |
|
632
|
0 |
86 |
if ($parser_pos >= scalar @input) |
|
642
|
20 |
62 |
if ($sep eq '/') |
|
652
|
14 |
487 |
if ($c eq '#') |
|
657
|
13 |
1 |
if ($parser_pos < scalar @input and grep {$input[$parser_pos] eq $_;} @digits) |
|
663
|
6 |
7 |
if ($c eq '#') { } |
|
671
|
7 |
13 |
if ($c eq '<' and $parser_pos + 2 < scalar @input and join('', @input[$parser_pos - 1 .. $parser_pos + 2]) eq '') |
|
677
|
6 |
0 |
if ($wanted_newline) |
|
683
|
430 |
45 |
if (grep {$c eq $_;} @punct) |
|
687
|
0 |
46 |
if $parser_pos >= scalar @input |