Branch Coverage

blib/lib/Mojolicious/Plugin/StaticCompressor.pm
Criterion Covered Total %
branch 23 34 67.6


line true false branch
56 2 1 unless ($$config{'is_disable'})
59 0 2 unless (-d $$config{'path_cache_dir'})
67 5 5 if ($self->req->url->path->contains('/' . $$config{'url_path_prefix'}) and $self->req->url->path =~ m[/$$config{'url_path_prefix'}/(.+)$])
77 0 5 unless (defined $containers{$cont->get_key})
84 0 5 if ($@)
95 0 2 if ($$config{'is_background'})
109 1 2 $disable eq 1 || $disable_on_devmode eq 1 && $app->mode eq 'development' ? :
141 3 5 if ($$config{'is_disable'})
152 0 5 if (defined $containers{$cont->get_key}) { }
164 4 1 if ($extension eq 'js') { }
1 0 elsif ($extension eq 'css') { }
175 2 1 if ($extension eq 'js') { }
1 0 elsif ($extension eq 'css') { }
191 0 0 if ($containers{$key}->update)
203 16 4 if (-f $path and $path =~ /^(.*)\.(js|css)$/)
205 0 16 if ($$config{'auto_cleanup_expires_sec'} < $now - $updated_at)
219 0 11 if (ref $next eq 'ARRAY') { }