Condition Coverage

blib/lib/Mojolicious/Plugin/AssetPack.pm
Criterion Covered Total %
condition 12 28 42.8


and 3 conditions

line !l l&&!r l&&r condition
109 0 0 0 $ENV{'HARNESS_ACTIVE'} and UNIVERSAL::can(('Test::More', 'diag'))
124 0 0 0 $2 eq '!=' and $v eq $3
125 0 0 0 $2 ne '!=' and $v ne $3

or 2 conditions

line l !l condition
82 1 12 $config->{'helper'} || 'asset'
89 0 13 ($ENV{'MOJO_ASSETPACK_LAZY'} // $config->{'lazy'}) || 0
94 1 12 $config->{'proxy'} // {}
178 0 4 shift() || 'assetpack.def'
210 1 71 $route->pattern->defaults->{'base_url'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
89 0 0 13 $self->{'lazy'} ||= ($ENV{'MOJO_ASSETPACK_LAZY'} // $config->{'lazy'}) || 0
96 0 12 0 $proxy->{'no_proxy'} || join(',', grep({$_;} $ENV{'NO_PROXY'}, $ENV{'no_proxy'}, '127.0.0.1', '::1', 'localhost'))
209 64 8 0 $self->{'by_topic'}{$topic} ||= $self->_static_asset($topic)