Condition Coverage

blib/lib/Complete/Bash.pm
Criterion Covered Total %
condition 54 89 60.6


and 3 conditions

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
427 0 14 0 defined $num_columns and $num_columns > 0
593 3 0 1 ref $words->[0] eq "HASH" and $words->[0]{'is_partial'}

or 2 conditions

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
418 0 0 $lines // 25
420 0 0 $ENV{'LINES'} // 25
537 3 12 $opts //= {}
541 1 14 $opts->{'as'} // "string"
544 0 13 ($opts->{'esc_mode'} // $ENV{'COMPLETE_BASH_DEFAULT_ESC_MODE'}) // "default"
617 0 14 $opts->{'workaround_with_wordbreaks'} // 1
635 0 26 (ref $entry eq "HASH" ? $entry->{'summary'} : undef) // ""
650 0 14 $ENV{'COMPLETE_BASH_SUMMARY_ALIGN'} // "left"
651 0 14 $ENV{'COMPLETE_BASH_MAX_COLUMNS'} // 0
662 0 0 ($opts->{'show_summaries'} // $ENV{'COMPLETE_BASH_SHOW_SUMMARIES'}) // 1
712 0 0 $ENV{'COMPLETE_BASH_FZF_ITEMS'} // 100

or 3 conditions

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
544 2 0 13 $opts->{'esc_mode'} // $ENV{'COMPLETE_BASH_DEFAULT_ESC_MODE'}
593 1 4 0 $hcomp->{'is_partial'} or ref $words->[0] eq "HASH" and $words->[0]{'is_partial'}
662 0 0 0 $opts->{'show_summaries'} // $ENV{'COMPLETE_BASH_SHOW_SUMMARIES'}