Branch Coverage

blib/lib/MojoX/Encode/Gzip.pm
Criterion Covered Total %
branch 3 6 50.0


line true false branch
38 0 1 unless (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$")
48 0 1 if ref $body
49 0 1 if ref $body