Branch Coverage

lib/Net/FTP/Robust.pm
Criterion Covered Total %
branch 0 70 0.0


line true false branch
38 0 0 defined $args->{'login_attempts'} ? :
58 0 0 defined $ftp ? :
65 0 0 unless defined $to and length $to
74 0 0 $retries ? :
0 0 if $attempt != 1
79 0 0 unless ($ftp)
84 0 0 unless ($ftp->login($self->{'login_user'}, $self->{'login_password'}))
92 0 0 unless ($ftp->cwd($dir))
104 0 0 unless $success
116 0 0 if $success
129 0 0 if ($self->{'skip_names'}->($ftp, $full, $entry))
134 0 0 if (not length $entry) { }
0 0 elsif ($ftp->cwd($entry)) { }
135 0 0 unless -d $to or mkdir $to
144 0 0 unless -d $to or mkdir $to
147 0 0 if $full ne '/'
149 0 0 if ($success)
150 0 0 unless $success = $ftp->cdup
170 0 0 unless $success
179 0 0 unless $ftp->mdtm($fn)
185 0 0 unless $got_size
208 0 0 if (-e $local_name)
210 0 0 unless (-f $local_name)
218 0 0 if ($remote_mtime and $local_mtime >= $remote_mtime)
228 0 0 unless my $got_size = $self->_can_restart($ftp, $local_name, $local_temp, $expected_size)
233 0 0 if (defined $expected_size and $expected_size == $got_size) { }
236 0 0 if ($expected_size == 0)
237 0 0 unless open OUT, '>', $local_temp
249 0 0 if ($downloaded) { }
263 0 0 if ($success)
267 0 0 unless (rename $local_temp, $local_name)
280 0 0 if $size > 1000
281 0 0 if $size > 1000
282 0 0 if $size > 1000
284 0 0 $size >= 100 ? :