blib/lib/Plack/Middleware/HatenaOAuth.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 12 | 16 | 75.0 |
line | true | false | branch |
---|---|---|---|
25 | 0 | 2 | unless $self->consumer_key and $self->consumer_secret |
38 | 2 | 0 | $self->{'ua'} ? : |
65 | 0 | 1 | unless $res->is_success |
86 | 3 | 2 | if (not $verifier) { } |
87 | 1 | 2 | unless my $request_token = $self->_get_request_token([split(/\?/, $req->uri, 2)]->[0]) |
99 | 1 | 1 | unless my $access_token = $self->_get_access_token($verifier, $session->get('hatenaoauth_request_token')) |
110 | 1 | 0 | if $user_info |
121 | 5 | 1 | if $req->path eq $self->login_path |