Condition Coverage

blib/lib/File/Assets/Asset.pm
Criterion Covered Total %
condition 35 53 66.0


and 3 conditions

line !l l&&!r l&&r condition
41 188 0 0 @_ == 1 && ref $_[0] eq 'HASH'
45 179 7 2 defined $content and $content =~ /^\s*
47 0 0 2 $tag and $$tag[0]
72 9 176 3 $path and $path =~ m[^https?://]
185 0 0 blessed $path and $path->isa('URI')
6 3 176 $base and $path
106 183 5 0 $rank and $rank =~ /[^\d\+\-\.]/

or 2 conditions

line l !l condition
105 5 183 delete $$asset{'rank'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
72 3 0 185 $path and $path =~ m[^https?://] or blessed $path and $path->isa('URI')
80 0 0 3 $type || do { croak("Unable to determine type of $uri") unless 'File::Assets::Util'->parse_type($uri->path) }
93 65 111 0 $type || 'File::Assets::Util'->parse_type($path)
125 26 89 0 $$self{'uri'} ||= $self->rsc->uri
137 204 135 0 $$self{'file'} ||= $self->rsc->file
149 127 120 0 $$self{'path'} ||= $self->rsc->path
160 13 59 0 $$self{'content'} || $self->_content->content
192 14 117 0 $$self{'digest'} || $self->_content->digest
244 219 126 0 $$self{'_content'} ||= do { if (my $cache = $$self{'cache'}) { $cache->content($self->file); } else { 'File::Assets::Asset::Content'->new($self->file); } }
262 228 0 12 $self->path || $self->uri || ($$self{'key'} ||= '%' . $self->digest)