blib/lib/MojoMojo/Controller/User.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 9 | 46 | 19.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
118 | 0 | 0 | 0 | $page_user and $user |
0 | 0 | 0 | $page_user and $user and $page_user->id eq $user->id || $user->is_admin | |
238 | 0 | 0 | 0 | $c->stash->{'user'} and $c->stash->{'user'}->is_admin |
253 | 0 | 0 | 0 | $c->stash->{'user'} && $c->stash->{'user'}->is_admin |
2 | 0 | 0 | $c->pref('use_captcha') and not $c->stash->{'user'} && $c->stash->{'user'}->is_admin | |
281 | 1 | 0 | 0 | $c->stash->{'user'} and $c->stash->{'user'}->is_admin |
353 | 0 | 0 | 0 | $user and $check eq md5_hex($user->email . $c->pref('entropy')) |
436 | 0 | 0 | 0 | $user and $c->stash->{'user'} |
0 | 0 | 0 | $user and $c->stash->{'user'} and $c->stash->{'user'}->is_admin || $user->id eq $c->stash->{'user'}->id |
line | l | !l | condition |
---|---|---|---|
64 | 1 | 5 | $c->stash->{'template'} ||= 'user/login.tt' |
89 | 0 | 2 | $c->req->param('page') || 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
32 | 1 | 1 | 12 | $c->stash->{'message'} ||= $c->flash->{'message'} |
118 | 0 | 0 | 0 | $page_user->id eq $user->id || $user->is_admin |
238 | 2 | 0 | 0 | $c->pref('open_registration') or $c->stash->{'user'} and $c->stash->{'user'}->is_admin |
256 | 0 | 0 | 0 | $c->session->{'lang'} || $c->pref('default_lang') |
436 | 0 | 0 | 0 | $c->stash->{'user'}->is_admin || $user->id eq $c->stash->{'user'}->id |