Branch Coverage

blib/lib/Dancer2/Plugin/Auth/OAuth/Provider.pm
Criterion Covered Total %
branch 24 38 63.1


line true false branch
53 1 67 if ref $v and ref $v eq "HASH"
55 3 65 if &blessed($v)
108 1 5 if ($self->protocol_version < 2) { }
120 1 0 if ($res->is_success) { }
135 2 3 unless $self->provider_settings->{'query_params'}{'authorize'}
147 0 0 if ($self->protocol_version < 2 or not defined $session_data->{$provider} or not defined $session_data->{$provider}{'refresh_token'})
148 0 0 if (defined defined $session_data->{$provider})
156 0 0 unless ($retval)
157 0 0 if (defined defined $session_data->{$provider})
179 1 5 if ($self->protocol_version < 2) { }
180 0 1 unless defined $request->param("oauth_token")
198 1 0 if ($ua_response->is_success)
214 5 0 if ($response->is_success) { }
217 2 3 if ($content_type =~ /json/ or $content_type =~ /javascript/) { }
226 18 57 if ($params->{$key})
230 0 5 unless ($keys_found)
236 0 5 unless (defined $params->{'issued_at'})
239 2 3 if ($params->{'expires_in'} and not defined $params->{'expires'})
244 20 55 if ($params->{$key})