Branch Coverage

blib/lib/POE/Resource/Events.pm
Criterion Covered Total %
branch 57 72 79.1


line true false branch
38 2 2 if exists $event_count{$old_id}
40 0 4 if exists $post_count{$old_id}
83 8 5390 if (defined $time) { }
95 435 3003 unless ($type & 768)
96 1507 3058 if $priority <= $last_fifo_time
113 2361 3037 if (not defined $old_head_priority) { }
1697 3512 elsif ($priority < $old_head_priority) { }
123 609 3668 unless $event_count{$sid}++
125 3264 2134 if $sid eq $source_session->ID
127 4031 200 unless $post_count{$source_session->ID}++
143 149 51 unless $event
150 0 0 unless defined $delta
164 0 30 if ($time) { }
177 0 30 unless $event
181 0 30 if $time
182 30 0 if $delta
195 556 221 unless $pending_count
210 221 0 unless $pending_count
212 0 0 if $pending_count
218 774 3 unless $sent_count
232 3 0 unless $sent_count
234 0 0 if $sent_count
237 0 777 if delete $event_count{$sid}
238 0 777 if delete $post_count{$sid}
255 2870 796075 unless $_[0][3] & 512
256 2928 793147 unless $_[0][0]->ID eq $sid
257 791767 1380 unless $_[0][2] eq $alarm_name
278 1 228 unless defined $pri
298 4 26 unless $_[0][3] & 512
299 21 5 unless $_[0][0]->ID eq $sid
325 453 4798 unless --$event_count{$dest_id}
327 3130 2121 if $dest_id eq $source_id
333 3913 200 unless --$post_count{$source_id}
381 20273 2324 if ($$event[3] & 4112) { }
390 2150 1448 unless $POE::Kernel::kr_exception
402 2652 491 if (defined $next_time) { }