Condition Coverage

blib/lib/Class/Publisher.pm
Criterion Covered Total %
condition 32 56 57.1


and 3 conditions

line !l l&&!r l&&r condition
17 2 0 14 defined $event and length $event
24 8 5 0 $use_method and !ref($subscriber) || blessed $subscriber
44 0 0 3 defined $event and length $event
48 0 0 3 defined $event and length $event
84 0 17 0 $event and ref $event
85 0 0 17 defined $event and length $event
101 1 15 4 reftype $s and reftype $s eq 'CODE'
106 1 5 10 ref $s and reftype $s eq 'ARRAY'
6 0 10 ref $s and reftype $s eq 'ARRAY' and not blessed $s
109 0 0 16 $callable and $method
182 0 0 8 defined $_ && length $_
224 7 0 53 defined $event and length $event
241 0 0 0 ref $S{$item} and ref $S{$item}{$event}
250 13 1 1 not ref $s and length $s
251 1 9 4 ref $s and reftype $s eq 'CODE'
269 6 0 72 defined $event and length $event

or 2 conditions

line l !l condition
21 3 10 $S{$item}{$event} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
24 0 5 0 !ref($subscriber) || blessed $subscriber
188 0 45 0 ref $item || $item