line |
true |
false |
branch |
27
|
2 |
0 |
if $self->minify |
36
|
0 |
0 |
if @_ |
44
|
0 |
4 |
if $args->{'assets'} |
45
|
4 |
0 |
if $args->{'inline'} |
56
|
0 |
0 |
unless $path->[1] and 0 == index("$path", $self->base_url) |
67
|
0 |
0 |
$self->minify ? : |
74
|
0 |
0 |
unless $args->{'always'} |
76
|
0 |
0 |
unless $self->{'asset'} |
|
0 |
0 |
unless keys %{{} unless $self->{'asset'};} |
77
|
0 |
0 |
unless -w $self->out_dir and opendir $PACKED, $self->out_dir |
79
|
0 |
0 |
unless $self->{'asset'} |
93
|
0 |
2 |
if (my $paths = $config->{'source_paths'}) |
95
|
0 |
0 |
-d $_ ? : |
98
|
0 |
2 |
if $config->{'headers'} |
100
|
0 |
2 |
if $config->{'base_url'} |
105
|
2 |
6 |
if @_ == 1 |
106
|
2 |
4 |
if @_ > 2 and ref $_[2] ne 'HASH' |
114
|
3 |
0 |
unless @_ |
131
|
0 |
2 |
if ($out_dir = $config->{'out_dir'}) |
134
|
0 |
0 |
unless grep {$_ eq $static_dir;} @{$app->static->paths;} |
136
|
2 |
0 |
unless ($out_dir) |
139
|
2 |
0 |
if (-w $path) |
140
|
0 |
0 |
if (-r $packed) |
144
|
0 |
2 |
unless $out_dir ||= $packed |
145
|
1 |
1 |
unless -d $out_dir |
154
|
0 |
3 |
if (not -e $file and $file =~ /\*/) { } |
176
|
0 |
1 |
unless eval "require $class;1" |
183
|
0 |
4 |
$moniker =~ /\.js/ ? : |
189
|
1 |
3 |
unless my(@res) = $self->get($moniker, $args) |
191
|
3 |
0 |
if $args->{'inline'} |
196
|
0 |
3 |
ref $_[-1] eq 'CODE' ? : |
200
|
2 |
4 |
unless opendir my $DH, $dir |
203
|
7 |
1 |
unless $name =~ /$needle/ |
226
|
1 |
1 |
if @checksum > 1 |
227
|
2 |
0 |
$self->minify ? : |
231
|
1 |
1 |
if $asset |
233
|
1 |
0 |
$self->minify ? : |
251
|
2 |
0 |
unless $@ |
266
|
0 |
0 |
if /^https?:/ |
275
|
1 |
3 |
unless $self->{'processed'}{$moniker} |
|
4 |
2 |
unless @assets |
283
|
1 |
2 |
if ($self->{'asset'}{$url}) |
287
|
0 |
2 |
if (my $scheme = 'Mojo::URL'->new($url)->scheme) |
296
|
6 |
1 |
unless $file and -r $file |
306
|
4 |
0 |
/\.(\w+)$/ ? : |
342
|
0 |
1 |
unless defined $self->handle->syswrite($_[0]) |
350
|
0 |
7 |
unless defined $handle->sysread(my $content, -s $handle, 0) |
360
|
0 |
1 |
unless defined $handle->syswrite($_[0]) |
370
|
0 |
0 |
if ($ext eq 'js') { } |