Condition Coverage

blib/lib/Getopt/Complete/Options.pm
Criterion Covered Total %
condition 4 39 10.2


and 3 conditions

line !l l&&!r l&&r condition
82 1 0 0 $handler and not ref $handler
128 0 0 0 $spec and $spec ne "!"
135 0 1 0 $spec =~ /[\!\+]/ and defined $completion_handlers->{$key}
139 1 0 0 ref $completion_handlers->{$key} eq "ARRAY" and @{$completion_handlers->{$key};} == 0
203 0 0 0 @sub_cmds and my $delegate = $self->completion_handler(">" . $sub_cmds[0])
226 0 0 0 @left && $left[-1] =~ /^-{1,2}/ && !($left[-1] =~ /^-{1,2}[\w\-]+\=/)
234 0 0 0 $spec and $spec =~ /[\!\+]/
243 0 0 0 $spec and $spec =~ /[\!\+]/
255 0 0 0 substr($current, -1, 1) eq $quote and not substr($current, -2, 1) eq "\\"

or 2 conditions

line l !l condition
117 0 0 $self->{'command'} || ''
131 0 0 $spec ||= "!"
133 1 0 $spec ||= "=s"

or 3 conditions

line l !l&&r !l&&!r condition
107 0 0 0 ref $handler eq "CODE" or ref $handler eq "SCALAR"
218 0 0 0 substr($left, -1) ne " " or substr($left, -2) eq "\\ "