Condition Coverage

blib/lib/Mojolicious/Plugin/Webpack.pm
Criterion Covered Total %
condition 9 22 40.9


and 2 conditions

line l !l condition
10 2 0 $ENV{'MOJO_WEBPACK_DEBUG'} && 1

and 3 conditions

line !l l&&!r l&&r condition
70 0 0 1 not $self->{'mtime'} and $self->{'asset_map'}
140 0 0 0 $self->{'mtime'} and $self->{'mtime'} == $mtime

or 2 conditions

line l !l condition
26 0 3 $config->{'asset_path'} ||= '/asset'
30 0 3 $config->{'helper'} || 'asset'
51 0 3 $config->{'cache_control'} // 'max-age=86400'
81 0 3 $config->{'engine'} || 'Mojo::Alien::webpack'
84 3 0 eval "require $engine;$engine->new" || die("Could not load engine ${engine}: $@")
87 0 3 $config->{'process'} || ['js']
106 1 0 $asset->{'helper'} || 'url_for'