Branch Coverage

blib/lib/Net/SFTP.pm
Criterion Covered Total %
branch 0 128 0.0


line true false branch
31 0 0 if defined $status
40 0 0 wantarray ? :
52 0 0 if UNIVERSAL::isa($param{'ssh_args'}, 'HASH')
54 0 0 unless defined $param{'warn'}
57 0 0 if $sftp->{'warn_h'} and not ref $sftp->{'warn_h'}
93 0 0 if ($packet->type == &SSH2_MSG_CHANNEL_FAILURE())
130 0 0 if ($type != &SSH2_FXP_VERSION())
141 0 0 if ($sftp->{'debug'})
156 0 0 unless $id == $expected_id
157 0 0 if ($type == &SSH2_FXP_STATUS()) { }
0 0 elsif ($type != &SSH2_FXP_ATTRS()) { }
176 0 0 unless $id == $expected_id
177 0 0 if ($type != &SSH2_FXP_STATUS())
193 0 0 unless $id == $expected_id
194 0 0 if ($type == &SSH2_FXP_STATUS()) { }
0 0 elsif ($type != &SSH2_FXP_HANDLE()) { }
231 0 0 unless $status == &SSH2_FX_OK()
266 0 0 unless $id == $expected_id
267 0 0 if ($type == &SSH2_FXP_STATUS()) { }
0 0 elsif ($type != &SSH2_FXP_DATA()) { }
269 0 0 if ($status != &SSH2_FX_EOF())
293 0 0 unless $status == &SSH2_FX_OK()
333 0 0 @_ > 1 ? :
348 0 0 unless $id == $expected_id
349 0 0 if ($type == &SSH2_FXP_STATUS()) { }
0 0 elsif ($type != &SSH2_FXP_NAME()) { }
358 0 0 unless $count == 1
383 0 0 defined wantarray ? :
385 0 0 unless my $a = $sftp->do_stat($remote)
387 0 0 unless defined $handle
390 0 0 if ($local)
391 0 0 unless open FH, ">$local"
393 0 0 unless binmode FH
401 0 0 if defined $status and $status == &SSH2_FX_EOF()
402 0 0 unless $data
404 0 0 if $len > 65536
407 0 0 if defined $cb
408 0 0 if ($local) { }
0 0 elsif ($want) { }
418 0 0 if ($local)
421 0 0 $flags & &SSH2_FILEXFER_ATTR_PERMISSIONS() ? :
423 0 0 unless chmod $mode, $local
425 0 0 if ($flags & &SSH2_FILEXFER_ATTR_ACMODTIME())
426 0 0 unless utime $a->atime, $a->mtime, $local
438 0 0 unless my(@stat) = stat $local
448 0 0 unless open FH, $local
449 0 0 unless binmode FH
453 0 0 unless defined $handle
459 0 0 unless $len
460 0 0 if defined $cb
462 0 0 if ($status != &SSH2_FX_OK())
470 0 0 unless close FH
484 0 0 unless defined $handle
493 0 0 unless $id == $expected_id
494 0 0 if ($type == &SSH2_FXP_STATUS()) { }
0 0 elsif ($type != &SSH2_FXP_NAME()) { }
497 0 0 if ($status == &SSH2_FX_EOF()) { }
511 0 0 unless $count
522 0 0 if ($code and ref $code eq 'CODE') { }
531 0 0 wantarray ? :
550 0 0 defined $sid ? :
568 0 0 unless ($buf->length > 4)
570 0 0 unless $buf->length > 4
572 0 0 if $len > 262144