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   1551 use strict; use utf8; use warnings FATAL => 'all';
  3     3   6  
  3     3   79  
  3         13  
  3         4  
  3         16  
  3         64  
  3         3  
  3         106  
3 3     3   12 use parent 'DTL::Fast::Filter';
  3         4  
  3         18  
4              
5 3     3   633 use locale;
  3         552  
  3         17  
6              
7             $DTL::Fast::FILTER_HANDLERS{'upper'} = __PACKAGE__;
8              
9             #@Override
10             sub filter
11             {
12 4     4 0 6 shift; # self
13 4         2 shift; # filter_manager
14 4   50     22 return uc(shift // '');
15             }
16              
17             1;