blib/lib/WWW/Shopify/Liquid/Filter/Camelize.pm

filter: Statementstmt 62.5% 10 / 16 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 52.0% 13 / 25 CC 2 SCAR 10.4
CC
2
Cov
56%
operate
6.0
max_arguments
2.0
BEGIN
1.0
CRAP 2.8
« blib/lib/WWW/Shopify/Liquid/Filter/LinkToVendor.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Filter/ProductImgUrl.pm »
1 #!/usr/bin/perl
2 30 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 30 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 30 ▶package WWW::Shopify::Liquid::Filter::Camelize; use base 'WWW::Shopify::Liquid::Filter';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 0 ▶sub max_arguments { return 0; }
Subroutine max_arguments: not called CC=1 SCAR=6.9
Pod undocumented
7 0 ▶sub operate { my $str = $_[2]; return '' unless defined $str; $str =~ s/-(\w?)/return " " . uc($1);/ge; return $str; }
Subroutine operate: not called CC=2 SCAR=17.9
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
unless defined $str 0 0 0
8  
9 30 1;
« blib/lib/WWW/Shopify/Liquid/Filter/LinkToVendor.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Filter/ProductImgUrl.pm »