Condition Coverage

blib/lib/Mojolicious/Plugin/AssetPack/Backcompat.pm
Criterion Covered Total %
condition 14 46 30.4


and 3 conditions

line !l l&&!r l&&r condition
56 0 0 0 $path->[1] and 0 == index("$path", $self->base_url)
77 0 0 0 -w $self->out_dir and opendir $PACKED, $self->out_dir
106 0 4 2 @_ > 2 and ref $_[2] ne 'HASH'
154 0 3 0 not -e $file and $file =~ /\*/
296 0 6 1 $file and -r $file

or 2 conditions

line l !l condition
11 0 2 $ENV{'MOJO_ASSETPACK_DEBUG'} || 0
12 0 2 $ENV{'MOJO_ASSETPACK_NO_CACHE'} || 0
35 0 0 $url->scheme || 'https'
83 0 0 $! || 'Deleted'
91 0 2 $config->{'helper'} || 'asset'

or 3 conditions

line l !l&&r !l&&!r condition
72 0 0 0 $args->{'always'} // $self->_app->mode eq 'development'
99 0 2 0 $config->{'minify'} // $app->mode ne 'development'
114 0 3 0 $self->{'source_paths'} || $self->_app->static->paths
121 3 4 0 $self->{'asset'}{$name} ||= 'Mojolicious::Plugin::AssetPack::Backcompat::Asset'->new('path', catfile($self->out_dir, $name))
140 0 0 0 $out_dir ||= Cwd::abs_path($packed)
144 2 0 0 $out_dir ||= $packed
174 0 1 0 $self->{'handler'}{$moniker} ||= do { my $class = 'Mojolicious::Plugin::AssetPack::Handler::' . ucfirst($moniker); die "Could not load ${class}: $@\n" unless eval "require $class;1"; $class->new }