Branch Coverage

blib/lib/Net/SFTP/Foreign/Compat.pm
Criterion Covered Total %
branch 2 44 4.5


line true false branch
19 1 0 if ($arg eq ':supplant') { }
21 1 0 unless ($supplant)
57 0 0 unless (index((caller)[0], 'Net::SFTP::Foreign') == 0)
70 0 0 if (exists $opts{'warn'}) { }
87 0 0 if (my $w = $sftp->{'_compat_warn'})
94 0 0 if (my $e = $sftp->SUPER::error)
101 0 0 wantarray ? :
105 0 0 if @_ < 2 or @_ > 4
111 0 0 if (defined $cb or $save)
114 0 0 if $cb
115 0 0 if $save
120 0 0 unless $sftp->SUPER::get($remote, $local, @{$DEFAULTS{'get'};}, 'dont_save', !defined($local), @cb)
125 0 0 if ($save)
131 0 0 if @_ < 3 or @_ > 4
142 0 0 if @_ < 2 or @_ > 3
144 0 0 if ($cb) { }
153 0 0 if (my $ls = $sftp->SUPER::ls($path, @{$DEFAULTS{'ls'};}))
171 0 0 if (wantarray) { }
200 0 0 if ($a)
201 0 0 $supplant ? :
212 0 0 if @_ != 2
214 0 0 if (my $a = $sftp->$method(@_)) { }