lib/WWW/Shopify/Liquid/Tag/Output.pm

filter: Statementstmt 46.6% 7 / 15 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 33.3% 2 / 6 Podpod 0.0% 0 / 4 totaltotal 28.1% 9 / 32 CC 3 SCAR 17.0
CC
3
Cov
35%
operate
12.0
max_arguments
2.0
abstract
2.0
CRAP 5.5
« lib/WWW/Shopify/Liquid/Filter/Truncatewords.pm ↑ Summary lib/WWW/Shopify/Liquid/Filter/Grep.pm »
1  
2 package WWW::Shopify::Liquid::Tag::Output;
3 38 ▶use base 'WWW::Shopify::Liquid::Tag::Free';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 38 ▶use Scalar::Util qw(blessed);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 0 ▶sub max_arguments { return 1; }
Subroutine max_arguments: not called CC=1 SCAR=6.9
Pod undocumented
7 0 ▶sub abstract { return 0; }
Subroutine abstract: not called CC=1 SCAR=6.9
Pod undocumented
8  
9 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
10 0 my ($package, $line, $arguments) = @_;
11 0 my $self = { arguments => $arguments, line => $line };
12 0 return bless $self, $package;
13 }
14  
15 0 ▶sub operate {
Subroutine operate: not called CC=3 SCAR=24.8
Pod undocumented
16 0 my ($self, $hash, $argument) = @_;
17 0 ▶ return "$argument" if !ref($argument) || blessed($argument);
Branch: 1 branch
BranchTrueFalseTotal
if not ref $argument or builtin::blessed($argument) 0 0 0
Condition0%0/3
not ref $argument or builtin::blessed($argument)
l!l&&r!l&&!r
000
MC/DC0%0/2
not ref $argument or builtin::blessed($argument)
not ref $argument builtin::blessed($argument)
Truth table0%0/3
not(A) or B
A= not ref $argumentB= builtin::blessed($argument)
ABresult
1X1
011
000
18 0 return '';
19
20 }
21  
22 38 1;
« lib/WWW/Shopify/Liquid/Filter/Truncatewords.pm ↑ Summary lib/WWW/Shopify/Liquid/Filter/Grep.pm »