Branch Coverage

blib/lib/Aspect/Library/Listenable.pm
Criterion Covered Total %
branch 21 32 65.6


line true false branch
42 0 7 unless has_listeners($listenable, $event_name)
50 1 6 if not $always_fire and keys %old_state and is_equal_state(\%old_state, \%new_state)
71 1 10 unless is_hash($listenable)
74 8 2 unless exists $$listenable{$key}
77 1 9 if (ref $listener eq 'ARRAY') { }
0 9 elsif (ref $listener ne 'CODE') { }
87 0 10 unless $listeners
92 10 0 if (ref $l eq 'ARRAY' and $listener eq $$l[1] or $listener eq $l)
97 0 10 if $oldSize == @$listeners
106 0 6 unless has_listeners($source, $event_name)
115 6 1 if (ref $listener eq 'CODE') { }
1 0 elsif (ref $listener eq 'ARRAY') { }
119 0 1 unless defined $o
122 1 0 $$listener[2] ? :
126 0 0 unless defined $listener
157 1 1 unless is_equal_value($$old_state{$key}, $$new_state{$key})