Condition Coverage

blib/lib/Authorization/AccessControl/Grant.pm
Criterion Covered Total %
condition 18 23 78.2


and 3 conditions

line !l l&&!r l&&r condition
24 36 24 1 defined $role and ref $role || $role eq ''
25 2 0 58 $resource and not ref $resource
26 2 0 56 $action and not ref $action
27 0 0 56 defined $restrictions and ref $restrictions eq "HASH"

or 2 conditions

line l !l condition
92 31 51 $self->role // ""
61 21 $priv->role // ""
104 6 18 $roles // []
105 17 1 $attributes // {}

or 3 conditions

line l !l&&r !l&&!r condition
24 0 1 24 ref $role || $role eq ''