| blib/lib/Net/Flotum/API/ExceptionHandler.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 8 | 12 | 66.6 |
| line | true | false | branch |
|---|---|---|---|
| 32 | 15 | 2 | unless $@ |
| 34 | 0 | 2 | unless defined $res |
| 35 | 1 | 1 | if ($res->code == 404 and not $res->content =~ /Endpoint not found/) |
| 38 | 0 | 1 | if ($res->code == 400 and ref $obj eq 'HASH' and ref $obj->{'error'} eq 'form_error') { } |
| 0 | 1 | elsif ($res->code == 400 and ref $obj eq 'ARRAY') { } | |
| 56 | 1 | 0 | if ($tries == 0 or $res->code != 500) |