Branch Coverage

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


line true false branch
58 51 1 if (defined $timeout) { }
71 3 2 wantarray ? :
87 0 7 unless my $handle = $params{'handle'}
91 6 1 if (my $on_read_ready = $params{'on_read_ready'})
95 3 4 if (my $on_write_ready = $params{'on_write_ready'})
99 7 0 $$w[1] ? :
3 4 $$w[2] ? :
101 1 6 if ($$w[0]) { }
110 7 1 if ($e->got =~ /r/ and $$w[1])
113 2 6 if ($e->got =~ /w/ and $$w[2])
126 0 7 unless my $handle = $params{'handle'}
128 0 7 unless my $w = $$self{'watch_io'}{$handle}
130 6 1 if ($params{'on_read_ready'})
134 3 4 if ($params{'on_write_ready'})
138 1 6 $$w[1] ? :
0 7 $$w[2] ? :
140 1 6 if (length $poll) { }
154 0 26 unless my $code = $params{'code'}
157 25 1 if (defined $params{'after'}) { }
159 1 24 if $delay < 0
182 1 6 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'