Branch Coverage

blib/lib/ExtUtils/MY_Metafile.pm
Criterion Covered Total %
branch 39 80 48.7


line true false branch
43 8 2 !@_ || grep({/^:all$/;} @_) ? :
49 1 9 unless $sub
53 10 0 if (not grep({/^:no_setup$/;} @_))
67 0 1 if ($mmvernum =~ /^(\d+)\.(\d+)_(\d+)\z/)
72 1 0 if ($mmvernum >= 6.3) { }
89 0 3 if UNIVERSAL::isa($distname, 'HASH')
92 0 3 if $ExtUtils::MY_Metafile::META_PARAMS{$distname}
105 1 1 if ($$this{'NO_META'})
124 0 1 if ($mmvernum =~ /^(\d+)\.(\d+)_(\d+)\z/)
128 1 0 if ($mmvernum >= 6.3) { }
155 2 0 unless ($param)
158 1 1 unless ($param)
164 0 2 if ($ExtUtils::MY_Metafile::META_PARAMS{':all'})
172 0 2 if ($$param{'meta_spec'} and $$param{'meta-spec'})
178 0 2 if (exists $$param{'meta_spec_version'} and exists $$meta_spec{'version'})
198 0 4 $yaml ? :
205 2 0 unless ($no_index and $$no_index{'directory'})
213 2 0 $no_index ? :
215 0 2 if ($$param{'no_index'} and not $ENV{'NO_NO_INDEX_CHECK'})
221 0 0 if ($key eq 'dir' and $$meta_spec{'version'} >= 1.3)
227 0 0 if $key =~ /^(file|dir|directory|package|namespace)$/
231 0 0 if $warned
236 2 0 if ($$this{'ABSTRACT'}) { }
0 0 elsif ($$this{'ABSTRACT_FROM'} and open my $fh, "< $$this{'ABSTRACT_FROM'}") { }
243 0 0 unless /^=head1 NAME$/
247 0 0 if /^=/
248 0 0 unless /^(\Q$pkg\E\s+-+\s+)(.*)/
254 0 0 $abstract ? :
270 8 4 if ($$yaml{$key})
292 0 0 if grep {$key eq $_;} 'no_index', 'requires', 'build_requires', 'meta_spec', 'meta-spec', 'meta_spec_version'
294 0 0 if (exists $$yaml{$key}) { }
309 7 7 unless $check_meta_spec
311 7 0 if $ok ||= $$extras{$key}
315 0 0 if (exists $$param{'license'} and exists $$this{'LICENSE'} and $$param{'license'} ne $$this{'LICENSE'})
323 2 26 if $key eq 'extras'
366 0 12 if (not defined $obj) { }
4 8 elsif (not ref $obj) { }
2 6 elsif (ref $obj eq 'ARRAY') { }
6 0 elsif (ref $obj eq 'HASH') { }
383 4 2 ref $$obj{$k} ? :