File Coverage

blib/lib/WWW/Shopify/Liquid/Filter/Rstrip.pm
Criterion Covered Total %
statement 10 13 76.9
branch n/a
condition n/a
subroutine 4 5 80.0
pod 0 2 0.0
total 14 20 70.0


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 37     37   14682 use strict;
  37         116  
  37         1186  
3 37     37   242 use warnings;
  37         111  
  37         1450  
4              
5 37     37   372 package WWW::Shopify::Liquid::Filter::Rstrip; use base 'WWW::Shopify::Liquid::Filter';
  37         101  
  37         6471  
6 85     85 0 520 sub transparent { return 1; }
7             sub operate {
8 0     0 0   my ($self, $hash, $operand) = @_;
9 0           $operand =~ s/\s*$//;
10 0           return $operand;
11             }
12              
13             1;