File Coverage

blib/lib/WWW/Shopify/Liquid/Filter/StripNewlines.pm
Criterion Covered Total %
statement 12 15 80.0
branch n/a
condition n/a
subroutine 4 5 80.0
pod 0 1 0.0
total 16 21 76.1


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 21     21   350897 use strict;
  21         53  
  21         940  
3 21     21   115 use warnings;
  21         34  
  21         705  
4              
5 21     21   105 use HTML::Strip;
  21         34  
  21         642  
6              
7 21     21   98 package WWW::Shopify::Liquid::Filter::StripNewlines; use base 'WWW::Shopify::Liquid::Filter';
  21         35  
  21         9287  
8 0     0 0   sub operate { my $text = $_[2]; $text =~ s/\n//g; return $text; }
  0            
  0            
9              
10             1;