Condition Coverage

blib/lib/MojoX/Encode/Gzip.pm
Criterion Covered Total %
condition 10 19 52.6


and 3 conditions

line !l l&&!r l&&r condition
39 1 0 1 index($accept, 'gzip') >= 0 and $length > $self->min_bytes
1 0 1 index($accept, 'gzip') >= 0 and $length > $self->min_bytes and $length < $self->max_bytes
0 0 1 index($accept, 'gzip') >= 0 and $length > $self->min_bytes and $length < $self->max_bytes and $res->code == 200
0 0 1 index($accept, 'gzip') >= 0 and $length > $self->min_bytes and $length < $self->max_bytes and $res->code == 200 and not $res->headers->header('Content-Encoding')
0 0 1 index($accept, 'gzip') >= 0 and $length > $self->min_bytes and $length < $self->max_bytes and $res->code == 200 and not $res->headers->header('Content-Encoding') and $res->headers->content_type =~ qr"^text|xml$|javascript$|^application/json$"

or 2 conditions

line l !l condition
28 1 1 $req->headers->header('Accept-Encoding') || ''
30 2 0 $res->body_size || 0