lib/Net/OAuth2/Profile.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 21 | 63 | 33.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
124 | 9 | 0 | 1 | @_ == 1 && ref $_[0] eq 'HASH' |
157 | 0 | 0 | 0 | $content && length $content |
197 | 2 | 0 | 0 | &blessed($uri_base) && $uri_base->isa('URI') |
line | l | !l | condition |
---|---|---|---|
57 | 0 | 2 | $args->{'token_scheme'} || $args->{'bearer_token_scheme'} || 'auth-header:Bearer' |
61 | 0 | 2 | $args->{'access_token_method'} || 'POST' |
62 | 0 | 2 | $args->{'access_token_param'} || [] |
72 | 1 | 7 | $$args{$c . '_method'} || 'POST' |
73 | 0 | 8 | $$args{$c . '_param'} || [] |
142 | 0 | 0 | $opt || 'OAuth' |
146 | 0 | 0 | $opt || 'oauth_token' |
155 | 0 | 0 | $opt || 'oauth_token' |
278 | 0 | 1 | $params{'code'} ||= "" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
55 | 0 | 2 | 0 | $args->{'user_agent'} || 'LWP::UserAgent'->new |
70 | 2 | 6 | 0 | $$args{$c . '_url'} || $$args{$c . '_path'} || "/oauth/$c" |
226 | 2 | 0 | 0 | $response->decoded_content || $response->content |
268 | 1 | 0 | 0 | $params{'scope'} ||= $self->scope |
269 | 0 | 0 | 1 | $params{'state'} ||= $self->state |
270 | 0 | 0 | 1 | $params{'hd'} ||= $self->hd |
271 | 0 | 1 | 0 | $params{'client_id'} ||= $self->id |
279 | 0 | 1 | 0 | $params{'client_id'} ||= $self->id |
280 | 0 | 1 | 0 | $params{'client_secret'} ||= $self->secret |
281 | 0 | 1 | 0 | $params{'grant_type'} ||= $self->grant_type |
288 | 0 | 0 | 0 | $params{'client_id'} ||= $self->id |
289 | 0 | 0 | 0 | $params{'client_secret'} ||= $self->secret |