Condition Coverage

blib/lib/Mojo/IOLoop.pm
Criterion Covered Total %
condition 30 44 68.1


and 3 conditions

line !l l&&!r l&&r condition
86 158 2 286 $c and my $stream = $c->{'stream'}
141 0 1 2 ++$self->{'stop'} and not $self->emit("finish")->_in
199 340 0 2 $self->{'stop'} and not $self->_in

or 2 conditions

line l !l condition
15 0 64 $ENV{'MOJO_IOLOOP_DEBUG'} || 0
91 1 3 shift() // {}
147 7196 12 ($self->{'in'}{$stream} || $self->{'out'}{$stream}) // {}
165 458 1 +(shift())->{'in'} // {}
174 262 0 $self->{'acceptors'} // {}
181 203 0 $self->{'acceptors'} // {}
185 0 0 +(shift())->{'out'} // {}

or 3 conditions

line l !l&&r !l&&!r condition
85 135 153 158 $self->{'in'}{$id} || $self->{'out'}{$id}
116 0 1 0 $self->{'accepts'} //= $max - int(rand $max / 2)
147 4145 3051 12 $self->{'in'}{$stream} || $self->{'out'}{$stream}
161 0 0 540 $self->{'in'}{$id} or $self->{'out'}{$id}
0 0 540 $self->{'in'}{$id} or $self->{'out'}{$id} or $self->{'acceptors'}{$id}
173 339 0 262 $self->{'accepting'} or $self->_limit
198 170 172 23 delete $self->{'in'}{$id} or delete $self->{'out'}{$id}