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

filter: Statementstmt 76.9% 10 / 13 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 52.0% 13 / 25 CC 3 SCAR 18.7
CC
3
Cov
56%
operate
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 6.5
« lib/WWW/Shopify/Liquid/Filter.pm ↑ Summary lib/WWW/Shopify/Liquid/Filter/Keys.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::Join; 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 my ($self, $hash, $operand, $argument) = @_;
8 0 ▶ return undef unless $operand && ref($operand) eq 'ARRAY';
Branch: 1 branch
BranchTrueFalseTotal
unless $operand and ref $operand eq "ARRAY" 0 0 0
Condition0%0/3
$operand and ref $operand eq "ARRAY"
!ll&&!rl&&r
000
MC/DC0%0/2
$operand and ref $operand eq "ARRAY"
$operand ref $operand eq "ARRAY"
Truth table0%0/3
A and B
A= $operandB= ref $operand eq "ARRAY"
ABresult
0X0
100
111
9 0 return join($argument, @$operand);
10 }
11  
12 38 1;
« lib/WWW/Shopify/Liquid/Filter.pm ↑ Summary lib/WWW/Shopify/Liquid/Filter/Keys.pm »