Condition Coverage

blib/lib/IO/Socket/Socks/Wrapper.pm
Criterion Covered Total %
condition 19 37 51.3


and 3 conditions

line !l l&&!r l&&r condition
59 68 4 0 @_ == 1 and not ref $_[0]
72 0 0 @_ == 1 and not ref $_[0] and $_[0] eq 'wrap_connection'
187 0 13 85 not $connected and $io_socket
13 85 0 not $connected and $io_socket and do { *$socket }->{'io_socket_timeout'}
244 0 0 95 $ref and not $io_handler

or 2 conditions

line l !l condition
210 33 7 $ref && $socket->isa('IO::Socket') && do { *$socket }->{'io_socket_timeout'} || 180
221 0 0 POSIX::dup($fd) // die('dup(): ', $!)
225 0 0 POSIX::dup2(fileno $blocking_writer, $fd) // die('dup2(): ', $!)
284 0 0 POSIX::dup2(fileno $socket, fileno $io_handler->{'orig_socket'}) // die('dup2(): ', $!)
292 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 28 2 delete $cfg->{'_norequire'} or %{$pkg . '::';}
186 92 6 95 $socket->isa('IO::Socket::Socks') or not $cfg
98 0 95 $socket->isa('IO::Socket::Socks') or not $cfg or $connected = defined getpeername $socket
209 0 0 95 $io_handler or exists $cfg->{'Timeout'}