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 | 58 | use strict; | |||
9 | 20 | ||||||
9 | 424 | ||||||
4 | 9 | 9 | 173 | use warnings; | |||
9 | 20 | ||||||
9 | 379 | ||||||
5 | |||||||
6 | 9 | 9 | 94 | use base qw/File::Assets::Filter::Minifier::Base/; | |||
9 | 26 | ||||||
9 | 851 | ||||||
7 | 9 | 9 | 57 | use File::Assets::Carp; | |||
9 | 26 | ||||||
9 | 73 | ||||||
8 | |||||||
9 | sub minify { | ||||||
10 | 2 | 2 | 0 | 19 | require JavaScript::Minifier; | ||
11 | 2 | 16 | return JavaScript::Minifier::minify(input => shift); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |