blib/lib/Mojolicious/Plugin/Authorization.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 12 | 17 | 70.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
12 | 5 | 4 | 20 | $args->{$sub_ref} and ref $args->{$sub_ref} eq 'CODE' |
23 | 0 | 2 | 1 | $priv && &$has_priv_cb($c, $priv, $extradata) |
24 | 1 | 0 | 2 | $fail_render and not $res |
32 | 0 | 3 | 2 | $role && &$is_role_cb($c, $role, $extradata) |
33 | 2 | 0 | 3 | $fail_render and not $res |
line | l | !l | condition |
---|---|---|---|
9 | 11 | 0 | $args ||= {} |