File Coverage

blib/lib/WWW/Shopify/Liquid/Filter/StripNewlines.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 30     30   948957 use strict;
  30         65  
  30         1077  
3 30     30   172 use warnings;
  30         56  
  30         1079  
4              
5 30     30   6782 use HTML::Strip;
  0            
  0            
6              
7             package WWW::Shopify::Liquid::Filter::StripNewlines; use base 'WWW::Shopify::Liquid::Filter';
8             sub operate { my $text = $_[2]; $text =~ s/\n//g; return $text; }
9              
10             1;