File Coverage

blib/lib/WWW/Shopify/Liquid/Filter/StripNewlines.pm
Criterion Covered Total %
statement 9 12 75.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 0 1 0.0
total 12 17 70.5


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 37     37   15888 use strict;
  37         125  
  37         1267  
3 37     37   252 use warnings;
  37         109  
  37         1517  
4              
5 37     37   263 package WWW::Shopify::Liquid::Filter::StripNewlines; use base 'WWW::Shopify::Liquid::Filter';
  37         110  
  37         5747  
6 0     0 0   sub operate { my $text = $_[2]; $text =~ s/\n//g; return $text; }
  0            
  0            
7              
8             1;