Branch Coverage

lib/CatalystX/Eta/Controller/AutoResultDELETE.pm
Criterion Covered Total %
branch 6 22 27.2


line true false branch
16 0 1 unless $something
19 1 0 if (exists $self->config->{'delete_roles'})
21 0 1 unless ($c->check_any_user_role(@{$$config{'delete_roles'};}))
26 0 0 if ($do_detach == 1 and exists $config->{'object_key'} and $c->stash->{$config->{'object_key'}} and $c->stash->{$config->{'object_key'}}->can('id') || $c->stash->{$config->{'object_key'}}->can('user_id') || $c->stash->{$config->{'object_key'}}->can('created_by'))
35 0 0 $obj->can('roles') && $obj->can('id') ? :
0 0 $obj->can('user_id') && defined $obj->user_id ? :
0 0 $obj->can('created_by') && defined $obj->created_by ? :
43 0 0 if $obj_id != $user_id
50 0 1 if ($do_detach)
60 1 0 if (ref $self->config->{'before_delete'} eq 'CODE')
64 0 1 if $delete