Condition Coverage

blib/lib/Mojolicious/Plugin/StaticCompressor.pm
Criterion Covered Total %
condition 15 28 53.5


and 3 conditions

line !l l&&!r l&&r condition
67 5 0 5 $self->req->url->path->contains('/' . $$config{'url_path_prefix'}) and $self->req->url->path =~ m[/$$config{'url_path_prefix'}/(.+)$]
203 4 0 16 -f $path and $path =~ /^(.*)\.(js|css)$/

or 2 conditions

line l !l condition
107 0 3 $$option{'disable'} || 0
108 1 2 $$option{'disable_on_devmode'} || 0
112 0 3 $$option{'is_debug'} || 0
115 0 3 $$option{'url_path_prefix'} || 'auto_compressed'
123 0 3 $$option{'background'} || 0
124 0 3 $$option{'background_interval_sec'} || 5
127 0 3 $$option{'auto_cleanup'} || 1
130 0 3 $$option{'auto_cleanup_expires_sec'} || 604800

or 3 conditions

line l !l&&r !l&&!r condition
109 0 0 3 $disable eq 1 || $disable_on_devmode eq 1 && $app->mode eq 'development'
119 0 3 0 $$option{'file_cache_path'} || $FindBin::Bin . '/' . $prefix . '/'