Branch Coverage

blib/lib/Dist/Zilla/Plugin/MetaProvides/Package.pm
Criterion Covered Total %
branch 34 38 89.4


line true false branch
78 1 24 unless ($file->$Dist::Zilla::Plugin::MetaProvides::Package::_does('Dist::Zilla::Role::File'))
84 0 24 unless $meta
90 6 290 if ($_[1]->$Dist::Zilla::Plugin::MetaProvides::Package::_isa('version'))
105 24 29 if ($self->_blacklist_contains($namespace))
113 10 19 unless ($self->_can_index($namespace))
124 3 16 ref $v ? :
143 29 19 if $seen->{$namespace}
148 8 16 unless (@out)
149 2 6 if (not keys %{$seen_blacklisted;}) { }
178 6 23 if $self->include_underscores
180 0 23 if $namespace =~ qr/\A_/sx
181 10 13 if $namespace =~ qr/::_/sx
190 2 22 unless ref $packages
254 0 6 if (my $plugin = $self->zilla->plugin_named($name))
267 21 21 if m[\Alib/] and /\.(pm)$/
268 0 21 if $_ eq $self->zilla->main_module
279 4 6 if ($self->has_finder)
283 1 3 unless ($plugin)
287 1 2 unless ($plugin->does('Dist::Zilla::Role::FileFinder'))