File Coverage

blib/lib/WWW/Shopify/Liquid/Filter/EncodeBase64.pm
Criterion Covered Total %
statement 12 14 85.7
branch n/a
condition n/a
subroutine 4 5 80.0
pod 0 1 0.0
total 16 20 80.0


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 37     37   15494 use strict;
  37         121  
  37         1159  
3 37     37   252 use warnings;
  37         112  
  37         1561  
4              
5             package WWW::Shopify::Liquid::Filter::EncodeBase64;
6 37     37   265 use base 'WWW::Shopify::Liquid::Filter';
  37         106  
  37         4848  
7              
8 37     37   12061 use MIME::Base64 qw(encode_base64);
  37         29579  
  37         4105  
9              
10             sub operate {
11 0     0 0   my ($self, $hash, $operand) = @_;
12 0           return encode_base64($operand);
13             }
14              
15             1;