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