File Coverage

blib/lib/WWW/Shopify/Liquid/Tag/Whitespace.pm
Criterion Covered Total %
statement 9 16 56.2
branch 0 2 0.0
condition n/a
subroutine 3 6 50.0
pod 0 3 0.0
total 12 27 44.4


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 30     30   284635 use strict;
  30         53  
  30         969  
3 30     30   130 use warnings;
  30         44  
  30         1215  
4              
5             package WWW::Shopify::Liquid::Tag::Whitespace;
6 30     30   130 use base 'WWW::Shopify::Liquid::Tag::Enclosing';
  30         49  
  30         14274  
7              
8 0     0 0   sub min_arguments { return 0; }
9 0     0 0   sub max_arguments { return 0; }
10              
11             sub process {
12 0     0 0   my ($self, $hash, $action, $pipeline) = @_;
13            
14 0           my $result = $self->{contents}->$action($pipeline, $hash);
15 0 0         return $self unless $self->is_processed($result);
16 0           $result =~ s///;
17 0           return $result;
18             }
19              
20              
21              
22             1;