File Coverage

blib/lib/Articulate/Sortation/Numeric.pm
Criterion Covered Total %
statement 9 11 81.8
branch n/a
condition n/a
subroutine 3 4 75.0
pod 0 1 0.0
total 12 16 75.0


line stmt bran cond sub pod time code
1             package Articulate::Sortation::Numeric;
2 1     1   792 use strict;
  1         2  
  1         29  
3 1     1   3 use warnings;
  1         2  
  1         18  
4              
5 1     1   3 use Moo;
  1         1  
  1         4  
6             with 'Articulate::Role::Sortation::AllYouNeedIsCmp';
7              
8             sub cmp {
9 0     0 0   my $self = shift;
10 0           return ( $_[0] <=> $_[1] );
11             }
12              
13             1;