Branch Coverage

blib/lib/WebService/Akeneo/Transport.pm
Criterion Covered Total %
branch 12 28 42.8


line true false branch
27 0 0 $b ? :
32 0 1 if $opt{'query'}
37 1 0 if (exists $opt{'ndjson'}) { }
0 0 elsif (exists $opt{'json'}) { }
39 0 1 unless ref $records eq "ARRAY"
40 0 1 unless @$records
53 1 0 if $on_request
59 1 0 if ($rate_guard)
61 0 1 if (($h->header("X-Rate-Limit-Remaining") // "") eq 0)
67 0 1 if ($res->is_error and ($res->code // 0) == 401)
73 0 1 if ($res->is_error)
79 0 1 if $on_response
89 0 1 if ($ct =~ m[application/vnd\.akeneo\.collection\+json]iu)
93 1 0 if $ct =~ m[application/json]iu