line |
true |
false |
branch |
237
|
0 |
41 |
if $_{'uri'} or $_{'base_uri'} |
238
|
0 |
41 |
if $_{'dir'} or $_{'base_dir'} |
239
|
0 |
41 |
if $_{'base_path'} |
245
|
41 |
0 |
unless exists $_{'cache'} |
246
|
41 |
0 |
if $_{'cache'} |
264
|
16 |
25 |
if (my $minify = $_{'minify'}) |
265
|
1 |
15 |
if ($minify eq 1 or $minify =~ /^\s*(?:minifier-)?best\s*$/i) { } |
|
0 |
15 |
elsif ($minify =~ /^\s*yui-?compressor:/) { } |
|
0 |
15 |
elsif ($minify =~ /\.jar/i) { } |
|
1 |
14 |
elsif ($minify =~ /^\s*(?:minifier-)?xs\s*$/i) { } |
|
0 |
14 |
elsif ($minify =~ /^\s*minifier\s*$/i) { } |
|
14 |
0 |
elsif ($minify =~ /^\s*concat\s*$/i) { } |
330
|
0 |
123 |
if (defined $$asset{'type'} and $$asset{'type'} =~ /$rankish/ or defined $$asset{'rank'} and not $$asset{'rank'} =~ /$rankish/) |
335
|
0 |
0 |
if defined $type |
336
|
0 |
0 |
if defined $rank |
344
|
118 |
0 |
if (ref $_[0] ne 'HASH') |
346
|
0 |
118 |
unless defined $path and length $path |
347
|
3 |
115 |
if (ref $path eq 'SCALAR' or $path =~ /^\s*) { } |
351
|
1 |
114 |
if $self->exists($path) |
357
|
116 |
8 |
if not @_ or ref $_[0] eq 'HASH' |
360
|
4 |
113 |
if @_ and ref $_[0] eq 'HASH' |
404
|
6 |
11 |
if not @_ or ref $_[0] eq 'HASH' |
407
|
2 |
4 |
if @_ and ref $_[0] eq 'HASH' |
430
|
42 |
56 |
if @_ |
432
|
7 |
91 |
defined $name && length $name ? : |
450
|
60 |
0 |
unless defined $format |
453
|
60 |
0 |
if ($format eq 'html') { } |
468
|
74 |
52 |
if ($asset->type->type eq 'text/css') { } |
|
52 |
0 |
elsif ($asset->type->type eq 'application/javascript' or $asset->type->type eq 'application/x-javascript' or $asset->type->type =~ /\bjavascript\b/) { } |
470
|
66 |
8 |
if (not $asset->inline) { } |
481
|
50 |
2 |
if (not $asset->inline) { } |
490
|
0 |
0 |
if $asset->inline |
519
|
0 |
0 |
keys %{$self->_registry_hash;} ? : |
532
|
1 |
231 |
exists $self->_registry_hash->{$key} ? : |
567
|
0 |
117 |
if $self->exists($asset->key) |
578
|
126 |
69 |
if ('File::Assets::Util'->same_type('css', $type)) |
581
|
6 |
120 |
if defined $media and length $media |
592
|
5 |
64 |
if $type and $type =~ m[^image(?:/\*)?$] |
596
|
5 |
64 |
if ($image_export) { } |
600
|
64 |
0 |
unless $image_export |
601
|
8 |
56 |
if (defined $type) { } |
617
|
5 |
64 |
if ($image_export) { } |
622
|
35 |
29 |
unless $$filter_scheme{'*'} |
628
|
8 |
61 |
if length $category > length $kind |
629
|
50 |
11 |
unless 0 == index($kind, $category) |
638
|
7 |
100 |
if ($kind->type->mediaType eq 'image') { } |
648
|
4 |
60 |
if (not $image_export and $type and $type->type eq 'text/css') |
672
|
0 |
7 |
unless -e $asset_file |
674
|
7 |
0 |
if (not -e $output_file or $asset_file->stat->mtime > $output_file->stat->mtime) |
676
|
4 |
3 |
unless -d $dir |
677
|
7 |
0 |
if ($dir->stat->dev eq $asset_file->stat->dev) { } |
678
|
0 |
7 |
unless link $asset_file, $output_file |
681
|
0 |
0 |
unless File::Copy::copy($asset_file, $output_file) |
716
|
0 |
44 |
unless @_ |
717
|
41 |
3 |
1 == @_ ? : |
718
|
0 |
44 |
unless $base |
731
|
0 |
1 |
unless defined $_[0] |
744
|
0 |
1 |
unless defined $_[0] |
760
|
0 |
2 |
defined $_[0] ? : |
769
|
16 |
34 |
if ($scheme and ref $scheme ne 'ARRAY') |
799
|
41 |
0 |
if ($cache) { } |
800
|
41 |
0 |
unless blessed $cache and $cache->isa('File::Assets::Cache') |
811
|
20 |
8 |
if (@_ == 1) { } |
819
|
8 |
20 |
$kind ? : |
824
|
27 |
1 |
unless (blessed $_filter) |
825
|
0 |
27 |
unless $_filter = 'File::Assets::Util'->parse_filter($_filter, @_, 'assets', $self) |
835
|
1 |
1 |
if (blessed($_[0]) and $_[0]->isa('File::Assets::Filter')) |
843
|
0 |
1 |
if @_ |
858
|
0 |
56 |
if $default |
866
|
0 |
45 |
if (ref $condition eq 'CODE') { } |
|
45 |
0 |
elsif (ref $condition eq '') { } |
867
|
0 |
0 |
unless defined($result = &$condition($kind, $signature, $best_kind)) |
870
|
0 |
45 |
if ($condition eq $key) { } |
|
44 |
1 |
elsif ($condition eq '*' or $condition eq 'default') { } |
876
|
0 |
44 |
$best_kind ? : |
882
|
1 |
44 |
unless (defined $result) |
887
|
0 |
0 |
if defined $condition_signature and $condition_signature ne '*' and $condition_signature ne $signature |
889
|
1 |
0 |
if (length $condition_kind and $condition_kind ne '*') |
893
|
0 |
1 |
unless 'File::Assets::Util'->same_type($condition_kind->type, $kind->type) |
898
|
45 |
0 |
if (not $best_kind or $condition_kind and $condition_kind->is_better_than($best_kind)) |
902
|
0 |
45 |
unless defined $result |
907
|
45 |
0 |
if ($result > 0) { } |
912
|
0 |
0 |
unless defined $action{$_} |
926
|
0 |
45 |
ref $action eq 'CODE' ? : |
944
|
0 |
56 |
unless my $output_path = $self->output_path($filter) |