Branch Coverage

blib/lib/Dist/Zilla/Plugin/PromptIfStale.pm
Criterion Covered Total %
branch 78 104 75.0


line true false branch
104 1 25 if (not $ENV{'PROMPTIFSTALE_REALLY_RUN_TESTS'} and $ENV{'CONTINUOUS_INTEGRATION'} and not $self->run_under_travis)
111 22 3 if ($self->phase eq "build")
114 1 21 $self->check_authordeps ? :
2 20 $self->check_all_plugins ? :
120 20 2 @extra_modules ? :
1 21 $self->check_authordeps ? :
2 20 $self->check_all_plugins ? :
125 21 1 if @modules
134 1 18 if not $ENV{'PROMPTIFSTALE_REALLY_RUN_TESTS'} and $ENV{'CONTINUOUS_INTEGRATION'} and not $self->run_under_travis
136 5 13 if ($self->phase eq "build" and $self->check_all_prereqs)
138 5 0 if (my(@modules) = $self->_modules_prereq)
148 3 1 if ($self->phase eq "release")
151 0 3 $self->check_authordeps ? :
0 3 $self->check_all_plugins ? :
1 2 $self->check_all_prereqs ? :
158 3 0 @extra_modules ? :
0 3 $self->check_authordeps ? :
0 3 $self->check_all_plugins ? :
1 2 $self->check_all_prereqs ? :
165 3 0 if @modules
191 2 196 if $module eq "perl"
192 11 187 if $already_checked{$module}
195 4 183 if (&any(sub {
203 104 79 unless ($path)
214 79 0 if (path($path)->volume eq $root_volume)
217 2 77 unless ($relative_path =~ /^\.\./)
232 38 39 unless (defined $indexed_version)
240 15 24 if (defined $local_version and $local_version < $indexed_version)
245 4 11 if (Module::CoreList::is_core($module) and not $self->_is_duallifed($module)) { }
271 7 22 unless @$errors
273 11 11 @$errors > 1 ? :
278 1 21 if ($ENV{'CONTINUOUS_INTEGRATION'} and not $ENV{'HARNESS_ACTIVE'} or not -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT)))
286 3 18 if ($self->fatal) { }
292 10 8 @$errors > 1 ? :
298 11 10 if not $continue
374 0 6 unless Module::CoreList::is_core($module)
386 0 6 unless $res->{'success'}
391 0 6 if (my $charset = "HTTP::Headers"->new(%{$$res{"headers"};})->content_type_charset)
399 0 6 unless $payload
400 0 6 unless defined $payload->[0]{'distfile'}
412 34 8 $combined || $packages || $self->_has_index_base_url ? :
422 0 8 if $self->_has_index_base_url
423 0 8 unless $module
428 0 8 unless $res->{'success'}
433 0 8 if (my $charset = "HTTP::Headers"->new(%{$$res{"headers"};})->content_type_charset)
441 0 8 unless $payload
442 0 8 unless defined $payload->[0]{'version'}
452 32 2 if $packages
465 0 2 unless $response->{'success'}
480 0 0 unless $module
482 0 0 unless $packages
484 0 0 unless $package