blib/lib/Complete/Bash.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 54 | 85 | 63.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
307 | 73 | 25 | 60 | defined $cword && $cword == @words |
309 | 10 | 1 | 12 | defined $cword && $cword == @words - 1 |
316 | 166 | 0 | 15 | $opts and $opts->{'truncate_current_word'} |
0 | 5 | 10 | $opts and $opts->{'truncate_current_word'} and $is_cur_word | |
5 | 1 | 9 | $opts and $opts->{'truncate_current_word'} and $is_cur_word and $pos > $point | |
384 | 0 | 2 | 3 | @$new_words and $#$new_words != $cword |
417 | 0 | 14 | 0 | defined $num_columns and $num_columns > 0 |
583 | 3 | 0 | 1 | ref $words->[0] eq 'HASH' and $words->[0]{'is_partial'} |
line | l | !l | condition |
---|---|---|---|
114 | 1 | 90 | $marker //= '^' |
265 | 0 | 0 | $ENV{'COMP_POINT'} // 0 |
344 | 74 | 13 | $words[$cword] //= '' |
408 | 0 | 15 | $cols // 80 |
410 | 0 | 0 | $ENV{'COLUMNS'} // 80 |
527 | 3 | 12 | $opts //= {} |
531 | 1 | 14 | $opts->{'as'} // 'string' |
534 | 0 | 13 | ($opts->{'esc_mode'} // $ENV{'COMPLETE_BASH_DEFAULT_ESC_MODE'}) // 'default' |
607 | 0 | 14 | $opts->{'workaround_with_wordbreaks'} // 1 |
625 | 0 | 26 | (ref $entry eq 'HASH' ? $entry->{'summary'} : undef) // '' |
640 | 0 | 14 | $ENV{'COMPLETE_BASH_SUMMARY_ALIGN'} // 'left' |
641 | 0 | 14 | $ENV{'COMPLETE_BASH_MAX_COLUMNS'} // 0 |
652 | 0 | 0 | ($opts->{'show_summaries'} // $ENV{'COMPLETE_BASH_SHOW_SUMMARIES'}) // 1 |
702 | 0 | 0 | $ENV{'COMPLETE_BASH_FZF_ITEMS'} // 100 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
55 | 1 | 1 | 4 | !$after_ws || $is_cur_word |
264 | 87 | 0 | 0 | $line //= $ENV{'COMP_LINE'} |
265 | 87 | 0 | 0 | $point //= $ENV{'COMP_POINT'} // 0 |
292 | 23 | 20 | 149 | $2 or $5 |
20 | 138 | 11 | $2 or $5 or defined $8 | |
343 | 74 | 13 | 0 | $cword //= @words |
386 | 2 | 1 | 0 | $cword >= $i or $cword >= @$new_words |
393 | 2 | 1 | 2 | $cword >= $i or $cword >= @$new_words |
534 | 2 | 0 | 13 | $opts->{'esc_mode'} // $ENV{'COMPLETE_BASH_DEFAULT_ESC_MODE'} |
583 | 1 | 4 | 0 | $hcomp->{'is_partial'} or ref $words->[0] eq 'HASH' and $words->[0]{'is_partial'} |
652 | 0 | 0 | 0 | $opts->{'show_summaries'} // $ENV{'COMPLETE_BASH_SHOW_SUMMARIES'} |