Branch Coverage

blib/lib/Mojolicious/Commands.pm
Criterion Covered Total %
branch 26 28 92.8


line true false branch
18 5 94 if defined $ENV{'PLACK_ENV'}
21 2 92 if defined $ENV{'PATH_INFO'} or defined $ENV{'GATEWAY_INTERFACE'}
31 17 27 if defined $ENV{'MOJO_APP_LOADER'}
34 2 25 if (not $ENV{'MOJO_NO_DETECT'} and my $env = $self->detect)
37 19 8 if ($name and $name =~ /^\w[\w-]+$/u and $name ne 'help' || $args[0]) { }
1 8 elsif ($name and $name ne 'help' and $name ne '--help' and $name ne '-h') { }
40 2 17 if my $help = $name eq "help"
50 0 19 unless $module
55 5 14 if $help
63 1 6 if $ENV{'HARNESS_ACTIVE'}
90 67 2 unless "Mojolicious::Commands"->detect
98 148 5 $module->isa('Mojolicious::Command') ? :
153 52 unless my $e = load_class($module)
99 0 52 $fatal && ref $e ? :