Condition Coverage

blib/lib/Mojolicious/Plugin/Gzip.pm
Criterion Covered Total %
condition 23 26 88.4


and 3 conditions

line !l l&&!r l&&r condition
19 5 1 4 $min_size =~ /^\d+$/ and $min_size > 0
34 1 8 23 $accept_encoding =~ /gzip/i and $body_size >= $min_size
9 3 20 $accept_encoding =~ /gzip/i and $body_size >= $min_size and $res->code == 200
11 1 19 $accept_encoding =~ /gzip/i and $body_size >= $min_size and $res->code == 200 and not $res->headers->content_encoding
40 4 1 5 length $etag > 2 and substr($etag, 0, 1) eq '"'
5 0 5 length $etag > 2 and substr($etag, 0, 1) eq '"' and substr($etag, -1, 1) eq '"'

or 2 conditions

line l !l condition
16 10 2 delete $config->{'min_size'} // ''
23 4 5 $min_size //= 860
30 32 0 $req->headers->accept_encoding // ''
32 32 0 $res->body_size // 0