Branch Coverage

blib/lib/File/Assets/Filter.pm
Criterion Covered Total %
branch 23 34 67.6


line true false branch
16 823 166 unless @_
28 0 300 unless my $filter = shift()
36 282 18 if (ref $filter eq '') { }
18 0 elsif (ref $filter eq 'ARRAY') { }
38 258 24 unless $cfg =~ s/^\s*$kind(?:\s*$|:([^:]))//i
39 0 24 if defined $1
41 2 22 if (ref $_[0] eq 'HASH') { }
0 22 elsif (ref $_[0] eq 'ARRAY') { }
52 15 3 unless $$filter[0] and $$filter[0] =~ /^\s*$kind\s*$/i
64 0 24 unless defined $cfg
82 0 28 exists $_{$setting} ? :
92 0 0 unless $$self{'fit'}
93 0 0 if $bucket->kind->is_better_than_or_equal($$self{'fit'})
133 0 56 unless $self->pre
142 6 115 unless $self->_match($asset)
148 110 5 if $asset_file_mtime >= $self->mtime
169 115 6 $match ? :