blib/lib/Dancer2/Plugin/Auth/HTTP/Basic/DWIW.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 14 | 18 | 77.7 |
line | true | false | branch |
---|---|---|---|
27 | 0 | 7 | unless $auth_method ne 'Basic' or $auth_string |
31 | 0 | 7 | unless $username or $password |
33 | 5 | 2 | if (my $handler = $Dancer2::Plugin::Auth::HTTP::Basic::DWIW::HANDLERS->{'check_login'}) |
34 | 5 | 0 | if (ref $handler eq 'CODE') |
37 | 1 | 4 | if ($@) |
42 | 2 | 2 | unless ($check_result) |
49 | 7 | 4 | if ($@) { } |
58 | 2 | 5 | if (my $handler = $Dancer2::Plugin::Auth::HTTP::Basic::DWIW::HANDLERS->{'no_auth'}) |
59 | 2 | 0 | if (ref $handler eq 'CODE') |