File Coverage

blib/lib/WWW/Shopify/Liquid/Filter/Encode.pm
Criterion Covered Total %
statement 12 15 80.0
branch n/a
condition n/a
subroutine 4 6 66.6
pod 0 2 0.0
total 16 23 69.5


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 37     37   14919 use strict;
  37         115  
  37         1127  
3 37     37   240 use warnings;
  37         108  
  37         1400  
4              
5             package WWW::Shopify::Liquid::Filter::Encode;
6 37     37   236 use base 'WWW::Shopify::Liquid::Filter';
  37         93  
  37         3624  
7 37     37   509 use Encode;
  37         103  
  37         5758  
8 0     0 0   sub min_arguments { 1; }
9             sub operate {
10 0     0 0   my ($self, $hash, $operand, $encoding) = @_;
11 0           return encode($encoding, $operand);
12             }
13              
14             1;