Branch Coverage

blib/lib/Dist/Metadata.pm
Criterion Covered Total %
branch 29 34 85.2


line true false branch
31 0 48 @_ == 1 ? :
37 0 48 unless first sub { $$self{$_}; } , @formats
47 22 26 if (my $struct = $$self{'struct'}) { }
8 18 elsif (my $dir = $$self{'dir'}) { }
18 0 elsif (my $file = $$self{'file'}) { }
118 66 32 if defined $val
124 0 441 if exists $$self{$field}
149 0 40 unless @files
157 2 73 unless ($meta->should_index_package($pack))
162 60 13 unless ($$self{'include_inner_packages'})
171 9 51 unless $base and $pack =~ /\b\Q$base\E$/
189 12 32 if ($metafile = first(sub { /^META\.json$/; } , @files)) { }
2 30 elsif ($metafile = first(sub { /^META\.ya?ml$/; } , @files)) { }
212 5 39 unless $meta->provides
34 10 if (not keys %{{} unless $meta->provides;} and $$self{'determine_packages'})
237 3 36 @_ ? :
250 3 10 unless ref $checksums eq 'ARRAY'