Branch Coverage

blib/lib/App/Dochazka/REST/ACL.pm
Criterion Covered Total %
branch 2 30 6.6


line true false branch
117 10 10 exists $acl_lookup{$ARGS{'privlevel'}}{$ARGS{'profile'}} ? :
139 0 0 if ($current_priv eq 'passerby' or $current_priv eq 'inactive')
142 0 0 if ($context->{'request_entity'}{'eid'}) { }
144 0 0 if ($desired_eid != $current_eid)
145 0 0 if $current_priv eq 'active'
171 0 0 if $priv eq 'admin'
173 0 0 if (my $eid = $pl{'eid'}) { }
0 0 elsif (my $nick = $pl{'nick'}) { }
0 0 elsif (my $sec_id = $pl{'sec_id'}) { }
206 0 0 if $priv eq 'admin'
208 0 0 if (my $eid = $pl{'eid'}) { }
0 0 elsif (my $nick = $pl{'nick'}) { }
0 0 elsif (my $sec_id = $pl{'sec_id'}) { }
221 0 0 if ($status->not_ok)
228 0 0 if (defined $emp->supervisor and defined $ce->eid and $emp->supervisor eq $ce->eid)