Branch Coverage

blib/lib/Test/Distribution.pm
Criterion Covered Total %
branch 16 56 28.5


line true false branch
40 5 8 if our $been_here++
46 2 6 unless ref $args{'only'} eq 'ARRAY'
49 0 8 unless ref $args{'not'} eq 'ARRAY'
67 8 0 -d $args{'dir'} ? :
89 4 4 if $perform{'versions'}
94 0 24 unless grep /^$type$/, our @supported_types
110 24 40 if $perform{$type}
142 0 5 if $@
162 0 3 if $@
190 0 4 if ($$self{'distversion'}) { }
210 4 0 unless (defined $version)
218 0 0 if ($$self{'distversion'})
266 3 0 if -f 'Build.PL'
267 0 0 if $@
268 0 0 unless exists $Module::CoreList::version{$]}
277 0 0 unless open $fh, $_
284 0 0 unless open $fh, $_
286 0 0 if /^use \s+ ([^\W\d][\w:]+) (\s*\n | .*;)/x
287 0 0 if /^package \s+ ([\w:]+) \s* ;/x
299 0 0 unless open my $fh, 'Makefile.PL'
301 0 0 unless close $fh
307 0 0 if $@
310 0 0 unless ok keys %use == 0, 'All non-core use()d modules listed in PREREQ_PM'
320 0 0 @modules > 1 ? :
339 0 0 -f 'SIGNATURE' ? :
344 0 0 unless $self->num_tests
349 0 0 if ($@) { }
354 0 0 if $ret eq Module::Signature::CANNOT_VERIFY()