Condition Coverage

blib/lib/Mojolicious/Plugin/AssetPack/Store.pm
Criterion Covered Total %
condition 5 21 23.8


and 3 conditions

line !l l&&!r l&&r condition
58 20 0 0 $url =~ m[^https?://] and $asset = $self->_download('Mojo::URL'->new($url))
123 0 0 0 not -d $dir and -w $dir->dirname
155 0 0 0 -e $file and $file =~ /\.(\w+)$/
204 0 0 0 $attrs{'url'}->host ne 'local' and $asset = $self->_already_downloaded($url)

or 2 conditions

line l !l condition
13 10 1 $ENV{'MOJO_ASSETPACK_DB_FILE'} || 'assetpack.db'
137 17 1 $self->_types->type($asset->format) || 'application/octet-stream'
214 0 0 $h->content_type || ''

or 3 conditions

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