Condition Coverage

inc/IO/Socket.pm
Criterion Covered Total %
condition 7 58 12.0


and 3 conditions

line !l l&&!r l&&r condition
32 16 7 0 @_ and $_[0] eq 'sockatmark'
115 0 0 0 defined $timeout and $!{'EINPROGRESS'} || $!{'EWOULDBLOCK'}
208 0 0 0 @_ >= 1 and @_ <= 2
210 0 0 0 $queue and $queue > 0
262 0 0 1 @_ >= 2 and @_ <= 4
275 1 0 0 @_ == 4 and defined $r
309 0 0 0 defined $r and length $r == $intsize

or 2 conditions

line l !l condition
264 0 1 $_[2] || 0
285 0 0 $_[3] || 0

or 3 conditions

line l !l&&r !l&&!r condition
115 0 0 0 $!{'EINPROGRESS'} || $!{'EWOULDBLOCK'}
0 0 0 $!{'EINPROGRESS'} || $!{'EWOULDBLOCK'}
0 0 0 $blocking or not $!{'EINPROGRESS'} || $!{'EWOULDBLOCK'}
121 0 0 0 CORE::connect($sock, $addr) || ($!{'EISCONN'} || $! == 10022 && $^O eq 'MSWin32')
122 0 0 0 $! || (exists &Errno::ETIMEDOUT ? &Errno::ETIMEDOUT : 1)
218 0 0 0 @_ == 1 or @_ == 2
220 0 0 0 shift() || $sock
252 0 1 0 ${*$sock;}{'io_socket_peername'} ||= getpeername $sock
265 0 1 0 $_[3] || $sock->peername
282 0 0 0 @_ == 3 or @_ == 4
327 0 0 0 @_ == 1 or @_ == 2