blib/lib/HTML/Shakan/Filter/WhiteSpace.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 17 | 17 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 22 | 23 | 95.6 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package HTML::Shakan::Filter::WhiteSpace; | ||||||
2 | 1 | 1 | 575 | use strict; | |||
1 | 2 | ||||||
1 | 24 | ||||||
3 | 1 | 1 | 4 | use warnings; | |||
1 | 2 | ||||||
1 | 27 | ||||||
4 | 1 | 1 | 7 | use Mouse; | |||
1 | 1 | ||||||
1 | 8 | ||||||
5 | with 'HTML::Shakan::Role::Filter'; | ||||||
6 | |||||||
7 | sub filter { | ||||||
8 | 1 | 1 | 0 | 5 | my $self = shift; | ||
9 | |||||||
10 | 1 | 4 | local $_ = shift; | ||||
11 | 1 | 7 | s/^\s+//; | ||||
12 | 1 | 10 | s/\s+$//; | ||||
13 | 1 | 9 | $_; | ||||
14 | } | ||||||
15 | |||||||
16 | 1 | 1 | 480 | no Mouse; | |||
1 | 2 | ||||||
1 | 4 | ||||||
17 | __PACKAGE__->meta->make_immutable; | ||||||
18 | |||||||
19 | __END__ |