Branch Coverage

blib/lib/App/Cmd.pm
Criterion Covered Total %
branch 35 52 67.3


line true false branch
32 0 5 if $into->isa("App::Cmd::Command")
55 0 1 if $into->isa("App::Cmd::Command")
187 167 31 if ref $self and $self->{'command'}
206 0 105 if $self->should_ignore($plugin)
208 0 105 unless $plugin->isa($want_isa)
211 0 105 unless $plugin->can("command_names")
215 0 119 if exists $plugin{$command}
223 1 30 if ($self->allow_any_unambiguous_abbrev)
241 21 11 if $plugins_for{$class}
260 0 5 unless grep {$_ eq $cmd_class;} @{$plugins_for{$class}}
269 0 0 if $_ eq $cmd_class
278 1 0 unless grep {$_ eq $cmd_class;} @{$ignored_for{$class}}
290 85 8 unless ($$arg{"no_${plugin_name}_plugin"})
319 0 27 unless ref $self
338 26 1 scalar @ARGV ? :
417 34 0 if ($command) { }
426 35 1 if (my $plugin = $self->plugin_for($command)) { }
440 1 0 if defined $command
448 0 17 if our $_bad
503 3 7 $dcb eq 'App::Cmd::Command' ? :
509 8 2 if (ref $self) { }
544 2 0 if ref $self
614 0 80 unless $command
615 3 77 unless exists $self->_command->{$command}
635 2 34 if ($opt->{'help'})
708 32 0 @help ? :