Branch Coverage

blib/lib/Mojolicious/Plugin/Authorization.pm
Criterion Covered Total %
branch 14 14 100.0


line true false branch
12 9 20 unless $args->{$sub_ref} and ref $args->{$sub_ref} eq 'CODE'
22 1 2 if ref $priv eq 'ARRAY'
23 1 2 $priv && &$has_priv_cb($c, $priv, $extradata) ? :
24 2 1 if $fail_render and not $res
31 1 4 if ref $role eq 'ARRAY'
32 2 3 $role && &$is_role_cb($c, $role, $extradata) ? :
33 3 2 if $fail_render and not $res