Branch Coverage

blib/lib/Shipwright/Script.pm
Criterion Covered Total %
branch 11 18 61.1


line true false branch
40 1 8 unless @ARGV
42 2 7 if ($ARGV[0] =~ /--?h(elp)?/i) { }
0 7 elsif ($ARGV[0] =~ /^(-v|--version|version)$/) { }
54 3 3 unless (ref $cmd eq 'Shipwright::Script::Help')
56 0 1 if not $cmd->repository and $ENV{'SHIPWRIGHT_SHIPYARD'}
58 0 1 if not $cmd->repository and $ENV{'SHIPWRIGHT_REPOSITORY'}
59 2 1 if ($cmd->repository) { }
72 0 0 $action eq 'create' ? :
0 0 unless $backend->check_repository('action', $action, $action eq 'create' ? ('force', $cmd->force) : ())