Branch Coverage

blib/lib/MojoMojo/Controller/Admin.pm
Criterion Covered Total %
branch 9 62 14.5


line true false branch
28 1 3 unless ($user and $user->is_admin)
57 0 0 unless ($form->submitted)
86 0 0 unless ($c->model('DBIC::Person')->get_user($user))
92 0 0 $form->params->{'check_permission_on_view'} ? :
94 0 0 $form->params->{'cache_permission_data'} ? :
95 0 0 $form->params->{'open_registration'} ? :
96 0 0 $form->params->{'restricted_user'} ? :
97 0 0 $form->params->{'use_captcha'} ? :
98 0 0 $form->params->{'disable_search'} ? :
99 0 0 $form->params->{'enable_emoticons'} ? :
100 0 0 $form->params->{'enforce_login'} ? :
101 0 0 $form->params->{'create_allowed'} ? :
102 0 0 $form->params->{'delete_allowed'} ? :
103 0 0 $form->params->{'edit_allowed'} ? :
104 0 0 $form->params->{'view_allowed'} ? :
106 0 0 $form->params->{'attachment_allowed'} ? :
173 0 0 if ($role) { }
176 0 0 unless ($c->forward('handle_role_form', [$role]))
197 0 0 if ($form->submitted_and_valid)
202 0 0 $params->{'active'} ? :
206 0 0 if $role
210 0 0 if ($role)
217 0 0 if ($params->{'role_members'})
221 0 0 ref $params->{'role_members'} eq 'ARRAY' ? :
251 0 0 $user->active == 1 ? :
274 0 0 unless $body
287 0 0 if $c->stash->{'precompile_off'}
318 1 4 $_->id == 1 ? :
320 1 2 grep({$_->{'can_delete'} == 0;} @descendants) ? :
322 1 0 if ($form->submitted_and_valid and $stash->{'allowed_to_delete'})
352 1 10 if (ref $table->{'column'}) { }