blib/lib/Net/Flotum/API/ExceptionHandler.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 4 | 10 | 40.0 |
line | true | false | branch |
---|---|---|---|
31 | 19 | 1 | unless $@ |
33 | 0 | 1 | unless defined $res |
34 | 1 | 0 | if ($res->code == 404 and not $res->content =~ /Endpoint not found/) |
37 | 0 | 0 | if ($res->code == 400 and ref $obj eq 'HASH' and ref $obj->{'error'} eq 'form_error') |
48 | 0 | 0 | if ($tries == 0 or $res->code != 500) |