Branch Coverage

blib/lib/Mojolicious/Plugin/Authorization/AccessControl.pm
Criterion Covered Total %
branch 28 32 87.5


line true false branch
23 2 6 if exists $args->{'get_roles'}
24 0 8 if defined $get_roles and ref $get_roles ne "CODE"
27 2 6 if (exists $args->{'log'})
28 1 1 if (defined $args->{'log'}) { }
29 1 0 if (ref $args->{'log'} and $args->{'log'}->isa("Mojo::Log"))
42 4 29 if ($c->tx->connection)
43 2 2 unless defined $c->stash($stash_ac)
65 2 0 if @params
66 1 1 if @params
73 6 0 unless not defined $_->{'resource'}
16 9 if defined $resource
74 2 4 unless not defined $_->{'action'}
16 9 if defined $action
86 16 9 if defined $action
87 16 9 if defined $resource
88 2 23 if (my $f = &$get_get_attrs($resource, $action))