Branch Coverage

blib/lib/IO/Async/Loop/FutureIO.pm
Criterion Covered Total %
branch 31 44 70.4


line true false branch
83 0 6 if $Future::IO::IMPL eq "Future::IO::Impl::IOAsync"
97 36 24 unless $loop_f->is_ready
109 35 1 if (defined $timeout)
113 36 0 if (my $f = $self->{'next_loop_f'}) { }
122 35 1 if $timeout_f
136 2433 2 if exists $watch->{$key}
145 0 14 unless my $handle = $params{'handle'}
148 9 5 if (my $cb = $params{'on_read_ready'})
151 7 7 if (my $cb = $params{'on_write_ready'})
161 0 11 unless my $handle = $params{'handle'}
162 0 11 unless my $watch = $self->{'watch_io'}{$handle}
164 8 3 if ($params{'on_read_ready'})
168 7 4 if ($params{'on_write_ready'})
174 10 1 unless keys %$watch
182 0 14 unless my $code = $params{'code'}
186 1 13 if $delay < 0
207 0 6 unless my $when = delete $params{'when'}
209 0 6 unless my $code = delete $params{'code'}
211 0 6 unless $when eq "later"
243 0 5 unless defined $pid
244 0 5 unless $pid
263 0 0 if $f