line |
true |
false |
branch |
210
|
1 |
683 |
unless grep(($_ eq $method), ("DELETE", "GET", "PATCH", "POST", "PUT")) |
215
|
3 |
680 |
if (my $host = delete $args{'host'}) |
219
|
6 |
677 |
if (my $query = delete $args{'query'}) |
225
|
3 |
680 |
if (my $headers = delete $args{'headers'}) |
231
|
112 |
571 |
if ($self->_token_required($method, $path) and not $self->has_token($request)) |
237
|
227 |
344 |
if ($options) |
238
|
1 |
226 |
unless ref $options eq "HASH" |
243
|
1 |
225 |
if $options->{'prepare_request'} and ref $options->{'prepare_request'} ne "CODE" |
245
|
224 |
1 |
if ($options->{'prepare_request'}) |
250
|
9 |
560 |
if ($params) |
251
|
1 |
8 |
unless ref $params eq "HASH" |
270
|
228 |
340 |
if (my $cached_response = $self->shared_cache->get($cache_key)) |
279
|
0 |
228 |
if ($response->code || 0) == 304 |
296
|
845 |
419 |
if $self->_has_token |
299
|
306 |
113 |
unless $request |
301
|
1 |
112 |
if $request->header("Authorization") |
322
|
260 |
216 |
unless defined $args->{'user'} |
323
|
282 |
194 |
unless defined $args->{'repo'} |
342
|
3 |
1341 |
if exists $args{$attr} |
345
|
691 |
650 |
if $self->$has_attr |
357
|
451 |
232 |
if ($self->has_token) |
364
|
304 |
379 |
if ($data) |
365
|
302 |
2 |
if ref $data |
371
|
204 |
479 |
if ($self->has_prepare_request) |
385
|
30 |
653 |
if $TOKEN_REQUIRED{$key} |
388
|
327 |
33832 |
if $key =~ /$regexp/ |
405
|
683 |
0 |
if ($self->has_per_page) |
410
|
203 |
480 |
if ($self->has_jsonp_callback) |
422
|
21 |
450 |
unless $args->{'user'} |
423
|
21 |
429 |
unless $args->{'repo'} |