Condition Coverage

blib/lib/Linux/Event/Loop.pm
Criterion Covered Total %
condition 29 81 35.8


and 3 conditions

line !l l&&!r l&&r condition
187 0 37 0 defined $read and ref $read ne "CODE"
190 32 5 0 defined $write and ref $write ne "CODE"
193 36 1 0 defined $error and ref $error ne "CODE"
228 1 0 36 ref $b eq "Linux::Event::Backend::Epoll" and exists $b->{'ep'}
231 1 1 35 $can_xs_backend_fast and not -S $fh
2 0 35 $can_xs_backend_fast and not -S $fh and Linux::Event::XS::loop_watch_watcher_fast($self, $fh, $fd, $w, $mask)
268 0 0 0 $ww->{'error_cb'} and $ww->{'error_enabled'}
278 0 0 0 $read_trig and $ww->{'read_cb'}
0 0 0 $read_trig and $ww->{'read_cb'} and $ww->{'read_enabled'}
287 0 0 0 $write_trig and $ww->{'write_cb'}
0 0 0 $write_trig and $ww->{'write_cb'} and $ww->{'write_enabled'}
306 0 0 37 $w->{'read_cb'} and $w->{'read_enabled'}
307 32 0 5 $w->{'write_cb'} and $w->{'write_enabled'}
331 0 0 3 $w and $w->{'active'}
334 0 0 3 ref $b eq "Linux::Event::Backend::Epoll" and exists $b->{'ep'}
0 0 3 ref $b eq "Linux::Event::Backend::Epoll" and exists $b->{'ep'} and exists $b->{'watch'}
345 0 0 0 $self->{'backend'}->can("unwatch") and $w->{'fh'}
408 17 15 0 not $self->{'running'} and $self->{'_in_run'} || $was_running
438 14 0 0 not $self->{'running'} and $self->{'_in_run'} || $was_running

or 3 conditions

line l !l&&r !l&&!r condition
37 1 19 0 $clock //= "Linux::Event::Clock"->new("clock", "monotonic")
42 1 19 0 $timer //= "Linux::Event::Timer"->new
108 2 1 0 $self->{'_signal'} ||= "Linux::Event::Signal"->new("loop", $self->_public_loop)
134 0 0 0 $self->{'pid_adaptor'} //= "Linux::Event::Pid"->new("loop", $self->_public_loop)
256 0 0 0 not defined $fnow or int $fnow != $fd2
283 0 0 0 not $still or $still != $ww
408 2 0 13 $self->{'_in_run'} || $was_running
438 0 0 0 $self->{'_in_run'} || $was_running