Condition Coverage

blib/lib/Mojolicious/Plugin/AssetPack/Store.pm
Criterion Covered Total %
condition 12 23 52.1


and 3 conditions

line !l l&&!r l&&r condition
73 35 0 1 $url =~ m[^https?://]u and $asset = $self->_download("Mojo::URL"->new($url))
137 3 0 0 not -d $dir and -w $dir->dirname
199 1 0 0 -e $file and $file =~ /\.(\w+)$/u
261 0 1 0 $attrs{'url'}->host ne "local" and $asset = $self->_already_downloaded($url)

or 2 conditions

line l !l condition
16 14 1 $ENV{'MOJO_ASSETPACK_DB_FILE'} || 'assetpack.db'
153 24 1 $self->_types->type($asset->format) || 'application/octet-stream'
172 2 0 $self->_types->type($format) || 'application/octet-stream'
279 1 0 $h->content_type || ''

or 3 conditions

line l !l&&r !l&&!r condition
285 0 1 0 $attrs{'format'} ||= $tx->req->url->path->[-1] =~ /\.(\w+)$/u ? $1 : "bin"