Branch Coverage

lib/LWP/Authen/OAuth2/ServiceProvider.pm
Criterion Covered Total %
branch 11 54 20.3


line true false branch
30 2 6 if (not exists $opts->{'service_provider'}) { }
38 6 0 unless (defined $client_type)
54 0 8 if defined $opts->{'use_test_urls'}
58 16 0 if ($self->can($field)) { }
107 0 0 if (exists $default{$param} or exists $oauth2_args->{$param} or exists $opt{$param}) { }
138 0 1 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)
191 3 3 exists $oauth2_args->{$_} ? :
198 1 3 unless (defined $result->{$key})
217 0 0 if ('bearer' eq $type) { }
232 0 0 unless (defined $content)
240 0 0 if ($parse_error) { }
0 0 elsif ($data->{'error'}) { }
0 0 elsif (not $data->{'token_type'}) { }
259 0 0 if ($data->{'error_uri'})
264 0 0 if ($data->{'error_description'})
282 0 0 unless ($type =~ /^[\w\:]+\z/)
288 0 0 if ($@)
296 0 0 if (not ref $access_token) { }
302 0 0 if ($oauth2->access_token)
312 5 0 if ('default' eq $name) { }