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 | 1204 | use strict; use utf8; use warnings FATAL => 'all'; | |||
2 | 2 | 3 | |||||
2 | 2 | 47 | |||||
2 | 10 | ||||||
2 | 4 | ||||||
2 | 11 | ||||||
2 | 48 | ||||||
2 | 4 | ||||||
2 | 71 | ||||||
3 | 2 | 2 | 10 | use parent 'DTL::Fast::Filter::Center'; | |||
2 | 4 | ||||||
2 | 12 | ||||||
4 | |||||||
5 | $DTL::Fast::FILTER_HANDLERS{'rjust'} = __PACKAGE__; | ||||||
6 | |||||||
7 | #@Override | ||||||
8 | sub adjust | ||||||
9 | { | ||||||
10 | 2 | 2 | 0 | 3 | my $self = shift; | ||
11 | 2 | 4 | my $value = shift; | ||||
12 | 2 | 2 | my $adjustment = shift; | ||||
13 | 2 | 10 | return (' 'x $adjustment).$value; | ||||
14 | } | ||||||
15 | |||||||
16 | 1; |