blib/lib/File/Assets/Filter/Minifier/CSS.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 14 | 14 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 19 | 20 | 95.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package File::Assets::Filter::Minifier::CSS; | ||||||
2 | |||||||
3 | 9 | 9 | 47 | use strict; | |||
9 | 17 | ||||||
9 | 282 | ||||||
4 | 9 | 9 | 41 | use warnings; | |||
9 | 17 | ||||||
9 | 387 | ||||||
5 | |||||||
6 | 9 | 9 | 49 | use base qw/File::Assets::Filter::Minifier::Base/; | |||
9 | 15 | ||||||
9 | 6213 | ||||||
7 | 9 | 9 | 68 | use File::Assets::Carp; | |||
9 | 20 | ||||||
9 | 49 | ||||||
8 | |||||||
9 | sub minify { | ||||||
10 | 1 | 1 | 0 | 8 | require CSS::Minifier; | ||
11 | 1 | 151 | return CSS::Minifier::minify(input => shift); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |