Condition Coverage

blib/lib/Mixin/Event/Dispatch.pm
Criterion Covered Total %
condition 10 13 76.9


and 3 conditions

line !l l&&!r l&&r condition
106 4 0 3 $self->can('EVENT_DISPATCH_ON_FALLBACK') and $self->EVENT_DISPATCH_ON_FALLBACK
4 1 2 $self->can('EVENT_DISPATCH_ON_FALLBACK') and $self->EVENT_DISPATCH_ON_FALLBACK and my $code = $self->can("on_$event_name")
198 0 6 0 ref $code and &Scalar::Util::reftype($code) ne 'CODE'

or 2 conditions

line l !l condition
101 14 2 $self->event_handlers->{$event_name} || []
284 37 7 (shift())->{'__MED_event_handlers'} ||= {}