Branch Coverage

blib/lib/Net/SSH/Any.pm
Criterion Covered Total %
branch 0 106 0.0


line true false branch
28 0 0 if (defined(my $uri = delete $opts->{'uri'}))
29 0 0 if ref $uri and $uri->can('as_string')
33 0 0 if (defined(my $v = delete $opts->{$_}))
38 0 0 unless ($uri)
43 0 0 unless (defined $uri->user)
44 0 0 if (defined(my $current_user = $any->_os_current_user)) { }
53 0 0 if (defined(my $key_paths = delete $opts->{'key_path'} // delete $opts->{'key_paths'}))
71 0 0 if ($any->_load_backend_module('Net::SSH::Any', $backend, $REQUIRED_BACKEND_VERSION))
72 0 0 unless $any->{'backend'}
78 0 0 if (my $extra = $any->{'backend_opts'}{$backend})
84 0 0 if ($any->_validate_backend_opts(%backend_opts))
88 0 0 unless ($any->{'error'})
100 0 0 @_ & 1 ? :
107 0 0 if $error and $error == 20 || $error == 21 || $error == 1
117 0 0 if (defined $shell and $shell ne $any->{'remote_shell'})
125 0 0 unless my $stream_encoding = $any->_delete_stream_encoding($opts)
126 0 0 $stream_encoding ? :
0 0 if $Net::SSH::Any::debug and $Net::SSH::Any::debug & 1024
128 0 0 if (defined(my $data = $opts->{'stdin_data'}))
130 0 0 unless $any->_encode_data($stream_encoding, @input)
138 0 0 if $any->error
139 0 0 if ($?)
152 0 0 unless $any->_clear_error
153 0 0 ref $_[0] eq 'HASH' ? :
154 0 0 unless my $stream_encoding = $any->_delete_stream_encoding_and_encode_input_data(\%opts)
157 0 0 unless my($out) = $any->_capture(\%opts, $cmd)
159 0 0 if ($stream_encoding)
160 0 0 unless $any->_decode_data($stream_encoding, $out)
162 0 0 if (wantarray)
172 0 0 unless $any->_clear_error
173 0 0 ref $_[0] eq 'HASH' ? :
174 0 0 unless my $stream_encoding = $any->_delete_stream_encoding_and_encode_input_data(\%opts)
177 0 0 unless my($out, $err) = $any->_capture2(\%opts, $cmd)
179 0 0 if ($stream_encoding)
180 0 0 unless $any->_decode_data($stream_encoding, $out)
181 0 0 unless $any->_decode_data($stream_encoding, $err)
183 0 0 wantarray ? :
192 0 0 unless $any->_clear_error
193 0 0 ref $_[0] eq 'HASH' ? :
194 0 0 unless my $stream_encoding = $any->_delete_stream_encoding_and_encode_input_data(\%opts)
204 0 0 unless $any->_clear_error
205 0 0 ref $_[0] eq 'HASH' ? :
216 0 0 if defined $any->{'timeout'}
220 0 0 unless $any->_load_module('Net::SFTP::Foreign')
221 0 0 if (my $sftp = $any->_sftp(\%opts)) { }
222 0 0 if (my $error = $sftp->error)
237 0 0 unless $any->_load_module($class)
238 0 0 ref $_[0] eq 'HASH' ? :
239 0 0 unless my $obj = $class->_new($any, \%opts, @_)
246 0 0 if ($force_kill)
247 0 0 unless defined $timeout
248 0 0 if $any->error == 4
268 0 0 wantarray ? :