Branch Coverage

blib/lib/Reflex/Role/Reactive.pm
Criterion Covered Total %
branch 28 64 43.7


line true false branch
112 0 0 if "$event" =~ /^Reflex::POE::Event(?:::|=)/
116 0 0 if 'Reflex::POE::Session'->deliver($_[5]->ID, $event, $args)
151 9 196 unless defined $singleton_session_id
322 35 0 if (ref $callback) { }
323 35 0 if (&blessed($callback)) { }
0 0 elsif (ref $callback eq 'CODE') { }
324 0 35 unless ($callback->isa('Reflex::Callback'))
354 24 11 unless (exists $self->watched_objects->{$watched_id})
377 32 0 unless $events
379 32 0 unless (@events)
391 35 0 unless scalar keys %{$self->watchers_by_event->{$event};}
398 31 1 unless exists $self->watchers->{$watcher_id} and @{$self->watchers->{$watcher_id};}
433 12 25 unless defined $event_type and length $event_type
438 0 37 unless defined $event_name and length $event_name
474 0 71 if ($self->can($self_method))
477 0 0 if ($self->emits_seen->{"$self -> $self_method"})
497 4 67 unless (exists $self->watchers_by_event->{$deliver_event})
498 0 4 if ($self->promise)
508 4 0 unless exists $self->watchers_by_event->{$deliver_event}
526 60 10 if ($callback_rec->{'watcher'}->session_id eq $POE::Kernel::poe_kernel->get_active_session->ID)
582 0 32 unless defined $watched
586 0 32 if (@events) { }
588 0 0 unless (scalar keys %{$self->watched_object_events->{$watched_id};})
598 0 32 unless defined $watched
614 0 71 unless $POE::Kernel::poe_kernel
616 60 11 if $self->session_id eq $POE::Kernel::poe_kernel->get_active_session->ID
630 0 0 if ($self->session_id eq $POE::Kernel::poe_kernel->get_active_session->ID)
633 0 0 if (ref($method) =~ /^CODE/)
639 0 0 if (ref($method) =~ /^CODE/)
660 0 0 unless $self->promise
662 0 0 unless @_
672 0 0 if exists $which{$next->{'name'}}