Branch Coverage

lib/LWP/Authen/OAuth2.pm
Criterion Covered Total %
branch 3 54 5.5


line true false branch
48 13 1 unless ($is_seen{$opt})
64 0 6 if ($self->{'token_string'})
93 0 0 ref $parameters[1] ? :
100 0 0 ref $parameters[1] ? :
113 0 0 if ($self->{'access_token'}) { }
131 0 0 if (ref $tokens) { }
134 0 0 if ($self->{'save_tokens'} and not $skip_save)
151 0 0 if ($url =~ / /) { }
167 0 0 $uri =~ /^http/ ? :
168 0 0 if ($self->{'service_provider'}->can("default_api_headers"))
170 0 0 ref $headers eq 'HASH' ? :
173 0 0 $params ? :
175 0 0 unless ($response->is_success)
182 0 0 unless $content
199 0 0 if (not $self->{'access_token'}) { }
210 0 0 unless ($self->{'access_token'})
216 0 0 if ($self->{'prerefresh'})
218 0 0 if ($tokens)
219 0 0 unless (ref $tokens)
223 0 0 if ($data and not $@)
224 0 0 unless my $class = $data->{'_class'}
226 0 0 if ($@)
253 0 0 unless $self->{'access_token'}
279 0 0 if ($self->{'error_handler'}) { }
313 0 0 if ($@)
318 0 0 unless my $class = $tokens->{'_class'}
321 0 0 if ($@)