File Coverage

blib/lib/WWW/Shopify/Liquid/Filter/Date.pm
Criterion Covered Total %
statement 11 13 84.6
branch n/a
condition n/a
subroutine 5 6 83.3
pod 0 3 0.0
total 16 22 72.7


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 21     21   10025 use strict;
  21         36  
  21         735  
3 21     21   99 use warnings;
  21         31  
  21         707  
4              
5 21     21   97 package WWW::Shopify::Liquid::Filter::Date; use base 'WWW::Shopify::Liquid::Filter';
  21         36  
  21         2660  
6 1     1 0 10 sub min_arguments { return 1; }
7 2     2 0 14 sub max_arguments { return 1; }
8             sub operate {
9 0     0 0   my ($self, $hash, $operand, @arguments) = @_;
10 0           return $operand->strftime(@arguments);
11             }
12              
13             1;