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   8595 use strict; use utf8; use warnings FATAL => 'all';
  13     13   28  
  13     13   326  
  13         62  
  13         24  
  13         76  
  13         324  
  13         27  
  13         487  
3 13     13   65 use parent 'DTL::Fast::Filter';
  13         21  
  13         79  
4              
5             $DTL::Fast::FILTER_HANDLERS{'safe'} = __PACKAGE__;
6              
7             #@Override
8             sub filter
9             {
10 37     37 0 50 shift;
11              
12 37         61 shift->{'safe'} = 1;
13            
14 37         121 return shift;
15             }
16              
17             1;