Branch Coverage: lib/OpenAPI/Handler/Login.pm

# Branch Coverage

File: | lib/OpenAPI/Handler/Login.pm
Coverage: | 82.6%

line | % | coverage | branch
--- | --- | --- | ---
25 | 50 | T | F | unless (is_utf8 $s)
34 | 50 | T | F | unless _STRING $user
42 | 100 | T | F | if ($user =~ /^(\w+)\.(\w+)$/) { }
| 100 | T | F | elsif ($user =~ /^\w+$/) { }
49 | 50 | T | F | unless _IDENT($account)
50 | 50 | T | F | unless _IDENT($role)
53 | 50 | T | F | if (not $account)
56 | 50 | T | F | if (not $self->has_user($account))
62 | 50 | T | F | if (not $self->has_role($role))
71 | 100 | T | F | if (defined $captcha) { }
| 100 | T | F | elsif (defined $password) { }
73 | 100 | T | F | if (not $id or not $user_sol)
78 | 100 | T | F | if ($$res[0][0] == 0)
85 | 100 | T | F | if (not defined $true_sol)
88 | 100 | T | F | if ($true_sol eq '1')
92 | 50 | T | F | if ($Config{'frontend.debug'} and $account eq 'peee' and $role eq 'Poster')
93 | 100 | T | F | if ($true_sol =~ /[a-z]/) { }
99 | 100 | T | F | if (trim_sol($user_sol) ne trim_sol($true_sol))
105 | 100 | T | F | if ($$res[0][0] == 0)
112 | 100 | T | F | if ($$res[0][0] == 0)
121 | 100 | T | F | if ($session_from_cookie)
126 | 100 | T | F | if ($captcha_from_cookie)
131 | 100 | T | F | if ($$self{'_use_cookie'})