Condition Coverage

lib/Maypole/Plugin/Authorization.pm
Criterion Covered Total %
condition 40 54 74.0


and 3 conditions

line !l l&&!r l&&r condition
115 0 0 2 $r->user and $entity

or 2 conditions

line l !l condition
43 2 0 $r->config->auth || {}
44 1 1 $$conf{'permission_table'} || 'permissions'
45 1 1 $$conf{'role_assign_table'} || 'role_assignments'
46 1 1 $$conf{'user_fk'} || 'user_id'
67 2 0 $r->config->auth || {}
68 1 1 $$conf{'permission_table'} || 'permissions'
69 1 1 $$conf{'role_assign_table'} || 'role_assignments'
70 1 1 $$conf{'user_fk'} || 'user_id'
89 2 0 $r->config->auth || {}
90 1 1 $$conf{'permission_table'} || 'permissions'
91 1 1 $$conf{'role_assign_table'} || 'role_assignments'
92 1 1 $$conf{'user_fk'} || 'user_id'

or 3 conditions

line l !l&&r !l&&!r condition
47 1 1 0 $$conf{'user_class'} || ref($r) . '::User'
71 1 1 0 $$conf{'user_class'} || ref($r) . '::User'
93 1 1 0 $$conf{'user_class'} || ref($r) . '::User'
114 0 2 0 $entity ||= $r->model_class
132 4 0 1 $r->user or $userid
133 2 2 0 $userid ||= $r->user->id
149 10 0 1 $r->user or $userid
150 5 5 0 $userid ||= $r->user->id
151 5 4 1 $class ||= $r->model_class