Branch Coverage

blib/lib/Mojolicious/Plugin/AssetPack.pm
Criterion Covered Total %
branch 33 52 63.4


line true false branch
61 11 4 unless $self->{'route_added'}++
62 4 11 unless @input
69 3 8 &Scalar::Util::blessed($url) ? :
70 1 10 unless &Scalar::Util::blessed($asset)
74 0 10 if $self->{'lazy'}
84 0 13 if ($app->renderer->helpers->{$helper})
94 12 1 if (my $proxy = $config->{'proxy'} // {})
101 13 0 if ($config->{'pipes'}) { }
103 39 72 @_ == 1 ? :
109 0 0 if $ENV{'HARNESS_ACTIVE'} and UNIVERSAL::can(('Test::More', 'diag'))
122 0 0 $1 eq 'minify' ? :
124 0 0 if $2 eq '!=' and $v eq $3
125 0 0 if $2 ne '!=' and $v ne $3
136 0 18 /::/ ? :
152 0 10 if (my $prev = $self->{'by_topic'}{$topic})
161 30 15 unless $pipe->can($method)
183 0 4 unless $asset
188 4 4 if (/^\<(\S*)\s+(\S+)\s*(.*)/) { }
4 0 elsif (/^\!\s*(.+)/) { }
190 0 4 unless $self->_correct_mode($args)
192 1 3 unless &Scalar::Util::blessed($asset)
193 0 3 if $class eq '<'
207 0 72 if $self->{'lazy'}
223 18 2 if (my $f = $self->{'by_checksum'}{$checksum})
229 1 1 if ($self->{'by_topic'}{$topic})
238 0 8 unless my $asset = $self->store->asset($topic)