Branch Coverage

blib/lib/Net/SSH/Any/_Base.pm
Criterion Covered Total %
branch 0 118 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$/
56 0 0 unless $backend =~ /^\w+$/
67 0 0 if ($ok) { }
68 0 0 if ($required_version) { }
69 0 0 if ($module->can('_backend_api_version')) { }
71 0 0 if ($version >= $required_version) { }
99 0 0 if $self->{'error'}
106 0 0 if defined $_
107 0 0 unless @msg
109 0 0 $code ? :
111 0 0 if $Net::SSH::Any::_Base::debug and $Net::SSH::Any::_Base::debug & 1
117 0 0 unless $self->{'error'}
121 0 0 if ($@)
123 0 0 unless ($any->{'error'})
135 0 0 ref $name_or_args ? :
138 0 0 if (open my $fh, $mode, @args)
148 0 0 if $loaded{$module} ||= eval "require $module; 1"
155 0 0 $^O =~ /^mswin/i ? :
157 0 0 unless $self->_load_module($os_module)
163 0 0 if (defined $friend)
170 0 0 if defined $cmd
180 0 0 if defined $cmd
200 0 0 if $Net::SSH::Any::_Base::debug and $Net::SSH::Any::_Base::debug & 1024
202 0 0 unless $last =~ s/.*:://
204 0 0 if $Net::SSH::Any::_Base::debug and $Net::SSH::Any::_Base::debug & 1024
225 0 0 if ($posix_shell{$shell}) { }
226 0 0 unless $any->_load_module('Net::SSH::Any::POSIXShellQuoter')
230 0 0 unless $any->_load_module('Net::OpenSSH::ShellQuoter')
237 0 0 unless defined $shell
244 0 0 unless ref $opts eq 'HASH'
248 0 0 unless defined $quote
251 0 0 if ($quote) { }
253 0 0 unless my $quoter = $any->_quoter($shell)
254 0 0 $glob_quoting ? :
260 0 0 if (ref $_) { }
261 0 0 if (ref $_ eq 'SCALAR') { }
0 0 elsif (ref $_ eq 'REF' and ref $$_ eq 'SCALAR') { }
277 0 0 if grep ref($_), @_
281 0 0 if $Net::SSH::Any::_Base::debug and $Net::SSH::Any::_Base::debug & 1024
282 0 0 wantarray ? :
301 0 0 unless my $enc = &Encode::find_encoding($encoding)
309 0 0 if (@_)
310 0 0 unless my $enc = $any->_find_encoding($encoding)
314 0 0 unless $any->_or_check_error_after_eval(7)
322 0 0 unless my $enc = $any->_find_encoding($encoding)
323 0 0 if (@_)
326 0 0 unless $any->_or_check_error_after_eval(7)
332 0 0 if (@_ > 2)
336 0 0 if (my $enc = $any->_find_encoding($encoding))
350 0 0 if (my($os_name) = $name =~ /^_os_(.*)/) { }
352 0 0 unless my $os = ($_[0]{'os_module'} //= $_[0]->_load_os)
353 0 0 unless my $method = $os->can($os_name)
360 0 0 unless my $module = $_[0]{'backend_module'}
361 0 0 unless my $method = $module->can($name)
373 0 0 if (defined $module)
375 0 0 if $sub