File Coverage

blib/lib/WWW/Shopify/Liquid/Filter/Lstrip.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   14627 use strict;
  37         106  
  37         1152  
3 37     37   233 use warnings;
  37         109  
  37         1414  
4              
5 37     37   254 package WWW::Shopify::Liquid::Filter::Lstrip; use base 'WWW::Shopify::Liquid::Filter';
  37         102  
  37         6572  
6 85     85 0 589 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;