line |
true |
false |
branch |
41
|
0 |
188 |
@_ == 1 && ref $_[0] eq 'HASH' ? : |
44
|
1 |
187 |
ref $content eq 'SCALAR' ? : |
45
|
2 |
186 |
if (defined $content and $content =~ /^\s*) |
47
|
0 |
2 |
unless $tag and $$tag[0] |
50
|
1 |
1 |
unless ($type) |
51
|
0 |
1 |
if ($$tag{'name'} =~ /^script$/i) { } |
|
1 |
0 |
elsif ($$tag{'name'} =~ /^style$/i) { } |
58
|
2 |
0 |
unless defined $$asset{'type'} |
60
|
1 |
0 |
unless exists $$asset{$name} |
63
|
0 |
2 |
unless defined $content |
67
|
74 |
114 |
if (defined $type) |
69
|
0 |
74 |
unless $type = 'File::Assets::Util'->parse_type($_type) |
72
|
0 |
188 |
if ($rsc) { } |
|
3 |
185 |
elsif ($path and $path =~ m[^https?://] or blessed $path and $path->isa('URI')) { } |
|
176 |
9 |
elsif ($base and $path) { } |
|
9 |
0 |
elsif (defined $content) { } |
73
|
0 |
0 |
unless $type |
76
|
0 |
0 |
if defined $content |
86
|
6 |
170 |
if ($path =~ m[^/]) { } |
92
|
0 |
176 |
if defined $content |
93
|
0 |
176 |
unless $$self{'type'} = $type || 'File::Assets::Util'->parse_type($path) |
96
|
0 |
9 |
unless $type |
106
|
0 |
188 |
if $rank and $rank =~ /[^\d\+\-\.]/ |
108
|
1 |
1 |
delete $$asset{'inline'} ? : |
|
7 |
179 |
$$self{'content'} ? : |
|
2 |
186 |
exists $$asset{'inline'} ? : |
124
|
21 |
115 |
unless $$self{'rsc'} |
136
|
5 |
339 |
unless $$self{'rsc'} |
148
|
18 |
247 |
unless $$self{'rsc'} |
177
|
4 |
27 |
unless -d $dir |
208
|
5 |
166 |
unless $self->file |
214
|
0 |
0 |
unless $self->file |
220
|
0 |
0 |
unless $self->file |
226
|
0 |
0 |
unless $self->file |
232
|
0 |
0 |
unless $self->file |
238
|
0 |
0 |
unless $self->file |
245
|
70 |
56 |
if (my $cache = $$self{'cache'}) { } |
285
|
0 |
1 |
shift() ? : |
|
1 |
247 |
if @_ |