File Coverage

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