Condition Coverage

blib/lib/IO/Socket.pm
Criterion Covered Total %
condition 22 64 34.3


and 3 conditions

line !l l&&!r l&&r condition
34 53 1 0 @_ and $_[0] eq "sockatmark"
122 0 0 1 defined $timeout and $!{'EINPROGRESS'} || $!{'EWOULDBLOCK'}
177 0 0 10 $^O ne "MSWin32" and $^O ne "VMS"
228 0 0 20 @_ >= 1 and @_ <= 2
230 0 0 20 $queue and $queue > 0
284 0 0 6 @_ >= 2 and @_ <= 4
307 4 0 2 @_ == 4 and defined $r
341 0 0 13 defined $r and length $r == $intsize
384 8 0 2 not defined do { *$sock }->{'io_socket_type'} and defined eval { do { 3 } }
392 5 0 5 not defined do { *$sock }->{'io_socket_proto'} and defined eval { do { 38 } }

or 2 conditions

line l !l condition
286 0 6 $_[2] || 0
317 0 6 $_[3] || 0

or 3 conditions

line l !l&&r !l&&!r condition
122 1 0 0 $!{'EINPROGRESS'} || $!{'EWOULDBLOCK'}
0 0 0 $!{'EINPROGRESS'} || $!{'EWOULDBLOCK'}
0 0 0 $blocking or not $!{'EINPROGRESS'} || $!{'EWOULDBLOCK'}
129 1 0 0 CORE::connect($sock, $addr) || ($!{'EISCONN'} || $^O eq 'MSWin32' && $! == ($] < 5.019004 ? 10022 : 22))
140 0 0 0 $! || (exists &Errno::ETIMEDOUT ? &Errno::ETIMEDOUT : 1)
238 21 0 0 @_ == 1 or @_ == 2
240 0 21 0 shift() || $sock
274 2 0 0 do { *$sock }->{'io_socket_peername'} ||= getpeername $sock
314 6 0 0 @_ == 3 or @_ == 4
359 0 0 0 @_ == 1 or @_ == 2