Condition Coverage

blib/lib/Plack/Middleware/Deflater.pm
Criterion Covered Total %
condition 9 28 32.1


and 3 conditions

line !l l&&!r l&&r condition
46 1 0 0 $h->exists("Cache-Control") and $h->get("Cache-Control") =~ /\bno-transform\b/
58 1 0 0 $h->exists("Content-Encoding") and $h->get("Content-Encoding") ne "identity"
90 0 0 1 $res->[2] and ref $res->[2]
0 0 1 $res->[2] and ref $res->[2] and ref $res->[2] eq "ARRAY"
145 0 0 1 not $self->{'header'} and $self->{'encoding'} eq "gzip"
159 0 0 0 not $self->{'header'} and $self->{'encoding'} eq "gzip"

or 2 conditions

line l !l condition
33 1 0 $h->get('Content-Type') || ''
52 0 1 $h->get('Vary') || ''

or 3 conditions

line l !l&&r !l&&!r condition
46 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/
81 1 0 0 $encoding eq "gzip" or $encoding eq "deflate"