File Coverage

blib/lib/DTL/Fast/Filter/Lower.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition 1 2 50.0
subroutine 6 6 100.0
pod 0 1 0.0
total 25 27 92.5


line stmt bran cond sub pod time code
1             package DTL::Fast::Filter::Lower;
2 2     2   1224 use strict; use utf8; use warnings FATAL => 'all';
  2     2   3  
  2     2   48  
  2         9  
  2         4  
  2         12  
  2         47  
  2         2  
  2         72  
3 2     2   10 use parent 'DTL::Fast::Filter';
  2         4  
  2         12  
4              
5 2     2   92 use locale;
  2         4  
  2         15  
6              
7             $DTL::Fast::FILTER_HANDLERS{'lower'} = __PACKAGE__;
8              
9             #@Override
10             sub filter
11             {
12 2     2 0 3 shift; # self
13 2         3 shift; # filter_manager
14            
15 2   50     12 return lc(shift // '');
16             }
17              
18             1;