| blib/lib/Mojo/IOLoop.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 32 | 44 | 72.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 86 | 157 | 2 | 283 | $c and my $stream = $c->{'stream'} |
| 141 | 0 | 2 | 1 | ++$self->{'stop'} and not $self->emit("finish")->_in |
| 199 | 337 | 2 | 2 | $self->{'stop'} and not $self->_in |
| line | l | !l | condition |
|---|---|---|---|
| 15 | 0 | 63 | $ENV{'MOJO_IOLOOP_DEBUG'} || 0 |
| 91 | 1 | 3 | shift() // {} |
| 147 | 7111 | 12 | ($self->{'in'}{$stream} || $self->{'out'}{$stream}) // {} |
| 165 | 457 | 1 | +(shift())->{'in'} // {} |
| 174 | 258 | 0 | $self->{'acceptors'} // {} |
| 181 | 200 | 0 | $self->{'acceptors'} // {} |
| 185 | 0 | 0 | +(shift())->{'out'} // {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 85 | 134 | 151 | 157 | $self->{'in'}{$id} || $self->{'out'}{$id} |
| 116 | 0 | 1 | 0 | $self->{'accepts'} //= $max - int(rand $max / 2) |
| 147 | 4096 | 3015 | 12 | $self->{'in'}{$stream} || $self->{'out'}{$stream} |
| 161 | 0 | 0 | 538 | $self->{'in'}{$id} or $self->{'out'}{$id} |
| 0 | 0 | 538 | $self->{'in'}{$id} or $self->{'out'}{$id} or $self->{'acceptors'}{$id} | |
| 173 | 336 | 2 | 258 | $self->{'accepting'} or $self->_limit |
| 198 | 170 | 171 | 24 | delete $self->{'in'}{$id} or delete $self->{'out'}{$id} |