Branch Coverage

blib/lib/CPAN/Unwind.pm
Criterion Covered Total %
branch 33 58 56.9


line true false branch
41 2 0 if (exists $options{'cache'}) { }
42 0 2 unless $options{'cache'}
72 0 3 unless open STDOUT, ">$filename"
73 0 3 unless open STDERR, ">>$filename"
81 0 3 unless @expands
84 3 0 $type eq 'Module' ? :
123 0 3 unless $resp->is_success
125 1 2 if (not $$self{'core_include'} and $resp->is_core)
139 1 1 unless exists $resolved{$_}
141 0 2 if (exists $$result{'dependent_versions'}{$_}) { }
144 0 0 if ($$result{'dependent_versions'}{$_} < $$deps{$_})
161 3 0 if ($$self{'cache'})
164 0 3 if ($cached)
176 0 3 unless defined $url
179 1 2 if ($url =~ m[/perl-\d])
187 0 2 unless $url
200 0 2 if ($resp->is_error)
207 0 2 unless open FILE, ">$tgzfile"
212 0 2 unless chdir $tempdir
219 0 2 unless $tar->extract
229 0 2 unless chdir $cwd
231 0 2 if $@
235 2 0 if ($$self{'cache'})
251 0 2 unless opendir DIR, $dir
256 0 3 if /^\./
257 1 2 unless -d $_
326 0 2 unless my $dep = 'Algorithm::Dependency::Ordered'->new('source', $$self{'dependency_graph'}, 'selected', $$self{'dependency_graph'}{'selected'})
333 1 1 unless $schedule
352 0 2 unless my $self = $class->SUPER::new