| blib/lib/WebService/Shutterstock/Client.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 17 | 26 | 65.3 |
| line | true | false | branch |
|---|---|---|---|
| 20 | 20 | 32 | if (@_) |
| 28 | 19 | 2 | if (ref $query eq 'HASH') |
| 37 | 1 | 0 | if (ref $query eq 'HASH') |
| 46 | 0 | 1 | if (ref $content eq 'HASH') |
| 59 | 8 | 0 | if (ref $content eq 'HASH') |
| 85 | 0 | 31 | if (my $error = $response->header('X-Died')) |
| 92 | 1 | 30 | if (my $h = $handlers{$code}) { } |
| 27 | 3 | elsif ($code <= 299) { } | |
| 0 | 3 | elsif ($code <= 399) { } | |
| 3 | 0 | elsif ($code <= 499) { } | |
| 0 | 0 | elsif ($code >= 500) { } | |
| 95 | 26 | 1 | $content_type =~ m[^application/json] && $self->responseContent ? : |
| 108 | 0 | 12 | if ($ENV{'SS_API_DEBUG'}) |