blib/lib/MojoMojo/Controller/PageAdmin.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 9 | 39 | 23.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
47 | 20 | 0 | 0 | $c->req->params->{'pass'} and not $c->stash->{'user'} |
52 | 0 | 0 | 0 | $user and $user->can_edit($c->stash->{'path'}) |
53 | 0 | 0 | 0 | $user and not $c->pref('restricted_user') |
109 | 20 | 0 | 0 | $user_id == 1 and not $c->pref('anonymous_user') |
115 | 20 | 0 | 0 | $user_id == 1 and $c->pref('use_captcha') |
164 | 4 | 1 | 1 | $c->stash->{'content'} and $c->stash->{'content'}->body eq $form->params->{'body'} |
175 | 4 | 1 | 0 | $c->stash->{'content'} and $c->req->params->{'version'} != $c->stash->{'content'}->version |
283 | 0 | 0 | 0 | $current{$_} && $current{$_}{'page'} |
297 | 0 | 0 | 0 | $parent_path and $parent_path =~ /^$path/ |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
38 | 0 | 0 | 0 | $operation || $c->loc('update') |
2 | 0 | 0 | $c->stash->{'message'} ||= $c->loc('No permissions to x this page', $operation || $c->loc('update')) | |
116 | 0 | 0 | 0 | $c->session->{'lang'} || $c->pref('default_lang') |
187 | 0 | 0 | 0 | $c->stash->{'merged_body'} ||= $orig_content->merge_content($c->stash->{'content'}, $form->params->{'body'}, $c->loc('THEIR CHANGES'), $c->loc('YOUR CHANGES'), $c->loc('END OF CONFLICT')) |