Condition Coverage

blib/lib/Plack/App/MCCS.pm
Criterion Covered Total %
condition 64 97 65.9


and 3 conditions

line !l l&&!r l&&r condition
351 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'}
365 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'}
389 15 0 3 ref $file and ref $file eq 'ARRAY'
398 14 1 0 $self->defaults and exists $self->defaults->{'etag'}
1 0 0 $self->defaults and exists $self->defaults->{'etag'} and not $self->defaults->{'etag'}
403 0 15 0 not $file =~ /\.min\.(css|js)$/ and $content_type eq 'text/css' || $content_type eq 'application/javascript'
409 0 2 7 $min and not ref $min
436 1 0 1 $content_type eq 'text/css' and $self->_can_minify_css
0 0 1 $content_type eq 'application/javascript' and $self->_can_minify_js
468 10 0 5 $env->{'HTTP_ACCEPT_ENCODING'} and $env->{'HTTP_ACCEPT_ENCODING'} =~ /gzip/
471 0 2 3 $comp and not ref $comp
496 3 0 2 $try_to_compress and $self->_can_gzip
545 1 3 11 $ext and $self->types
4 11 0 $ext and $self->types and $self->types->{$ext}
3 8 0 $ext and $self->types and $self->types->{$ext} and $self->types->{$ext}{'content_type'}
563 14 0 1 $self->defaults and defined $self->defaults->{'valid_for'}
565 14 0 1 $self->defaults and defined $self->defaults->{'cache_control'}
570 3 11 0 $self->types and $self->types->{$ext}
3 2 6 $self->types and $self->types->{$ext} and defined $self->types->{$ext}{'valid_for'}
572 3 11 0 $self->types and $self->types->{$ext}
3 3 5 $self->types and $self->types->{$ext} and defined $self->types->{$ext}{'cache_control'}
601 11 0 3 -f "$file.etag" and -r "$file.etag"
637 12 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'}
651 1 1 11 $should_etag and not $etag

or 2 conditions

line l !l condition
517 32 0 $path ||= ''
551 12 1 'Plack::MIME'->mime_type($file) || 'text/plain'
588 0 13 $self->encoding || 'UTF-8'
643 13 0 $file || (return $self->return_403)
694 75 0 $self->root || '.'

or 3 conditions

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