| blib/lib/WWW/VastAI/Role/HTTP.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 24 | 54.1 |
| line | true | false | branch |
|---|---|---|---|
| 38 | 3 | 6 | defined $body ? : |
| 50 | 0 | 2 | unless $params |
| 52 | 0 | 3 | unless defined $value |
| 53 | 2 | 1 | if ref $value |
| 65 | 2 | 44 | if $opts{'params'} |
| 78 | 25 | 21 | if (exists $opts{'body'}) { } |
| 94 | 46 | 0 | if (defined $content and $content =~ /^\s*[\{\[]/) { } |
| 0 | 0 | elsif (defined $content and length $content) { } | |
| 101 | 0 | 46 | if ($response->status < 200 or $response->status >= 300) |
| 103 | 0 | 0 | defined $data ? : |
| 0 | 0 | ref $data eq 'HASH' ? : | |
| 115 | 0 | 46 | unless $self->api_key |