Branch Coverage

blib/lib/Mojolicious/Plugin/StaticCompressor/File.pm
Criterion Covered Total %
branch 15 32 46.8


line true false branch
28 8 6 $$s{'is_minify'} ? :
33 8 6 if (defined $$s{'path_file'} and $$s{'is_use_cache'})
43 19 0 if ($$s{'is_use_cache'}) { }
44 8 11 unless (defined $$s{'file_key'})
79 0 0 if ($$s{'is_minify'})
87 0 19 if (not -d $$s{'path_single_cache_dir'})
89 0 0 unless mkdir $$s{'path_single_cache_dir'}
96 6 19 unless ($$s{'is_use_cache'})
101 6 0 if (not defined $$s{'updated_at'} or $$s{'updated_at'} < $updated_at)
105 0 6 if ($@)
115 19 0 if (defined $$s{'path_cached_file'})
129 0 19 if ($@)
132 0 19 if (not defined $$s{'updated_at'} or $$s{'updated_at'} < $updated_at)
136 0 0 if ($$s{'is_minify'})
151 0 0 if ($$s{'extension'} eq 'js') { }
0 0 elsif ($$s{'extension'} eq 'css') { }