Branch Coverage

lib/CPANPLUS/Internals/Fetch.pm
Criterion Covered Total %
branch 24 42 57.1


line true false branch
107 0 60 unless my $args = check($tmpl, \%hash)
110 0 60 if (my $where = $modobj->status->fetch and not $force)
128 0 60 unless (-d $local_path)
129 0 0 unless ($self->_mkdir('dir', $local_path))
144 59 1 if (-e $local_file)
146 43 16 if ($$args{'force'}) { }
150 0 43 unless unlink $local_file
164 0 44 if ($fetch_from) { }
169 0 0 unless ($abs)
186 0 44 unless ($remote_file)
223 45 0 if ($$host{'scheme'} eq 'file') { }
224 45 45 if defined $_
247 44 1 if ($abs)
267 0 0 $found_host ? :
289 0 45 unless check($tmpl, \%hash)
297 0 45 unless $ff
299 44 1 if (my $file = $ff->fetch('to', $local_path)) { }
300 0 44 if (not -e $file && -s _) { }
344 0 3 unless check($tmpl, \%hash)
358 0 6 unless check($tmpl, \%hash)
360 3 3 $self->_hosts->{$host} ? :