blib/lib/File/Assets/Filter/Minifier.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 1 | 3 | 33.3 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
50 | 0 | 7 | 0 | $self->stash->{'minifier'} ||= do { my $minifier; if ($minifier = $self->can('minify')) { (); } else { my $kind = $self->kind; if ($kind->extension eq 'css') { $minifier = $self->_css_minifier; } elsif ($kind->extension eq 'js') { $minifier = $self->_js_minifier; } else { croak(q[Don't know how to minify for type ], $kind->type->type, ' (', $kind->kind, ')'); }; }; $minifier } |