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   761 use strict; use utf8; use warnings FATAL => 'all';
  2     2   4  
  2     2   42  
  2         6  
  2         1  
  2         7  
  2         33  
  2         2  
  2         49  
3 2     2   6 use parent 'DTL::Fast::Filter::Dictsort';
  2         2  
  2         6  
4              
5             $DTL::Fast::FILTER_HANDLERS{'dictsortreversed'} = __PACKAGE__;
6              
7             #@Override
8             sub sort_function
9             {
10 4     4 0 3 my $self = shift;
11 4         4 my $val1 = shift;
12 4         3 my $val2 = shift;
13            
14 4         9 return $self->SUPER::sort_function($val2, $val1);
15             }
16              
17             1;