Condition Coverage

blib/lib/Plack/App/MCCS.pm
Criterion Covered Total %
condition 65 99 65.6


and 3 conditions

line !l l&&!r l&&r condition
363 3 1 0 $self->defaults and exists $self->defaults->{'minify'}
1 0 0 $self->defaults and exists $self->defaults->{'minify'} and not $self->defaults->{'minify'}
377 3 1 0 $self->defaults and exists $self->defaults->{'compress'}
1 0 0 $self->defaults and exists $self->defaults->{'compress'} and not $self->defaults->{'compress'}
401 17 0 3 ref $file and ref $file eq 'ARRAY'
410 16 1 0 $self->defaults and exists $self->defaults->{'etag'}
1 0 0 $self->defaults and exists $self->defaults->{'etag'} and not $self->defaults->{'etag'}
415 0 17 0 not $file =~ /\.min\.(css|js)$/ and $content_type eq 'text/css' || $content_type eq 'application/javascript'
422 0 3 7 $min and not ref $min
449 2 0 1 $content_type eq 'text/css' and $self->_can_minify_css
0 0 2 $content_type eq 'application/javascript' and $self->_can_minify_js
480 12 0 5 $env->{'HTTP_ACCEPT_ENCODING'} and $env->{'HTTP_ACCEPT_ENCODING'} =~ /gzip/
483 0 2 3 $comp and not ref $comp
508 3 0 2 $try_to_compress and $self->_can_gzip
566 1 3 13 $ext and $self->types
4 13 0 $ext and $self->types and $self->types->{$ext}
4 9 0 $ext and $self->types and $self->types->{$ext} and $self->types->{$ext}{'content_type'}
584 16 0 1 $self->defaults and defined $self->defaults->{'valid_for'}
586 16 0 1 $self->defaults and defined $self->defaults->{'cache_control'}
591 3 13 0 $self->types and $self->types->{$ext}
4 2 7 $self->types and $self->types->{$ext} and defined $self->types->{$ext}{'valid_for'}
593 3 13 0 $self->types and $self->types->{$ext}
4 4 5 $self->types and $self->types->{$ext} and defined $self->types->{$ext}{'cache_control'}
622 13 0 3 -f "$file.etag" and -r "$file.etag"
658 14 2 0 $etag and $env->{'HTTP_IF_NONE_MATCH'}
1 0 1 $etag and $env->{'HTTP_IF_NONE_MATCH'} and $etag eq $env->{'HTTP_IF_NONE_MATCH'}
672 1 1 13 $should_etag and not $etag

or 2 conditions

line l !l condition
529 35 0 $path ||= ''
553 1 0 $self->root || '.'
572 14 1 'Plack::MIME'->mime_type($file) || 'text/plain'
609 0 15 $self->encoding || 'UTF-8'
664 15 0 $file || (return $self->return_403)
715 82 0 $self->root || '.'

or 3 conditions

line l !l&&r !l&&!r condition
415 7 3 7 $content_type eq 'text/css' || $content_type eq 'application/javascript'
449 1 0 2 $content_type eq 'text/css' and $self->_can_minify_css or $content_type eq 'application/javascript' and $self->_can_minify_js