Branch Coverage

blib/lib/Dist/Zilla/Plugin/OnlyCorePrereqs.pm
Criterion Covered Total %
branch 25 30 83.3


line true false branch
130 0 20 unless exists $Module::CoreList::version{$]}
142 3 23 if $prereq eq 'perl'
144 1 22 if ($self->skip_module(sub { $_ eq $prereq; } ))
152 1 21 if ($self->disallowed(sub { $_ eq $prereq; } ))
160 1 20 unless (defined $added_in)
166 2 2 if ('version'->parse($added_in) > $self->starting_version and $self->check_dual_life_versions || !$self->_is_dual($prereq))
173 15 3 if ($self->check_dual_life_versions or not $self->_is_dual($prereq))
179 4 11 if ($has < $wanted)
186 13 1 unless ($self->deprecated_ok)
189 1 12 if ($deprecated_in)
213 9 11 if @disallowed or @non_core or @not_yet or @insufficient_version or @deprecated
258 0 2 unless $$res{'success'}
263 0 2 if (my $charset = 'HTTP::Headers'->new(%{$$res{'headers'};})->content_type_charset)
271 0 2 unless $payload
272 0 2 unless defined $$payload[0]{'distfile'}