Branch Coverage

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


line true false branch
150 0 0 if $uri->port
151 0 0 if $uri->user
152 0 0 if $uri->password
158 0 0 value($sftp_node, 'fixup') ? :
166 0 1 if $usesftp and $NET_SFTP_FOREIGN
179 0 0 if is_void($self->sftp_storages) and $self->storage_status($sign) <= 0
181 0 0 unless ($NET_SFTP_FOREIGN)
193 0 0 if ($sftp->error)
200 0 0 if (my $path = $storage->{'path'})
201 0 0 unless ($sftp->setcwd($path))
210 0 0 if ($sftp->error)
228 0 0 if $self->storage_status('SFTP') <= 0
243 0 0 if ($sftp->error)
249 0 0 if ($ostat and length $path)
250 0 0 unless ($sftp->setcwd($path))
257 0 0 if ($ostat)
258 0 0 unless ($sftp->put($file, $name))
265 0 0 if ($ostat)
269 0 0 if S_ISREG($entry->{'a'}->perm)
272 0 0 if ($sftp->error) { }
0 0 elsif ($ls and is_array($ls)) { }
278 0 0 unless ($src_size == $dst_size)
289 0 0 if $storage->{'fixup'}
290 0 0 unless $ostat
293 0 0 unless $status
298 0 0 if ($self->storage_status('SFTP') <= 0)
312 0 0 if ($sftp->error)
318 0 0 if (length $path)
319 0 0 unless ($sftp->setcwd($path))
331 0 0 if S_ISREG($entry->{'a'}->perm)
333 0 0 if ($sftp->error) { }
0 0 elsif ($ls and is_array($ls)) { }
343 0 0 unless ($sftp->get($name, $file))
351 0 0 unless ($src_size == $dst_size)
361 0 0 unless ($self->validate($file))
377 0 0 if $self->storage_status('SFTP') <= 0
388 0 0 if ($sftp->error)
394 0 0 if ($ostat and length $path)
395 0 0 unless ($sftp->setcwd($path))
402 0 0 if ($ostat)
406 0 0 if S_ISREG($entry->{'a'}->perm)
409 0 0 if ($sftp->error) { }
0 0 elsif ($ls and is_array($ls) and @$ls) { }
413 0 0 unless ($sftp->remove($name))
424 0 0 if $storage->{'fixup'}
425 0 0 unless $ostat
427 0 0 unless $status
432 0 0 if $self->storage_status('SFTP') <= 0
444 0 0 if ($sftp->error)
450 0 0 if ($ostat)
457 0 0 if ($sftp->error) { }
0 0 elsif ($ls and is_array($ls)) { }
463 0 0 if defined $f and length $f