Condition Coverage

blib/lib/Dist/Metadata.pm
Criterion Covered Total %
condition 22 32 68.7


and 3 conditions

line !l l&&!r l&&r condition
171 2 58 0 $base and $pack =~ /\b\Q$base\E$/
212 5 5 34 not keys %{{} unless $meta->provides;} and $$self{'determine_packages'}

or 2 conditions

line l !l condition
73 50 0 $self->VERSION || 0
203 40 4 $$meta{'no_index'} ||= {}
40 4 ($$meta{'no_index'} ||= {})->{'directory'} ||= []
249 10 3 $$opts{'checksum'} || $$opts{'digest'} || []

or 3 conditions

line l !l&&r !l&&!r condition
45 244 48 0 $$self{'dist'} ||= do { my $dist; if (my $struct = $$self{'struct'}) { require Dist::Metadata::Struct; $dist = 'Dist::Metadata::Struct'->new(%$struct); } elsif (my $dir = $$self{'dir'}) { require Dist::Metadata::Dir; $dist = 'Dist::Metadata::Dir'->new('dir', $dir); } elsif (my $file = $$self{'file'}) { require Dist::Metadata::Archive; $dist = 'Dist::Metadata::Archive'->new('file', $file); } else { croak('No dist format parameters found!'); } ; $dist }
73 50 0 0 ref $self || $self
136 35 5 0 $meta ||= $self->meta_from_struct($self->determine_metadata)
225 108 39 0 $$self{'meta'} ||= $self->load_meta
246 1 12 0 $$opts{'provides'} || $self->provides
258 0 22 0 $$digest_cache{$$data{'file'}}{$checksum} ||= $self->dist->file_checksum($$data{'file'}, $checksum)