| blib/lib/Plack/Middleware/Deflater.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 8 | 25 | 32.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 44 | 1 | 0 | 0 | $h->exists('Cache-Control') and $h->get('Cache-Control') =~ /\bno-transform\b/ |
| 88 | 0 | 0 | 1 | $$res[2] and ref $$res[2] |
| 0 | 0 | 1 | $$res[2] and ref $$res[2] and ref $$res[2] eq 'ARRAY' | |
| 141 | 0 | 0 | 1 | not $$self{'header'} and $$self{'encoding'} eq 'gzip' |
| 154 | 0 | 0 | 0 | not $$self{'header'} and $$self{'encoding'} eq 'gzip' |
| line | l | !l | condition |
|---|---|---|---|
| 31 | 1 | 0 | $h->get('Content-Type') || '' |
| 49 | 0 | 1 | $h->get('Vary') || '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 44 | 0 | 0 | 1 | Plack::Util::status_with_no_entity_body($$res[0]) or $h->exists('Cache-Control') and $h->get('Cache-Control') =~ /\bno-transform\b/ |
| 75 | 1 | 0 | 0 | $encoding eq 'gzip' or $encoding eq 'deflate' |