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 | 58 | use strict; | |||
9 | 19 | ||||||
9 | 359 | ||||||
4 | 9 | 9 | 55 | use warnings; | |||
9 | 19 | ||||||
9 | 271 | ||||||
5 | |||||||
6 | 9 | 9 | 55 | use base qw/File::Assets::Filter::Minifier::Base/; | |||
9 | 30 | ||||||
9 | 810 | ||||||
7 | 9 | 9 | 53 | use File::Assets::Carp; | |||
9 | 135 | ||||||
9 | 66 | ||||||
8 | |||||||
9 | sub minify { | ||||||
10 | 2 | 2 | 0 | 16 | require JavaScript::Minifier::XS; | ||
11 | 2 | 104 | return JavaScript::Minifier::XS::minify(shift); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |