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

filter: Statementstmt 71.4% 10 / 14 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 50.0% 13 / 26 CC 3 SCAR 17.7
CC
3
Cov
56%
operate
12.0
max_arguments
2.0
BEGIN
1.0
CRAP 5.9
« lib/WWW/Shopify/Liquid/Filter/ImgTag.pm ↑ Summary lib/WWW/Shopify/Liquid/Dialect/Web/Filter/LinkTo.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 package WWW::Shopify::Liquid::Filter::Reverse;
6 38 ▶use base 'WWW::Shopify::Liquid::Filter';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 0 ▶sub max_arguments { return 0; }
Subroutine max_arguments: not called CC=1 SCAR=6.9
Pod undocumented
8 0 ▶sub operate {
Subroutine operate: not called CC=3 SCAR=24.8
Pod undocumented
9 0 my ($self, $hash, $operand) = @_;
10 0 ▶ return undef unless (ref($operand) || '') eq 'ARRAY';
Branch: 1 branch
BranchTrueFalseTotal
unless (ref $operand || "") eq "ARRAY" 0 0 0
Condition0%0/2
ref $operand || ''
l!l
00
MC/DC0%0/1
ref $operand || ''
ref $operand
Truth table0%0/2
A
A= ref $operand
Aresult
11
00
11 0 return [reverse(@$operand)];
12 }
13  
14 38 1;
« lib/WWW/Shopify/Liquid/Filter/ImgTag.pm ↑ Summary lib/WWW/Shopify/Liquid/Dialect/Web/Filter/LinkTo.pm »