Branch Coverage

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

line%coveragebranch
2550TFunless (is_utf8 $s)
3450TFunless _STRING $user
42100TFif ($user =~ /^(\w+)\.(\w+)$/) { }
100TFelsif ($user =~ /^\w+$/) { }
4950TFunless _IDENT($account)
5050TFunless _IDENT($role)
5350TFif (not $account)
5650TFif (not $self->has_user($account))
6250TFif (not $self->has_role($role))
71100TFif (defined $captcha) { }
100TFelsif (defined $password) { }
73100TFif (not $id or not $user_sol)
78100TFif ($$res[0][0] == 0)
85100TFif (not defined $true_sol)
88100TFif ($true_sol eq '1')
9250TFif ($Config{'frontend.debug'} and $account eq 'peee' and $role eq 'Poster')
93100TFif ($true_sol =~ /[a-z]/) { }
99100TFif (trim_sol($user_sol) ne trim_sol($true_sol))
105100TFif ($$res[0][0] == 0)
112100TFif ($$res[0][0] == 0)
121100TFif ($session_from_cookie)
126100TFif ($captcha_from_cookie)
131100TFif ($$self{'_use_cookie'})