Branch Coverage

blib/lib/Mojolicious/Plugin/GzipStatic.pm
Criterion Covered Total %
branch 4 8 50.0


line true false branch
14 0 1 unless my $asset = $self->file($rel)
18 1 0 $rel =~ /\.(\w+)$/ ? :
19 1 0 if (defined $type and $type =~ /text|xml|javascript|json/ and ($c->req->headers->accept_encoding // '') =~ /gzip/i)
30 0 1 if $headers->content_type