lib/WWW/Shopify/Liquid/Filter/Append.pm

filter: Statementstmt 76.9% 10 / 13 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 59.0% 13 / 22 CC 3 SCAR 18.7
CC
3
Cov
59%
operate
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 6.5
« lib/WWW/Shopify/Liquid/Filter/Keys.pm ↑ Summary lib/WWW/Shopify/Liquid/Filter/ImgTag.pm »
1 #!/usr/bin/perl
2 38 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 38 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 38 ▶package WWW::Shopify::Liquid::Filter::Append; use base 'WWW::Shopify::Liquid::Filter';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 0 ▶sub operate {
Subroutine operate: not called CC=3 SCAR=24.8
Pod undocumented
7 0 ▶ return $_[3] if !defined $_[2];
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_[2] 0 0 0
8 0 ▶ return $_[2] if !defined $_[3];
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_[3] 0 0 0
9 0 return $_[2] . $_[3];
10 }
11  
12 38 1;
« lib/WWW/Shopify/Liquid/Filter/Keys.pm ↑ Summary lib/WWW/Shopify/Liquid/Filter/ImgTag.pm »