blib/lib/File/Assets/Filter/Minifier/JavaScript/XS.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::XS; | ||||||
2 | |||||||
3 | 9 | 9 | 55 | use strict; | |||
9 | 18 | ||||||
9 | 370 | ||||||
4 | 9 | 9 | 53 | use warnings; | |||
9 | 16 | ||||||
9 | 287 | ||||||
5 | |||||||
6 | 9 | 9 | 49 | use base qw/File::Assets::Filter::Minifier::Base/; | |||
9 | 203 | ||||||
9 | 858 | ||||||
7 | 9 | 9 | 55 | use File::Assets::Carp; | |||
9 | 35 | ||||||
9 | 61 | ||||||
8 | |||||||
9 | sub minify { | ||||||
10 | 2 | 2 | 0 | 11 | require JavaScript::Minifier::XS; | ||
11 | 2 | 95 | return JavaScript::Minifier::XS::minify(shift); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |