Branch Coverage

lib/LWP/Authen/OAuth2/ServiceProvider.pm
Criterion Covered Total %
branch 5 52 9.6


line true false branch
30 0 6 if (not exists $opts->{'service_provider'}) { }
38 6 0 unless (defined $client_type)
54 0 6 if defined $opts->{'use_test_urls'}
58 12 0 if ($self->can($field)) { }
107 0 0 if (exists $default{$param} or exists $oauth2_args->{$param} or exists $opt{$param}) { }
138 0 0 if ($oauth2->is_strict) { }
142 0 0 if (exists $opt->{$param}) { }
0 0 elsif (defined $oauth2_args->{$param}) { }
0 0 elsif (defined $default->{$param}) { }
143 0 0 if (defined $opt->{$param}) { }
163 0 0 if (exists $source->{$param})
165 0 0 if (defined $source->{$param})
170 0 0 if ($opt == $source)
197 0 0 unless (defined $result->{$key})
216 0 0 if ('bearer' eq $type) { }
231 0 0 unless (defined $content)
239 0 0 if ($parse_error) { }
0 0 elsif ($data->{'error'}) { }
0 0 elsif (not $data->{'token_type'}) { }
258 0 0 if ($data->{'error_uri'})
263 0 0 if ($data->{'error_description'})
281 0 0 unless ($type =~ /^[\w\:]+\z/)
287 0 0 if ($@)
295 0 0 if (not ref $access_token) { }
301 0 0 if ($oauth2->access_token)
311 5 0 if ('default' eq $name) { }