Branch Coverage

blib/lib/MooseX/App.pm
Criterion Covered Total %
branch 16 18 88.8


line true false branch
84 1 69 if not defined $class or &blessed($class)
91 1 68 if $metameta->does_role('MooseX::App::Meta::Role::Class::Command') or not $metameta->does_role('MooseX::App::Meta::Role::Class::Base')
96 68 0 if $ENV{'APP_DEVELOPER'} or $ENV{'HARNESS_ACTIVE'}
100 0 68 if (scalar @args == 1 and ref $args[0] eq 'HASH') { }
67 1 elsif (scalar @args % 2 == 0) { }
112 7 60 if (defined $argv) { }
121 2 65 if (defined $first_argv and lc($first_argv) =~ /^(help|h|\?|usage|-h|--help|-\?|--usage)$/) { }
2 63 elsif (not defined $first_argv or $first_argv =~ /^\s*$/ or $first_argv =~ /^-{1,2}\w/) { }
143 2 61 if (&blessed($return) and $return->isa('MooseX::App::Message::Block')) { }