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 | 909 | use strict; use utf8; use warnings FATAL => 'all'; | |||
2 | 2 | 3 | |||||
2 | 2 | 48 | |||||
2 | 6 | ||||||
2 | 3 | ||||||
2 | 10 | ||||||
2 | 48 | ||||||
2 | 4 | ||||||
2 | 68 | ||||||
3 | 2 | 2 | 5 | use parent 'DTL::Fast::Filter::Center'; | |||
2 | 3 | ||||||
2 | 9 | ||||||
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 | 3 | my $value = shift; | ||||
12 | 2 | 0 | my $adjustment = shift; | ||||
13 | 2 | 10 | return $value.(' 'x $adjustment); | ||||
14 | } | ||||||
15 | |||||||
16 | 1; |