line |
true |
false |
branch |
41
|
0 |
180 |
@_ == 1 && ref $_[0] eq 'HASH' ? :
|
44
|
1 |
179 |
ref $content eq 'SCALAR' ? :
|
45
|
2 |
178 |
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 |
106 |
if (defined $type)
|
69
|
0 |
74 |
unless $type = 'File::Assets::Util'->parse_type($_type)
|
72
|
0 |
180 |
if ($rsc) { }
|
|
3 |
177 |
elsif ($path and $path =~ m[^https?://] or blessed $path and $path->isa('URI')) { }
|
|
168 |
9 |
elsif ($base and $path) { }
|
|
9 |
0 |
elsif (defined $content) { }
|
73
|
0 |
0 |
unless $type
|
76
|
0 |
0 |
if defined $content
|
86
|
6 |
162 |
if ($path =~ m[^/]) { }
|
92
|
0 |
168 |
if defined $content
|
93
|
0 |
168 |
unless $$self{'type'} = $type || 'File::Assets::Util'->parse_type($path)
|
96
|
0 |
9 |
unless $type
|
106
|
0 |
180 |
if $rank and $rank =~ /[^\d\+\-\.]/
|
108
|
1 |
1 |
delete $$asset{'inline'} ? :
|
|
7 |
171 |
$$self{'content'} ? :
|
|
2 |
178 |
exists $$asset{'inline'} ? :
|
124
|
21 |
115 |
unless $$self{'rsc'}
|
136
|
5 |
332 |
unless $$self{'rsc'}
|
148
|
18 |
217 |
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 @_
|