Condition Coverage

blib/lib/IO/Socket/Socks/Wrapper.pm
Criterion Covered Total %
condition 18 37 48.6


and 3 conditions

line !l l&&!r l&&r condition
59 65 3 0 @_ == 1 and not ref $_[0]
68 0 0 @_ == 1 and not ref $_[0] and $_[0] eq 'wrap_connection'
185 13 83 0 $io_socket and do { *$socket }->{'io_socket_timeout'}
249 45 0 0 $io_handler and $IO::Socket::Socks::SOCKS_ERROR == &IO::Socket::Socks::SOCKS_WANT_WRITE
250 0 0 48 $ref and not $io_handler

or 2 conditions

line l !l condition
208 32 7 $ref && $socket->isa('IO::Socket') && do { *$socket }->{'io_socket_timeout'} || 180
219 0 0 POSIX::dup($fd) // die('dup(): ', $!)
223 0 0 POSIX::dup2(fileno $blocking_writer, $fd) // die('dup2(): ', $!)
275 0 0 POSIX::dup2(fileno $socket, fileno $io_handler->{'orig_socket'}) // die('dup2(): ', $!)
283 0 0 POSIX::dup2(fileno $socket, fileno $io_handler->{'orig_socket'}) // die('dup2(): ', $!)

or 3 conditions

line l !l&&r !l&&!r condition
82 3 27 2 delete $cfg->{'_norequire'} or %{$pkg . '::';}
184 90 6 93 $socket->isa('IO::Socket::Socks') or not $cfg
207 0 0 93 $io_handler or exists $cfg->{'Timeout'}
249 48 0 45 $ok or $io_handler and $IO::Socket::Socks::SOCKS_ERROR == &IO::Socket::Socks::SOCKS_WANT_WRITE