Branch Coverage

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


line true false branch
21 0 0 if /^remote_(.*)_cmd$/
22 0 0 if /^local_(.*)_cmd$/
23 0 0 if /^remote_(.*)_extra_args$/
24 0 0 if /^local_(.*)_extra_args$/
59 0 0 unless $backend =~ /^\w+$/
70 0 0 if ($ok) { }
71 0 0 if ($required_version) { }
72 0 0 if ($module->can('_backend_api_version')) { }
74 0 0 if ($version >= $required_version) { }
102 0 0 if $self->{'error'}
109 0 0 if defined $_
110 0 0 unless @msg
112 0 0 $code ? :
114 0 0 if $Net::SSH::Any::_Base::debug and $Net::SSH::Any::_Base::debug & 1
120 0 0 unless $self->{'error'}
124 0 0 if ($@)
126 0 0 unless ($any->{'error'})
138 0 0 ref $name_or_args ? :
141 0 0 if (open my $fh, $mode, @args)
151 0 0 if $loaded{$module} ||= eval "require $module; 1"
158 0 0 $^O =~ /^mswin/i ? :
160 0 0 unless $self->_load_module($os_module)
166 0 0 if (defined $friend)
173 0 0 if defined $cmd
183 0 0 if defined $cmd
190 0 0 ref $_[0] ? :
200 0 0 if defined $cmd
201 0 0 if $opts->{'relaxed'} or $any->{'relaxed_cmd_lookup'}
208 0 0 if $Net::SSH::Any::_Base::debug and $Net::SSH::Any::_Base::debug & 1024
210 0 0 unless $last =~ s/.*:://
212 0 0 if $Net::SSH::Any::_Base::debug and $Net::SSH::Any::_Base::debug & 1024
233 0 0 if ($posix_shell{$shell}) { }
234 0 0 unless $any->_load_module('Net::SSH::Any::POSIXShellQuoter')
238 0 0 unless $any->_load_module('Net::OpenSSH::ShellQuoter')
245 0 0 unless defined $shell
252 0 0 unless ref $opts eq 'HASH'
256 0 0 unless defined $quote
259 0 0 if ($quote) { }
261 0 0 unless my $quoter = $any->_quoter($shell)
262 0 0 $glob_quoting ? :
268 0 0 if (ref $_) { }
269 0 0 if (ref $_ eq 'SCALAR') { }
0 0 elsif (ref $_ eq 'REF' and ref $$_ eq 'SCALAR') { }
285 0 0 if grep ref($_), @_
289 0 0 if $Net::SSH::Any::_Base::debug and $Net::SSH::Any::_Base::debug & 1024
290 0 0 wantarray ? :
309 0 0 unless my $enc = &Encode::find_encoding($encoding)
317 0 0 if (@_)
318 0 0 unless my $enc = $any->_find_encoding($encoding)
322 0 0 unless $any->_or_check_error_after_eval(7)
330 0 0 unless my $enc = $any->_find_encoding($encoding)
331 0 0 if (@_)
334 0 0 unless $any->_or_check_error_after_eval(7)
340 0 0 if (@_ > 2)
344 0 0 if (my $enc = $any->_find_encoding($encoding))
358 0 0 if (my($os_name) = $name =~ /^_os_(.*)/) { }
360 0 0 unless my $os = ($_[0]{'os_module'} //= $_[0]->_load_os)
361 0 0 unless my $method = $os->can($os_name)
368 0 0 unless my $module = $_[0]{'backend_module'}
369 0 0 unless my $method = $module->can($name)
381 0 0 if (defined $module)
383 0 0 if $sub