Branch Coverage

xs/Poller.xs
Criterion Covered Total %
branch 45 404 11.1


line true false branch
15 5 0 if (poller->events == NULL || poller->interested == NULL || poller->poller == NULL)
5 0 if (poller->events == NULL || poller->interested == NULL || poller->poller == NULL)
0 5 if (poller->events == NULL || poller->interested == NULL || poller->poller == NULL)
21 0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
0 0 zmq_raw_check_error (-1);
43 1 114 if (io)
45 0 1 if (zmq_raw_event_map_get (poller->interested, SvRV (socket)))
51 0 1 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
57 3 110 if (zmq_raw_event_map_get (poller->interested, SvRV (socket)))
63 0 113 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
66 111 3 if (!zmq_raw_event_map_get (poller->interested, SvRV (socket)))
73 17 97 if (poller->size > poller->allocated)
75 12 5 if (poller->poller_events)
78 0 17 Newxz (poller->poller_events, poller->size, zmq_poller_event_t);
97 1 112 if (io)
100 0 1 if (rc != 0)
108 4 108 if (rc != 0)
149 14 67 if (rc < 0)
151 13 1 if (zmq_errno() == EAGAIN)
154 1 0 zmq_raw_check_error (rc);
0 1 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
1 0 zmq_raw_check_error (rc);
0 1 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
0 0 zmq_raw_check_error (rc);
159 131 4 for (i = 0; i < poller->size && rc; ++i)
68 63 for (i = 0; i < poller->size && rc; ++i)
163 68 0 if (e->events)
168 67 1 if (e->events & *events)
192 1 171 if (!zmq_raw_event_map_get (poller->interested, SvRV (socket)))
196 109 62 if (e == NULL)
214 1 4 if (iterator)
220 1 1 while (zmq_raw_event_map_iterator_next (iterator));