Branch Coverage

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


line true false branch
8 94 0 if $_[0]->on("error", $_[1])
13 17527 30551 if (my $s = $self->{'events'}{$name}) { }
19 1 30550 if $name eq "error"
27 19487 0 if push @{$_[0]{'events'}{$_[1]};}, $_[2]
48 7627 71 if ($cb) { }
50 7493 134 unless @{$self->{'events'}{$name};}