Branch Coverage

lib/Parse/LocalDistribution.pm
Criterion Covered Total %
branch 47 100 47.0


line true false branch
16 24 10 if (ref $root eq ref {} and not $opts)
27 28 6 if ($root) { }
0 6 elsif (not $self->{'DISTROOT'}) { }
47 0 34 unless (@manifind)
61 0 0 length $a < length $b ? :
63 0 0 length $a < length $b ? :
68 0 8 if ($json and $yaml and length $json > length($yaml) + 1)
72 26 8 unless ($json or $yaml)
81 8 0 if (-s $metafile_abs) { }
86 0 8 unless ($ok)
106 0 34 if (my $version_from_meta_ok = $self->_version_from_meta_ok)
109 0 0 if ($provides and 'HASH' eq ref $provides)
113 34 0 if (not $indexing_method and @$pmfiles)
117 34 0 if ($indexing_method)
133 0 34 if ($pmfile_abs =~ m[/blib/])
143 27 0 if (not defined $result{$package} or $info->{$package}{'simile'})
147 0 27 if ($errs)
150 0 0 $_ =~ /infile|warning/ ? :
165 0 0 if ref $v ne ref {}
166 0 0 if not defined $v->{'file'} or $v->{'file'} eq ''
169 0 0 if (@stat) { }
174 0 0 unless (defined $v->{'version'})
183 0 0 unless $self->_examine_pkg({'package', $k, 'pp', $v})
199 0 0 if (not $package =~ /^\w[\w\:\']*\w?\z/ && $package =~ /\w\z/ or $package =~ /:/ and not $package =~ /::/ or $package =~ /\w:\w/ or $package =~ /:::/)
213 0 0 if ($self->{'USERID'} and $self->{'PERMISSIONS'} and not $self->_perm_check($package))
226 0 0 if (not defined $_ or /^\s*$/ or /\s/)
230 0 0 unless $self->_version_ok($pp)
237 0 0 if length($pp->{'version'} || 0) > 16
248 80 38 unless $mf =~ /\.pm(?:\.PL)?$/i
257 4 34 if $inmf =~ m[^(?:x?t|inc|local|perl5|fatlib)/]
259 8 26 if ($self->{'META_CONTENT'}) { }
262 8 0 if (ref $no_index eq 'HASH') { }
268 8 8 unless my $v = $no_index->{$k}
270 8 0 if (ref $v eq 'ARRAY') { }
274 0 16 if ($inmf =~ /^$ve$rest/) { }
283 0 0 if ($inmf =~ /^$v$rest/) { }
319 8 26 if @files
326 56 42 if -d $_
327 0 42 if $name =~ m[/(?:\.(?:svn|git)|blib)/]
330 4 38 if $skip and &$skip($rel)
346 26 8 unless -f $manifile
349 0 8 unless open my $fh, '<', $manifile
351 0 80 if /^\s*#/
354 0 80 if (($file, $comment) = /^'(\\[\\']|.+)+'\s*(.*)/) { }
360 0 80 unless $file
371 22 4 unless -f $skipfile
374 0 4 unless open my $fh, '<', $skipfile
380 0 4 if (defined $1)
384 0 4 unless defined $filename and $filename
387 0 4 unless @skip