line |
true |
false |
branch |
32
|
0 |
4 |
if (length $user) { } |
38
|
4 |
0 |
if @ent |
55
|
2 |
4 |
!$after_ws || $is_cur_word ? : |
|
2 |
4 |
$is_cur_word ? : |
|
8 |
6 |
$4 ? : |
|
6 |
14 |
$1 ? : |
69
|
0 |
1 |
$is_cur_word ? : |
|
2 |
1 |
$1 ? : |
117
|
1 |
90 |
unless $point >= 0 |
267
|
0 |
87 |
unless defined $line |
271
|
0 |
87 |
if $ENV{'COMPLETE_BASH_TRACE'} |
292
|
181 |
11 |
if ($2 or $5 or defined $8) { } |
|
10 |
1 |
elsif ($10) { } |
295
|
157 |
24 |
unless (defined $cword) |
296
|
18 |
119 |
$5 ? : |
|
20 |
137 |
$2 ? : |
298
|
72 |
85 |
if ($point <= $pos_min_ws) { } |
|
2 |
83 |
elsif ($point < $pos) { } |
299
|
60 |
12 |
$after_ws ? : |
301
|
2 |
0 |
$after_ws ? : |
306
|
158 |
23 |
if ($after_ws) { } |
312
|
20 |
138 |
$5 ? : |
|
23 |
158 |
$2 ? : |
316
|
9 |
6 |
if ($opts and $opts->{'truncate_current_word'} and $is_cur_word and $pos > $point) |
322
|
158 |
23 |
if ($after_ws) { } |
327
|
2 |
179 |
if ($add_blank) |
331
|
20 |
138 |
$5 ? : |
|
23 |
158 |
$2 ? : |
|
77 |
104 |
($2 ? $4 : ($5 ? $7 : $9)) ? : |
347
|
0 |
87 |
if $ENV{'COMPLETE_BASH_TRACE'} |
383
|
5 |
10 |
if ($w =~ /\A[\@=:]+\z/) { } |
384
|
3 |
2 |
if (@$new_words and $#$new_words != $cword) { } |
386
|
3 |
0 |
if $cword >= $i or $cword >= @$new_words |
390
|
5 |
0 |
if ($i + 1 < @$words) |
393
|
3 |
2 |
if $cword >= $i or $cword >= @$new_words |
400
|
0 |
3 |
if $ENV{'COMPLETE_BASH_TRACE'} |
406
|
15 |
0 |
if (eval {
do {
require Term::Size;
1
}
}) { } |
417
|
0 |
14 |
if (defined $num_columns and $num_columns > 0) { } |
428
|
0 |
0 |
$n >= 1 ? : |
529
|
2 |
13 |
unless ref $hcomp eq 'HASH' |
550
|
0 |
1 |
if ($msg =~ /\A /) |
552
|
0 |
0 |
unless length $msg |
562
|
1 |
14 |
if (defined $hcomp->{'message'}) |
569
|
5 |
9 |
unless @$words == 1 |
570
|
4 |
5 |
if (defined $path_sep) |
573
|
1 |
3 |
if (ref $words->[0] eq 'HASH') { } |
575
|
1 |
0 |
if $words->[0]{'word'} =~ /$re/ |
577
|
2 |
1 |
if $words->[0] =~ /$re/ |
583
|
2 |
0 |
if ($hcomp->{'is_partial'} or ref $words->[0] eq 'HASH' and $words->[0]{'is_partial'}) |
585
|
1 |
1 |
if (ref $words->[0] eq 'HASH') { } |
607
|
0 |
14 |
unless $opts->{'workaround_with_wordbreaks'} // 1 |
608
|
14 |
0 |
unless defined $opts->{'word'} |
610
|
0 |
0 |
if ($opts->{'word'} =~ s/(.+[\@><=;|&\(:])//) |
613
|
0 |
0 |
if (ref $_ eq 'HASH') { } |
624
|
7 |
19 |
ref $entry eq 'HASH' ? : |
625
|
7 |
19 |
ref $entry eq 'HASH' ? : |
626
|
1 |
25 |
if ($esc_mode eq 'shellvar') { } |
|
1 |
24 |
elsif ($esc_mode eq 'none') { } |
637
|
0 |
26 |
if length $summary |
649
|
4 |
10 |
if @words <= 1 |
650
|
10 |
0 |
unless $has_summary |
652
|
0 |
0 |
unless ($opts->{'show_summaries'} // $ENV{'COMPLETE_BASH_SHOW_SUMMARIES'}) // 1 |
656
|
0 |
0 |
if $max_entry_width < length $words[$_] |
658
|
0 |
0 |
if $max_summ_width < length $summaries[$_] |
662
|
0 |
0 |
if ($summary_align eq 'right') |
665
|
0 |
0 |
if ($max_columns <= 0) |
671
|
0 |
0 |
if $max_summ_width < $new_max_summ_width |
678
|
0 |
0 |
if (length $summary) |
679
|
0 |
0 |
$summary_align eq 'right' ? : |
688
|
14 |
0 |
unless $max_columns > 0 |
691
|
0 |
0 |
if $max_entry_width < length $_ |
693
|
0 |
0 |
if $max_entry_width >= $column_width |
695
|
0 |
0 |
if $column_width > length $_ |
700
|
0 |
14 |
if $ENV{'INSIDE_EMACS'} |
701
|
14 |
0 |
unless $ENV{'COMPLETE_BASH_FZF'} |
703
|
0 |
0 |
unless @words >= $items |
706
|
0 |
0 |
unless (File::Which::which('fzf')) |
717
|
0 |
0 |
unless (my $pid = IPC::Open2::open2(\*CHLD_OUT, \*CHLD_IN, 'fzf', '-m', '-d:', '--with-nth=2..')) |
728
|
0 |
0 |
unless my($index) = /\A([0-9]+)\:/ |
731
|
0 |
0 |
if (@res_words) { } |
741
|
1 |
14 |
if ($as eq 'array') { } |