Branch Coverage

blib/lib/Plack/Middleware/Text/Minify.pm
Criterion Covered Total %
branch 21 24 87.5


line true false branch
26 1 18 if $env->{'psgix.no-minify'}
29 3 15 unless ($method =~ /^(GET|POST)$/)
33 4 11 if (my $match = $self->path)
37 2 2 unless (XXX and &$match($path, $env) or $path =~ /$match/)
49 0 13 unless XXX
51 0 13 if @$res < 3
53 2 11 if Plack::Util::status_with_no_entity_body($res->[0])
56 4 7 if (my $match = $self->type) { }
58 2 2 unless XXX and &$match($type, $res) or $type =~ /$match/
62 2 5 unless $type =~ m[^text/]
66 6 1 if (XXX) { }
75 7 0 if (Plack::Util::header_exists($res->[1], "content-length"))