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   817 use strict;
  2         5  
  2         45  
3 2     2   8 use utf8;
  2         4  
  2         12  
4 2     2   39 use warnings FATAL => 'all';
  2         4  
  2         59  
5 2     2   9 use parent 'DTL::Fast::Filter::Timesince';
  2         4  
  2         13  
6              
7             $DTL::Fast::FILTER_HANDLERS{timeuntil} = __PACKAGE__;
8              
9             #@Override
10             sub time_diff
11             {
12 22     22 0 37 my $self = shift;
13 22         29 my $diff = shift;
14 22         59 return $self->SUPER::time_diff(- $diff);
15             }
16              
17             1;