Branch Coverage

blib/lib/Module/Install/Package.pm
Criterion Covered Total %
branch 1 84 1.1


line true false branch
36 0 0 @_ > 1 ? :
65 0 0 if ($module_install_plugin->is_admin) { }
72 0 0 if ref $module_package_dist_plugin
103 1 0 unless $module_install_plugin
104 0 0 if $Module::Package::ERROR
110 0 0 $module_package_plugin ? :
112 0 0 if ref $module_package_dist_plugin
121 0 0 if $version < 0.1800001
122 0 0 unless $version == $Module::Install::Package::VERSION
140 0 0 if ($spec =~ s/\s+(\S+)\s*//)
144 0 0 $spec =~ /^(\S*\w):(\w+)$/ ? :
0 0 $spec =~ /^:(\w+)$/ ? :
0 0 $spec =~ /^\w(\w|::)*$/ ? :
0 0 !$spec ? :
152 0 0 unless eval "use $module $version (); 1"
162 0 0 if ref $r
196 0 0 if $all_from++
197 0 0 if $self->name
198 0 0 unless my $file = shift() || "$main::PM"
205 0 0 if $requires_from++
206 0 0 unless $self->package_options->{'requires_from'}
207 0 0 unless my $file = shift() || "$main::PM"
214 0 0 if $install_bin++
215 0 0 unless $self->package_options->{'install_bin'}
216 0 0 unless -d 'bin'
219 0 0 unless -f $_
228 0 0 if $install_share++
229 0 0 unless $self->package_options->{'install_share'}
230 0 0 unless -d 'share'
237 0 0 if $WriteAll++
250 0 0 @_ > 1 ? :
273 0 0 unless @{$_[0];}
280 0 0 if (-e 'META.yml') { }
281 0 0 unless open META, 'META.yml'
284 0 0 unless $meta =~ /^module_name: (\S+)$/m
294 0 0 unless /\.pm$/
301 0 0 unless @array
302 0 0 unless ($pm) = sort(@{$array[0];})
306 0 0 if -e $pmc
313 0 0 if @{$_[0];}
314 0 0 unless (my $pod = "$main::PM") =~ s/\.pm/.pod/
316 0 0 -e $pod ? :