blib/lib/DTL/Fast/Filter/Rjust.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 16 | 16 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 21 | 22 | 95.4 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package DTL::Fast::Filter::Rjust; | ||||||
2 | 2 | 2 | 883 | use strict; use utf8; use warnings FATAL => 'all'; | |||
2 | 2 | 3 | |||||
2 | 2 | 55 | |||||
2 | 8 | ||||||
2 | 4 | ||||||
2 | 11 | ||||||
2 | 48 | ||||||
2 | 2 | ||||||
2 | 67 | ||||||
3 | 2 | 2 | 6 | use parent 'DTL::Fast::Filter::Center'; | |||
2 | 2 | ||||||
2 | 9 | ||||||
4 | |||||||
5 | $DTL::Fast::FILTER_HANDLERS{'rjust'} = __PACKAGE__; | ||||||
6 | |||||||
7 | #@Override | ||||||
8 | sub adjust | ||||||
9 | { | ||||||
10 | 2 | 2 | 0 | 2 | my $self = shift; | ||
11 | 2 | 2 | my $value = shift; | ||||
12 | 2 | 2 | my $adjustment = shift; | ||||
13 | 2 | 7 | return (' 'x $adjustment).$value; | ||||
14 | } | ||||||
15 | |||||||
16 | 1; |