blib/lib/File/Assets/Filter/Minifier/JavaScript.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::JavaScript; | ||||||
2 | |||||||
3 | 9 | 9 | 52 | use strict; | |||
9 | 18 | ||||||
9 | 350 | ||||||
4 | 9 | 9 | 49 | use warnings; | |||
9 | 18 | ||||||
9 | 298 | ||||||
5 | |||||||
6 | 9 | 9 | 49 | use base qw/File::Assets::Filter::Minifier::Base/; | |||
9 | 43 | ||||||
9 | 860 | ||||||
7 | 9 | 9 | 50 | use File::Assets::Carp; | |||
9 | 22 | ||||||
9 | 61 | ||||||
8 | |||||||
9 | sub minify { | ||||||
10 | 2 | 2 | 0 | 15 | require JavaScript::Minifier; | ||
11 | 2 | 17 | return JavaScript::Minifier::minify(input => shift); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |