| line |
true |
false |
branch |
|
62
|
0 |
39 |
ref $urls eq 'ARRAY' ? : |
|
63
|
3 |
36 |
if $url =~ m[^helper://]u |
|
64
|
36 |
0 |
unless $paths |
|
65
|
36 |
0 |
unless $path =~ m[^https?://]u |
|
68
|
0 |
0 |
if $asset = $self->_already_downloaded($abs) |
|
72
|
0 |
36 |
ref $urls eq 'ARRAY' ? : |
|
73
|
1 |
35 |
if $url =~ m[^https?://]u and $asset = $self->_download("Mojo::URL"->new($url)) |
|
75
|
35 |
0 |
unless $paths |
|
76
|
0 |
35 |
if ($path =~ m[^https?://]u) { } |
|
79
|
0 |
0 |
if $asset = $self->_download($abs) |
|
83
|
2 |
33 |
unless $asset = $self->file($url) |
|
94
|
2 |
4 |
unless my $db_attr = $self->_db_get($attrs) |
|
98
|
0 |
4 |
unless $asset |
|
99
|
1 |
3 |
unless $db_attr->{'checksum'} eq $attrs->{'checksum'} |
|
111
|
2 |
17 |
unless (open $DB, ">", $path) |
|
119
|
0 |
6 |
unless $key =~ /^[\w-]+$/u |
|
122
|
6 |
18 |
unless defined $db->{$url}{$key}{$attr} |
|
137
|
0 |
3 |
if not -d $dir and -w $dir->dirname |
|
140
|
0 |
3 |
unless -w $dir |
|
155
|
0 |
25 |
if (my $renderer = $asset->renderer) { } |
|
159
|
25 |
0 |
$asset->can('asset') ? : |
|
168
|
2 |
0 |
$topic =~ /\.(\w+)$/u ? : |
|
174
|
1 |
1 |
if (my $template = $self->fallback_templates->{$format}) { } |
|
|
1 |
0 |
elsif (@$assets == 1) { } |
|
199
|
0 |
1 |
if -e $file and $file =~ /\.(\w+)$/u |
|
203
|
0 |
0 |
unless $file->basename =~ /^$basename(\w+)$/u |
|
218
|
0 |
3 |
unless $helper |
|
219
|
1 |
2 |
ref $output ? : |
|
221
|
2 |
1 |
if $args->{'format'} |
|
233
|
7 |
0 |
$attrs->{'minified'} ? : |
|
239
|
2 |
4 |
unless my $data = $$db{$attrs->{'url'}} |
|
240
|
0 |
4 |
unless $data = $$data{$attrs->{'key'}} |
|
245
|
0 |
3 |
if $ENV{'MOJO_ASSETPACK_LAZY'} |
|
256
|
0 |
1 |
if ($attrs{'url'}->host eq "local") |
|
261
|
0 |
1 |
if $attrs{'url'}->host ne "local" and $asset = $self->_already_downloaded($url) |
|
267
|
1 |
3 |
unless my $err = $tx->error |
|
269
|
3 |
0 |
if ($retries-- > 0) |
|
280
|
1 |
0 |
if ($ct ne "text/plain") |
|
285
|
1 |
0 |
$tx->req->url->path->[-1] =~ /\.(\w+)$/u ? : |
|
287
|
1 |
0 |
if ($attrs{'url'}->host ne "local") |
|
290
|
1 |
0 |
unless -d $path->dirname |
|
295
|
1 |
0 |
if $path |
|
310
|
0 |
2 |
if $query |