Branch Coverage

blib/lib/MooX/Role/POE/Emitter.pm
Criterion Covered Total %
branch 45 66 68.1


line true false branch
87 0 7 if reftype $states eq 'HASH'
89 0 7 unless ref $states and reftype $states eq 'ARRAY'
92 0 7 unless is_ArrayObj $states
107 0 0 reftype $events eq 'HASH' ? :
7 0 reftype $events eq 'ARRAY' ? :
111 5 7 if $disallowed->exists($_)
175 1 3 if ($self->has_pluggable_type_prefixes) { }
188 4 0 $self->has_object_states ? :
245 1 3 unless defined $time and defined $event
257 3 0 if $alarm_id
270 1 1 unless defined $alarm_id
280 1 0 unless @deleted
284 0 0 unless $params
350 0 9 unless $regsess_obj
356 4 5 if $self->__emitter_reg_sessions->exists($sess_id)
369 0 9 unless (defined $regsess_obj)
387 0 1 unless (defined $regsess_obj)
394 0 1 if $refc < 0
429 8 11 if index($event, $prefix) == 0
434 19 19 if (my $sess_hash = $self->__emitter_reg_events->get($registered_ev))
442 9 10 if delete $sessions{$_[1]->ID}
446 17 2 unless ($self->_pluggable_process('NOTIFY', $event, \@args) == 4)
452 6 13 if $event eq 'shutdown'
467 4 0 unless ($sender == $kernel)
495 2 16 if (ref $event eq 'CODE') { }
518 9 3 unless index($event, '_') == 0 or index($event, 'emitter_') == 0 and $event =~ /(?:started|stopped)$/
582 3 2 unless @events
595 0 5 unless $s_id == $self->session_id or $self->__get_ses_refc($s_id)
614 6 0 unless @events
620 5 1 unless (delete $self->__emitter_reg_events->{$event}{$s_id})
625 0 1 if $self->__emitter_reg_events->get($event)->is_empty
630 1 0 unless ($self->__get_ses_refc($s_id))
634 0 1 unless $_[1] == $sender