File Coverage

blib/lib/WWW/Shopify/Liquid/Filter/Camelize.pm
Criterion Covered Total %
statement 9 14 64.2
branch n/a
condition n/a
subroutine 3 5 60.0
pod 0 2 0.0
total 12 21 57.1


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 21     21   9893 use strict;
  21         36  
  21         699  
3 21     21   95 use warnings;
  21         30  
  21         686  
4              
5 21     21   92 package WWW::Shopify::Liquid::Filter::Camelize; use base 'WWW::Shopify::Liquid::Filter';
  21         35  
  21         3183  
6 0     0 0   sub max_arguments { return 0; }
7 0     0 0   sub operate { my $str = $_[2]; $str =~ s/-(\w?)/return " " . uc($1);/ge; return $str; }
  0            
  0            
  0            
8              
9             1;