| 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'}) |
|
226
|
3 |
680 |
if (my $headers = delete $args{'headers'}) |
|
232
|
112 |
571 |
if ($self->_token_required($method, $path) and not $self->has_token($request)) |
|
238
|
227 |
344 |
if ($options) |
|
239
|
1 |
226 |
unless ref $options eq "HASH" |
|
244
|
1 |
225 |
if $options->{'prepare_request'} and ref $options->{'prepare_request'} ne "CODE" |
|
246
|
224 |
1 |
if ($options->{'prepare_request'}) |
|
251
|
19 |
550 |
if ($params) |
|
252
|
1 |
18 |
unless ref $params eq "HASH" |
|
271
|
231 |
337 |
if (my $cached_response = $self->shared_cache->get($cache_key)) |
|
280
|
0 |
231 |
if ($response->code || 0) == 304 |
|
297
|
845 |
419 |
if $self->_has_token |
|
300
|
306 |
113 |
unless $request |
|
302
|
1 |
112 |
if $request->header("Authorization") |
|
323
|
260 |
216 |
unless defined $args->{'user'} |
|
324
|
282 |
194 |
unless defined $args->{'repo'} |
|
343
|
3 |
1341 |
if exists $args{$attr} |
|
346
|
691 |
650 |
if $self->$has_attr |
|
358
|
451 |
232 |
if ($self->has_token) |
|
365
|
304 |
379 |
if ($data) |
|
366
|
302 |
2 |
if ref $data |
|
372
|
204 |
479 |
if ($self->has_prepare_request) |
|
386
|
30 |
653 |
if $TOKEN_REQUIRED{$key} |
|
389
|
327 |
33832 |
if $key =~ /$regexp/ |
|
406
|
683 |
0 |
if ($self->has_per_page) |
|
411
|
203 |
480 |
if ($self->has_jsonp_callback) |
|
423
|
21 |
450 |
unless $args->{'user'} |
|
424
|
21 |
429 |
unless $args->{'repo'} |