File Coverage

blib/lib/DTL/Fast/Filter/Upper.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::Upper;
2 3     3   1193 use strict;
  3         6  
  3         68  
3 3     3   13 use utf8;
  3         5  
  3         15  
4 3     3   60 use warnings FATAL => 'all';
  3         5  
  3         91  
5 3     3   14 use parent 'DTL::Fast::Filter';
  3         5  
  3         14  
6              
7 3     3   437 use locale;
  3         469  
  3         15  
8              
9             $DTL::Fast::FILTER_HANDLERS{upper} = __PACKAGE__;
10              
11             #@Override
12             sub filter
13             {
14 4     4 0 7 shift; # self
15 4         6 shift; # filter_manager
16 4   50     23 return uc(shift // '');
17             }
18              
19             1;