Branch Coverage

blib/lib/Mojolicious/Plugin/StaticCompressor/Container.pm
Criterion Covered Total %
branch 25 34 73.5


line true false branch
28 5 5 if (defined $hash{'key'}) { }
5 0 elsif (defined $hash{'path_files_ref'}) { }
44 5 25 unless (defined $$s{'key'})
48 2 5 if ($key ne '')
56 2 3 if ($$s{'is_minify'} == 0)
88 5 0 if (defined $$s{'key'})
89 5 0 if ($$s{'key'} =~ /^(nomin\-|)(\w+).(\w+)$/)
91 2 3 if ($1 eq 'nomin-') { }
105 5 0 if (@paths_files) { }
117 5 0 if (-f $path_cache_file)
125 0 5 if ($@)
128 5 0 if ($content =~ m[^/\*-{5}StaticCompressor-{5}\n((.+\n)+?)-{10}\*/\n])
168 10 0 if (-f $path_cache_file)
175 10 0 unless (@$)
179 3 10 if ($updated_at <= $file->get_updated_at)
185 7 3 if ($is_need_update == 0)
198 1 3 if ($paths_text ne '')