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 153 29 if ref $self and $self->{'command'}
206 0 81 if $self->should_ignore($plugin)
208 0 81 unless $plugin->isa($want_isa)
211 0 81 unless $plugin->can("command_names")
215 0 93 if exists $plugin{$command}
223 1 28 if ($self->allow_any_unambiguous_abbrev)
241 19 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 79 8 unless ($$arg{"no_${plugin_name}_plugin"})
319 0 25 unless ref $self
338 24 1 scalar @ARGV ? :
417 31 0 if ($command) { }
426 32 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 73 unless $command
615 3 70 unless exists $self->_command->{$command}
635 2 31 if ($opt->{'help'})
708 30 0 @help ? :