Branch Coverage

blib/lib/App/MBUtiny/Storage/SFTP.pm
Criterion Covered Total %
branch 1 106 0.9


line true false branch
151 0 0 if $uri->port
152 0 0 if $uri->user
153 0 0 if $uri->password
159 0 0 value($sftp_node, 'fixup') ? :
167 0 1 if $usesftp and $NET_SFTP_FOREIGN
180 0 0 if is_void($self->sftp_storages) and $self->storage_status($sign) <= 0
182 0 0 unless ($NET_SFTP_FOREIGN)
194 0 0 if ($sftp->error)
201 0 0 if (my $path = $storage->{'path'})
202 0 0 unless ($sftp->setcwd($path))
211 0 0 if ($sftp->error)
229 0 0 if $self->storage_status('SFTP') <= 0
244 0 0 if ($sftp->error)
250 0 0 if ($ostat and length $path)
251 0 0 unless ($sftp->setcwd($path))
258 0 0 if ($ostat)
259 0 0 unless ($sftp->put($file, $name))
266 0 0 if ($ostat)
270 0 0 if S_ISREG($entry->{'a'}->perm)
273 0 0 if ($sftp->error) { }
0 0 elsif ($ls and is_array($ls)) { }
279 0 0 unless ($src_size == $dst_size)
290 0 0 if $storage->{'fixup'}
291 0 0 unless $ostat
294 0 0 unless $status
299 0 0 if ($self->storage_status('SFTP') <= 0)
313 0 0 if ($sftp->error)
319 0 0 if (length $path)
320 0 0 unless ($sftp->setcwd($path))
332 0 0 if S_ISREG($entry->{'a'}->perm)
334 0 0 if ($sftp->error) { }
0 0 elsif ($ls and is_array($ls)) { }
344 0 0 unless ($sftp->get($name, $file))
352 0 0 unless ($src_size == $dst_size)
362 0 0 unless ($self->validate($file))
378 0 0 if $self->storage_status('SFTP') <= 0
389 0 0 if ($sftp->error)
395 0 0 if ($ostat and length $path)
396 0 0 unless ($sftp->setcwd($path))
403 0 0 if ($ostat)
407 0 0 if S_ISREG($entry->{'a'}->perm)
410 0 0 if ($sftp->error) { }
0 0 elsif ($ls and is_array($ls) and @$ls) { }
414 0 0 unless ($sftp->remove($name))
425 0 0 if $storage->{'fixup'}
426 0 0 unless $ostat
428 0 0 unless $status
433 0 0 if $self->storage_status('SFTP') <= 0
445 0 0 if ($sftp->error)
451 0 0 if ($ostat)
458 0 0 if ($sftp->error) { }
0 0 elsif ($ls and is_array($ls)) { }
464 0 0 if defined $f and length $f