Condition Coverage

lib/CatalystX/Eta/Controller/CheckRoleForPUT.pm
Criterion Covered Total %
condition 9 24 37.5


and 3 conditions

line !l l&&!r l&&r condition
24 1 1 0 $do_detach == 1 and exists $config->{'object_key'}
0 0 1 $do_detach == 1 and exists $config->{'object_key'} and $c->stash->{$config->{'object_key'}}
0 0 1 $do_detach == 1 and exists $config->{'object_key'} and $c->stash->{$config->{'object_key'}} and not $config->{'check_only_roles'}
0 1 0 $do_detach == 1 and exists $config->{'object_key'} and $c->stash->{$config->{'object_key'}} and not $config->{'check_only_roles'} and $c->stash->{$config->{'object_key'}}->can('id') || $c->stash->{$config->{'object_key'}}->can('user_id') || $c->stash->{$config->{'object_key'}}->can('created_by')
36 1 0 0 $obj->can('created_by') && defined $obj->created_by
1 0 0 $obj->can('user_id') && defined $obj->user_id
0 0 1 $obj->can('roles') && $obj->can('id')

or 3 conditions

line l !l&&r !l&&!r condition
24 1 0 0 $c->stash->{$config->{'object_key'}}->can('id') || $c->stash->{$config->{'object_key'}}->can('user_id') || $c->stash->{$config->{'object_key'}}->can('created_by')