Branch Coverage

blib/lib/EntityModel/Collection.pm
Criterion Covered Total %
branch 15 30 50.0


line true false branch
37 6 0 if (my $handler = $$self{'event_handler'}{$event}) { }
45 0 6 unless $self->has_event_handlers_for('fail')
48 3 3 unless $event eq 'fail'
55 0 0 defined wantarray ? :
74 2 0 defined wantarray ? :
91 2 0 defined wantarray ? :
107 2 0 defined wantarray ? :
119 0 1 unless ($$self{'pending'})
121 0 0 if $code
127 0 1 if (my $apply = $self->can('apply'))
131 0 1 $self->has_pending ? :
133 0 1 if $code
148 4 2 if $event ~~ ['item', 'done']
161 0 6 unless my $event = shift()
181 1 0 if $self->has_pending