File Coverage

blib/lib/DTL/Fast/Filter/Timeuntil.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::Timeuntil;
2 2     2   1268 use strict; use utf8; use warnings FATAL => 'all';
  2     2   5  
  2     2   47  
  2         9  
  2         4  
  2         13  
  2         48  
  2         4  
  2         80  
3 2     2   9 use parent 'DTL::Fast::Filter::Timesince';
  2         4  
  2         11  
4              
5             $DTL::Fast::FILTER_HANDLERS{'timeuntil'} = __PACKAGE__;
6              
7             #@Override
8             sub time_diff
9             {
10 22     22 0 28 my $self = shift;
11 22         32 my $diff = shift;
12 22         60 return $self->SUPER::time_diff(-$diff);
13             }
14              
15             1;