File Coverage

blib/lib/DTL/Fast/Filter/Safe.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 20 21 95.2


line stmt bran cond sub pod time code
1             package DTL::Fast::Filter::Safe;
2 13     13   5521 use strict; use utf8; use warnings FATAL => 'all';
  13     13   15  
  13     13   300  
  13         41  
  13         14  
  13         56  
  13         275  
  13         12  
  13         457  
3 13     13   42 use parent 'DTL::Fast::Filter';
  13         15  
  13         58  
4              
5             $DTL::Fast::FILTER_HANDLERS{'safe'} = __PACKAGE__;
6              
7             #@Override
8             sub filter
9             {
10 37     37 0 30 shift;
11              
12 37         34 shift->{'safe'} = 1;
13            
14 37         77 return shift;
15             }
16              
17             1;