Branch Coverage

blib/lib/Mojolicious/Plugin/AssetPack.pm
Criterion Covered Total %
branch 41 54 75.9


line true false branch
36 19 9 unless $self->{'route_added'}++
37 8 20 unless @input
44 10 16 builtin::blessed($url) ? :
45 1 25 unless builtin::blessed($asset)
49 0 19 if $self->{'lazy'}
55 0 0 unless $self->{'by_topic'}{$topic}
63 0 21 if ($app->renderer->helpers->{$helper})
73 20 1 if (my $proxy = $config->{'proxy'} // {})
81 67 80 @_ == 1 ? :
87 0 0 unless @_
98 1 9 $1 eq 'minify' ? :
100 1 9 if $2 eq "!=" and $v eq $3
101 4 5 if $2 ne "!=" and $v ne $3
112 0 33 /::/u ? :
128 0 25 if (my $prev = $self->{'by_topic'}{$topic})
137 64 32 unless $pipe->can($method)
144 0 19 if (my $tag_for = $self->{'tag_for'})
163 0 8 unless $asset
168 16 14 if (/^\<(\S*)\s+(\S+)\s*(.*)/u) { }
8 6 elsif (/^\!\s*(.+)/u) { }
170 5 11 unless $self->_correct_mode($args)
172 1 10 unless builtin::blessed($asset)
173 0 10 if $class eq "<"
187 0 80 if $self->{'lazy'}
206 25 4 if (my $asset = $self->{'by_checksum'}{$checksum})
212 2 2 if (my $assets = $self->{'by_topic'}{$topic})
221 0 8 unless my $asset = $self->store->asset($topic)