Branch Coverage

blib/lib/Role/EventEmitter.pm
Criterion Covered Total %
branch 10 12 83.3


line true false branch
17 1 0 if $_[0]->on('error', $_[1])
22 29 2 if (my $s = $self->_events->{$name}) { }
28 1 1 if $name eq 'error'
36 19 0 if push @{$_[0]->_events->{$_[1]};}, $_[2]
59 14 1 if ($cb) { }
61 9 5 unless @{$self->_events->{$name};}