Branch Coverage

inc/Module/Install.pm
Criterion Covered Total %
branch 29 64 45.3


line true false branch
84 13 0 if (my $code = $$sym{$pwd})
86 0 13 unless $cwd eq $pwd
88 0 13 unless $$sym =~ /([^:]+)$/
90 13 0 unless uc $1 eq $1
99 0 1 unless (-f $$self{'file'})
119 1 0 unless ($$self{'extensions'})
126 0 1 unless (@exts)
134 42 129 unless $obj->can($method)
135 2 127 if $method =~ /^_/
136 11 116 if $method eq uc $method
155 0 1 unless (Cwd::abs_path(Cwd::cwd()) eq $base_path)
159 0 1 if $args{'_self'}
163 0 1 $^O eq 'VMS' ? :
169 1 0 unless ($args{'path'})
180 0 13 unless my $obj = $self->load($method)
188 0 13 unless $$self{'extensions'}
193 13 82 if $obj->can($method)
196 0 0 unless my $admin = $$self{'admin'}
210 0 1 unless (grep {lc $_ eq lc $$self{'prefix'};} @INC)
216 0 10 if $$self{'pathnames'}{$pkg}
220 0 10 unless ($new)
221 0 0 if $@
237 1 10 unless $file =~ m[^\Q$path\E/(.+)\.pm\Z]is
239 0 10 if lc $subpath eq lc $$self{'dispatch'}
248 0 10 if ($subpath eq lc $subpath or $subpath eq uc $subpath)
249 0 0 unless open PKGFILE, "<$subpath.pm"
252 0 0 if /^=\w/
253 0 0 if /^=cut/
254 0 0 if $in_pod or /^=cut/
255 0 0 if /^\s*#/
256 0 0 if (/^\s*package\s+($pkg)\s*;/i)
265 1 0 if -d $path