File Coverage

blib/lib/DTL/Fast/Filter/Dictsortreversed.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 21 22 95.4


line stmt bran cond sub pod time code
1             package DTL::Fast::Filter::Dictsortreversed;
2 2     2   1163 use strict; use utf8; use warnings FATAL => 'all';
  2     2   3  
  2     2   47  
  2         9  
  2         3  
  2         11  
  2         47  
  2         3  
  2         65  
3 2     2   9 use parent 'DTL::Fast::Filter::Dictsort';
  2         3  
  2         9  
4              
5             $DTL::Fast::FILTER_HANDLERS{'dictsortreversed'} = __PACKAGE__;
6              
7             #@Override
8             sub sort_function
9             {
10 4     4 0 5 my $self = shift;
11 4         5 my $val1 = shift;
12 4         7 my $val2 = shift;
13            
14 4         13 return $self->SUPER::sort_function($val2, $val1);
15             }
16              
17             1;