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

filter: Statementstmt 66.6% 10 / 15 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 59.0% 13 / 22 CC 2 SCAR 11.0
CC
2
Cov
59%
operate
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« blib/lib/WWW/Shopify/Liquid/Tag/Enclosing.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Tag/Layout.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::Handleize; use base 'WWW::Shopify::Liquid::Filter';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 0 ▶sub operate { my $str = $_[2]; $str = '' unless defined $str; $str =~ s/\s+/-/g; $str =~ s/[^\w-]+//g; return lc($str); }
Subroutine operate: not called CC=2 SCAR=17.9
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
unless defined $str 0 0 0
7  
8 30 1;
« blib/lib/WWW/Shopify/Liquid/Tag/Enclosing.pm ↑ Summary blib/lib/WWW/Shopify/Liquid/Tag/Layout.pm »