Branch Coverage

blib/lib/Mojolicious/Plugin/Util/Callback.pm
Criterion Covered Total %
branch 14 16 87.5


line true false branch
19 3 29 if (ref $name and ref $name eq 'ARRAY') { }
11 18 elsif (ref $_[0] and ref $_[0] eq 'CODE') { }
34 3 1 if ($cb) { }
1 0 elsif ($flag and $flag eq '-once') { }
37 3 0 if (ref $cb and ref $cb eq 'CODE')
56 2 9 $_[0] && $_[0] eq '-once' ? :
59 2 3 if (exists $callback{$name} and $callback{$name}[0] and $callback{$name}[1])
84 17 1 if (exists $callback{$name} and $cb = $callback{$name}[0])