Branch Coverage

blib/lib/Evented/Object/Collection.pm
Criterion Covered Total %
branch 45 68 66.1


line true false branch
77 11 2 if ($opt eq 'caller')
78 2 11 if ($opt eq 'data')
81 0 13 if $boolopts{$opt}
93 13 0 unless $collection->{'sorted'}
94 0 13 unless my $callbacks = $collection->{'sorted'}
98 0 13 if ($collection->{'return_check'})
127 0 13 unless $collection->{'pending'}
139 0 35 if $done{$cb_id}
142 22 13 if (defined $priority and $priority ne 'nan')
166 5 17 unless my $list = $cb->{$key}
167 7 10 if ref $list ne 'ARRAY'
173 12 15 unless my $their_id = $name_to_id->{$their_name}
174 0 15 unless my $their_cb = $callbacks{$their_id}
179 8 7 if ($their_p eq 'nan')
182 6 2 unless $waited{$key}++ > $wait_max
192 4 9 if $next
193 4 5 if $next
196 0 5 if (@befores and @afters) { }
3 2 elsif (@befores) { }
2 0 elsif (@afters) { }
214 0 5 if $priority eq 'nan'
263 0 13 unless my $remaining = $collection->{'sorted'}
272 0 26 unless &blessed($eo) and $eo->isa('Evented::Object')
292 1 25 if defined $cb->{'data'}
295 0 26 if $ef_props->{'called'}{$cb_id}
298 1 25 unless $collection->{'pending'}{$cb_id}
309 25 0 unless $cb->{'no_fire_obj'}
310 0 25 if $include_obj
318 0 25 $collection->{'safe'} ? :
328 0 25 if ($collection->{'safe'} and my $err = $@)
332 0 0 unless $collection->{'fail_continue'}
336 1 24 if ($ef_props->{'stop'})
368 0 0 unless $fire->{$props}{'return'}
370 0 0 if $returns{$cb_id}