Branch Coverage

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


line true false branch
34 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$")
44 0 1 if ref $body
45 0 1 if ref $body