Branch Coverage: lib/Yukki/Web/Controller/Login.pm

# Branch Coverage

File: | lib/Yukki/Web/Controller/Login.pm
Coverage: | 11.8%

line | % | coverage | branch
--- | --- | --- | ---
34 | 50 | T | F | if ($action eq 'page') { }
| 50 | T | F | elsif ($action eq 'submit') { }
| 0 | T | F | elsif ($action eq 'profile') { }
| 0 | T | F | elsif ($action eq 'update') { }
| 0 | T | F | elsif ($action eq 'exit') { }
83 | 0 | T | F | unless $ctx->session->{'user'}
87 | 0 | T | F | unless ($login_name eq $ctx->session->{'user'}{'login_name'})
100 | 0 | T | F | unless ($name =~ /\S+/u)
106 | 0 | T | F | if (@emails != 1)
111 | 0 | T | F | if ($invalid)
127 | 0 | T | F | if (length $password_old)
133 | 0 | T | F | unless ($okay)
138 | 0 | T | F | if (length $password_new == 0)
143 | 0 | T | F | if ($password_old eq $password_new)
148 | 0 | T | F | if ($password_new ne $password_con)
198 | 50 | T | F | unless ($user and $self->check_password($user, $password))
202 | 50 | T | F | if ($ctx->has_errors) { }