Branch Coverage

blib/lib/ZMQ/Raw/Loop.pm
Criterion Covered Total %
branch 53 78 67.9


line true false branch
30 224 1154 @_ > 1 ? :
140 58 0 if ($this->poller->size)
143 58 0 if ($count)
145 48 10 unless $this->_dispatch_events or $this->_dispatch_handles
161 39 24 if (ref $item eq 'ZMQ::Raw::Loop::Timer') { }
4 20 elsif (ref $item eq 'ZMQ::Raw::Loop::Handle') { }
19 1 elsif (ref $item eq 'ZMQ::Raw::Loop::Event') { }
1 0 elsif (ref $item eq 'ZMQ::Raw::Loop::Promise') { }
192 2 74 unless ($timer->running)
208 2 17 if ($event->timeout)
235 4 0 if ($handle->on_readable)
239 0 4 if ($handle->on_writable)
243 4 0 if ($handle->timeout)
263 30 15 if (ref $item eq 'ZMQ::Raw::Loop::Timer') { }
0 15 elsif (ref $item eq 'ZMQ::Raw::Loop::Handle') { }
15 0 elsif (ref $item eq 'ZMQ::Raw::Loop::Event') { }
290 76 44 if ($timer == $t)
313 4 0 if ($h == $handle)
318 4 0 if ($timer)
342 18 8 if ($e == $event)
347 1 17 if ($timer)
371 2 2 if ($events)
375 2 0 if ($events & 'ZMQ::Raw'->ZMQ_POLLIN) { }
0 0 elsif ($events & 'ZMQ::Raw'->ZMQ_POLLOUT) { }
378 2 0 if $readable
383 0 0 if $writable
389 2 0 if ($handle->timer)
392 2 0 if ($events)
397 2 0 if $timeout
416 5 57 if ($events)
422 5 0 if $set
426 4 53 if ($event->timer)
429 1 3 if ($events)
435 1 0 if $timeout
455 48 39 if ($events)
460 48 0 if $timeout
462 37 11 if ($timer->timer->running)
499 1 0 if ($event->timer)
519 0 0 if ($handle->timer)