Branch Coverage

blib/lib/IO/Async/Loop/Event.pm
Criterion Covered Total %
branch 39 48 81.2


line true false branch
58 56 1 if (defined $timeout) { }
71 3 2 wantarray ? :
87 0 9 unless my $handle = $params{'handle'}
91 6 3 if (my $on_read_ready = $params{'on_read_ready'})
95 5 4 if (my $on_write_ready = $params{'on_write_ready'})
99 7 2 $w->[1] ? :
5 4 $w->[2] ? :
101 1 8 if ($w->[0]) { }
110 7 0 if ($e->got =~ /r/ and $w->[1])
113 3 1 if ($e->got =~ /w/ and $w->[2])
126 0 9 unless my $handle = $params{'handle'}
128 0 9 unless my $w = $self->{'watch_io'}{$handle}
130 6 3 if ($params{'on_read_ready'})
134 5 4 if ($params{'on_write_ready'})
138 1 8 $w->[1] ? :
0 9 $w->[2] ? :
140 1 8 if (length $poll) { }
154 0 30 unless my $code = $params{'code'}
157 29 1 if (defined $params{'after'}) { }
159 1 28 if $delay < 0
182 1 8 unless exists $SIG{$name}
201 0 6 unless my $when = delete $params{'when'}
203 0 6 unless my $code = delete $params{'code'}
205 0 6 unless $when eq 'later'