Branch Coverage

blib/lib/IO/Async/Socket.pm
Criterion Covered Total %
branch 29 40 72.5


line true false branch
180 13 163 if exists $params{$_}
185 2 20 if ($self->loop and defined $self->read_handle)
186 0 2 unless $self->can_event('on_recv')
195 6 2 if (defined $self->read_handle)
196 1 5 unless $self->can_event('on_recv')
227 0 7 unless my $handle = $self->write_handle
232 2 5 if ($self->{'autoflush'})
237 0 3 unless $len
242 2 0 unless (@$sendqueue)
260 2 11 unless (defined $addr)
261 0 1 if $! == 11 or $! == 11 or $! == 4
265 0 1 unless $self->maybe_invoke_event('on_recv_error', $errno)
271 0 11 unless (length $data)
278 8 3 unless $self->{'recv_all'}
294 1 3 unless (defined $len)
295 0 1 if $! == 11 or $! == 11 or $! == 4
299 0 1 unless $self->maybe_invoke_event('on_send_error', $errno)
305 0 3 if ($len == 0)
310 3 0 unless $self->{'send_all'}
313 2 1 if (not $sendqueue && @$sendqueue)