lib/Net/OAuth2/Profile.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 21 | 63 | 33.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
123 | 9 | 0 | 1 | @_ == 1 && ref $_[0] eq 'HASH' |
156 | 0 | 0 | 0 | $content && length $content |
191 | 2 | 0 | 0 | &blessed($uri_base) && $uri_base->isa('URI') |
line | l | !l | condition |
---|---|---|---|
56 | 0 | 2 | $args->{'token_scheme'} || $args->{'bearer_token_scheme'} || 'auth-header:Bearer' |
60 | 0 | 2 | $args->{'access_token_method'} || 'POST' |
61 | 0 | 2 | $args->{'access_token_param'} || [] |
71 | 1 | 7 | $$args{$c . '_method'} || 'POST' |
72 | 0 | 8 | $$args{$c . '_param'} || [] |
141 | 0 | 0 | $opt || 'OAuth' |
145 | 0 | 0 | $opt || 'oauth_token' |
154 | 0 | 0 | $opt || 'oauth_token' |
270 | 0 | 1 | $params{'code'} ||= '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
54 | 0 | 2 | 0 | $args->{'user_agent'} || 'LWP::UserAgent'->new |
69 | 2 | 6 | 0 | $$args{$c . '_url'} || $$args{$c . '_path'} || "/oauth/$c" |
218 | 2 | 0 | 0 | $response->decoded_content || $response->content |
260 | 1 | 0 | 0 | $params{'scope'} ||= $self->scope |
261 | 0 | 0 | 1 | $params{'state'} ||= $self->state |
262 | 0 | 0 | 1 | $params{'hd'} ||= $self->hd |
263 | 0 | 1 | 0 | $params{'client_id'} ||= $self->id |
271 | 0 | 1 | 0 | $params{'client_id'} ||= $self->id |
272 | 0 | 1 | 0 | $params{'client_secret'} ||= $self->secret |
273 | 0 | 1 | 0 | $params{'grant_type'} ||= $self->grant_type |
280 | 0 | 0 | 0 | $params{'client_id'} ||= $self->id |
281 | 0 | 0 | 0 | $params{'client_secret'} ||= $self->secret |