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 141 28 if ref $self and $self->{'command'}
206 0 80 if $self->should_ignore($plugin)
208 0 80 unless $plugin->isa($want_isa)
211 0 80 unless $plugin->can('command_names')
215 0 92 if exists $plugin{$command}
223 1 27 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 77 7 unless ($$arg{"no_${plugin_name}_plugin"})
319 0 23 unless ref $self
338 22 1 scalar @ARGV ? :
417 30 0 if ($command) { }
426 31 1 if (my $plugin = $self->plugin_for($command)) { }
440 1 0 if defined $command
448 0 16 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 67 unless $command
615 3 64 unless exists $self->_command->{$command}
635 2 30 if ($opt->{'help'})
704 28 0 @help ? :