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 | 2 | 2 | 2699 | use strict; | |||
2 | 4 | ||||||
2 | 68 | ||||||
3 | 2 | 2 | 10 | use warnings; | |||
2 | 3 | ||||||
2 | 73 | ||||||
4 | 2 | 2 | 10 | use Mouse; | |||
2 | 3 | ||||||
2 | 16 | ||||||
5 | with 'HTML::Shakan::Role::Filter'; | ||||||
6 | |||||||
7 | sub filter { | ||||||
8 | 3 | 3 | 0 | 6 | my $self = shift; | ||
9 | |||||||
10 | 3 | 7 | local $_ = shift; | ||||
11 | 3 | 13 | s/^\s+//; | ||||
12 | 3 | 15 | s/\s+$//; | ||||
13 | 3 | 13 | $_; | ||||
14 | } | ||||||
15 | |||||||
16 | 2 | 2 | 8830 | no Mouse; | |||
2 | 4 | ||||||
2 | 204 | ||||||
17 | __PACKAGE__->meta->make_immutable; | ||||||
18 | |||||||
19 | __END__ |