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 180 0 0 @_ == 1 && ref $_[0] eq 'HASH'
45 171 7 2 defined $content and $content =~ /^\s*</
47 0 0 2 $tag and $$tag[0]
72 9 168 3 $path and $path =~ m[^https?://]
177 0 0 blessed $path and $path->isa('URI')
6 3 168 $base and $path
106 175 5 0 $rank and $rank =~ /[^\d\+\-\.]/

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
72 3 0 177 $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 103 0 $type || 'File::Assets::Util'->parse_type($path)
125 26 89 0 $$self{'uri'} ||= $self->rsc->uri
137 204 128 0 $$self{'file'} ||= $self->rsc->file
149 105 112 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 212 0 12 $self->path || $self->uri || ($$self{'key'} ||= '%' . $self->digest)