Condition Coverage

blib/lib/Mojolicious/Plugin/Util/Callback.pm
Criterion Covered Total %
condition 19 29 65.5


and 3 conditions

line !l l&&!r l&&r condition
19 29 0 3 ref $name and ref $name eq 'ARRAY'
18 0 11 ref $_[0] and ref $_[0] eq 'CODE'
34 0 0 1 $flag and $flag eq '-once'
37 0 0 3 ref $cb and ref $cb eq 'CODE'
56 9 0 2 $_[0] && $_[0] eq '-once'
59 5 6 0 exists $callback{$name} and $callback{$name}[0]
1 5 0 exists $callback{$name} and $callback{$name}[0] and $callback{$name}[1]
84 1 0 17 exists $callback{$name} and $cb = $callback{$name}[0]

or 2 conditions

line l !l condition
71 4 5 $callback{$name} //= []

or 3 conditions

line l !l&&r !l&&!r condition
73 1 1 7 $_->[1] ||= $once