Condition Coverage

blib/lib/File/Assets.pm
Criterion Covered Total %
condition 60 107 56.0


and 2 conditions

line l !l condition
843 0 0 carp('File::Assets', '::filter_clear($type) is deprecated, nothing happens') and return

and 3 conditions

line !l l&&!r l&&r condition
330 116 7 0 defined $$asset{'type'} and $$asset{'type'} =~ /$rankish/
117 6 0 defined $$asset{'rank'} and not $$asset{'rank'} =~ /$rankish/
346 0 0 118 defined $path and length $path
360 113 0 4 @_ and ref $_[0] eq 'HASH'
407 4 0 2 @_ and ref $_[0] eq 'HASH'
432 91 0 7 defined $name && length $name
581 120 0 6 defined $media and length $media
592 56 8 5 $type and $type =~ m[^image(?:/\*)?$]
648 5 56 8 not $image_export and $type
61 4 4 not $image_export and $type and $type->type eq 'text/css'
769 0 34 16 $scheme and ref $scheme ne 'ARRAY'
800 41 0 0 blessed $cache and $cache->isa('File::Assets::Cache')
835 1 0 1 blessed($_[0]) and $_[0]->isa('File::Assets::Filter')
887 1 0 0 defined $condition_signature and $condition_signature ne '*'
1 0 0 defined $condition_signature and $condition_signature ne '*' and $condition_signature ne $signature
889 0 0 1 length $condition_kind and $condition_kind ne '*'
898 0 0 0 $condition_kind and $condition_kind->is_better_than($best_kind)

or 2 conditions

line l !l condition
241 16 25 $_{'output_path'} || $_{'output_path_scheme'} || []
259 1 37 $_{'filter'} || $_{'filters'} || $_{'filter_scheme'} || []
821 1 27 $$self{'filter_scheme'}{$name} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
236 0 41 0 $_{'rsc'} || $_{'base_rsc'} || $_{'base'}
237 0 0 0 $_{'uri'} || $_{'base_uri'}
0 0 41 $_{'uri'} or $_{'base_uri'}
238 0 0 0 $_{'dir'} || $_{'base_dir'}
0 0 41 $_{'dir'} or $_{'base_dir'}
265 0 1 15 $minify eq 1 or $minify =~ /^\s*(?:minifier-)?best\s*$/i
330 0 0 123 defined $$asset{'type'} and $$asset{'type'} =~ /$rankish/ or defined $$asset{'rank'} and not $$asset{'rank'} =~ /$rankish/
347 1 2 115 ref $path eq 'SCALAR' or $path =~ /^\s*
357 112 4 8 not @_ or ref $_[0] eq 'HASH'
404 4 2 11 not @_ or ref $_[0] eq 'HASH'
468 51 1 0 $asset->type->type eq 'application/javascript' or $asset->type->type eq 'application/x-javascript'
52 0 0 $asset->type->type eq 'application/javascript' or $asset->type->type eq 'application/x-javascript' or $asset->type->type =~ /\bjavascript\b/
612 85 107 0 $bucket{$kind->kind} ||= 'File::Assets::Bucket'->new($kind, $self)
674 7 0 0 not -e $output_file or $asset_file->stat->mtime > $output_file->stat->mtime
870 44 0 1 $condition eq '*' or $condition eq 'default'
898 45 0 0 not $best_kind or $condition_kind and $condition_kind->is_better_than($best_kind)