blib/lib/Plack/Middleware/FormatOutput.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 6 | 11 | 54.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
88 | 0 | 1 | 6 | not Plack::Util::status_with_no_entity_body($res->[0]) and defined $res->[2] |
91 | 0 | 6 | 0 | $res->[1] and @{$res->[1];} |
120 | 0 | 7 | 0 | not $accept and $env->{'HTTP_ACCEPT'} |
line | l | !l | condition |
---|---|---|---|
132 | 6 | 1 | $accept || 'application/json' |