Branch Coverage

blib/lib/CPAN/ParseDistribution.pm
Criterion Covered Total %
branch 65 88 73.8


line true false branch
70 0 2580 unless $file
71 46 2534 unless -e $file
72 46 2488 if $file =~ /\.ppm\.(tar(\.gz|\.bz2)?|tbz|tgz|zip)$/i
74 46 2442 unless $file =~ /\.(tar(\.gz|\.bz2)?|tbz|tgz|zip)$/i
82 230 2212 if $dist =~ /^(perl|ponie|kurila|parrot|Perl6-Pugs|v6-pugs)$/
101 122 1874 if ($file =~ /\.zip$/i) { }
1622 252 elsif ($file =~ /\.(tar(\.gz)?|tgz)$/i) { }
103 122 0 if $zip
105 393 1229 if ($extra_params{'use_tar'}) { }
108 358 35 $file =~ /gz$/ ? :
114 1229 0 if $tar
117 82 170 if ($extra_params{'use_tar'}) { }
121 0 170 unless open my $fh, '-|', ('bzip2', '-dc'), $file
123 170 0 if $tar
136 0 4098 unless open my $fh, $parsefile
139 554 85530 /^=cut/ ? :
3074 86084 /^=(?!cut)/ ? :
140 33964 55194 if $inpod or /^\s*#/
142 51190 4004 unless /([\$*])(([\w\:\']*)\bVERSION)\b.*\=/
149 4004 0 $] >= 5.01 ? :
190 80 3836 if ($result->{'error'} and $result->{'error'} =~ /trapped by operation mask|safe compartment timed out/i) { }
0 3836 elsif ($result->{'error'}) { }
205 3836 174 exists $result->{'result'} ? :
209 4004 0 if (os_is('Unix')) { }
0 0 elsif (os_is('MicrosoftWindows')) { }
232 216 110 if $self->distversion =~ /(_|-TRIAL$)/
248 1996 108 unless (keys %{$$self{'modules'};})
257 1540 456 if ($meta and -e $meta)
259 1540 0 if (not $@ and UNIVERSAL::isa($yaml, 'HASH') and exists $yaml->{'no_index'} and UNIVERSAL::isa($yaml->{'no_index'}, 'HASH'))
264 1348 192 if (exists $yaml->{'no_index'}{'directory'})
265 1242 106 if (eval { do { @{$yaml->{'no_index'}{'directory'};} } }) { }
106 0 elsif (not ref $yaml->{'no_index'}{'directory'}) { }
273 242 1298 if (exists $yaml->{'no_index'}{'file'})
274 242 0 if (eval { do { @{$yaml->{'no_index'}{'file'};} } }) { }
0 0 elsif (not ref $yaml->{'no_index'}{'file'}) { }
281 288 1252 if (exists $yaml->{'no_index'}{'package'})
282 288 0 if (eval { do { @{$yaml->{'no_index'}{'package'};} } }) { }
0 0 elsif (not ref $yaml->{'no_index'}{'package'}) { }
289 94 1446 if (exists $yaml->{'no_index'}{'namespace'})
290 94 0 if (eval { do { @{$yaml->{'no_index'}{'namespace'};} } }) { }
0 0 elsif (not ref $yaml->{'no_index'}{'namespace'}) { }
308 0 4010 unless open my $fh, $PM
313 3952 58 if ($PM =~ /\bpackage[ \t]+([\w\:\']+)\s*($|[};])/)
317 3614 338 unless exists $ignorepackages{$module} or grep {$module =~ /$_::/;} keys %ignorenamespaces