Branch Coverage

blib/lib/App/git/ship.pm
Criterion Covered Total %
branch 24 80 30.0


line true false branch
23 3 2 @args ? :
34 1 16 if @_ == 1
37 15 1 if (@_ == 2)
38 3 12 if exists $config->{$key}
41 9 3 if $self->can($param_method)
55 0 0 if (my $class = $self->config('class'))
56 0 0 unless eval "require $class;1"
62 0 0 unless eval "require $class;1"
63 0 0 unless $class->can('can_handle_project')
65 0 0 if $class->can_handle_project($file)
84 0 1 unless my $template = $self->_get_template($name)
87 1 0 if $args->{'to_string'}
91 0 0 if (-e $file and not $args->{'force'})
97 0 0 if ($args->{'template_from_home'})
98 0 0 $ENV{'HOME'} ? :
0 0 if $file and -r $file
102 0 0 unless -d $file->dirname
110 0 0 unless my $cmd = $self->config($name)
119 0 0 unless $branch
120 0 0 unless $self->config('next_version')
121 0 0 if $remote
123 0 0 if $remote
129 0 0 if (@_ and ref $self eq 'App::git::ship')
133 0 0 unless -d '.git' and @_
136 0 0 if @_
156 1 0 @args ? :
158 0 1 unless $exit_code
174 2 1 unless open my $CFG, '<:encoding(UTF-8)', $file
179 0 3 if /\A\s*(?:\#|$)/
181 0 3 unless /^\s*([^\=\s][^\=]*?)\s*=\s*(.*)$/
184 0 3 unless length $v
197 0 0 unless open my $GIT, '-|', ('git', 'log'), "--format=$format"
200 0 0 unless $author
215 0 0 unless $ENV{'GIT_SHIP_LICENSE'}
216 1 0 unless $ENV{'GIT_SHIP_PROJECT_NAME'}
222 0 1 unless open my $REPOSITORIES, '-|', ('git', 'remote', '-v')
224 0 0 unless /^origin\s+(\S+).*push/
232 0 1 unless $repository =~ /^http/
245 0 1 unless $str = Mojo::Loader::data_section($package, $name)
250 1 0 $str ? :