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

filter: Statementstmt 50.0% 10 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 0.0% 0 / 3 totaltotal 41.9% 13 / 31 CC 2 SCAR 10.0
CC
2
Cov
45%
render
6.0
min_arguments
2.0
max_arguments
2.0
CRAP 2.7
« script/shopify-liquid-beautify.pl ↑ Summary lib/WWW/Shopify/Liquid/Tag/Whitespace.pm »
1  
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::Eval;
6 38 ▶use base 'WWW::Shopify::Liquid::Filter';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 0 ▶sub min_arguments { return 0; }
Subroutine min_arguments: not called CC=1 SCAR=6.9
Pod undocumented
9 0 ▶sub max_arguments { return 0; }
Subroutine max_arguments: not called CC=1 SCAR=6.9
Pod undocumented
10  
11  
12 0 ▶sub render {
Subroutine render: not called CC=2 SCAR=17.9
Pod undocumented
13 0 my ($self, $renderer, $hash) = @_;
14 0 ▶ my $operand = !$self->is_processed($self->{operand}) ? $self->{operand}->render($renderer, $hash) : $self->{operand};
Branch: 1 branch
BranchTrueFalseTotal
!$self->is_processed($self->{'operand'}) ? : 0 0 0
15
16 0 my $ast = $renderer->parent->parse_text($operand);
17 0 my $clone_hash = $renderer->clone_hash;
18 0 $renderer->clone_hash(0);
19 0 my ($result) = $renderer->render($hash, $ast);
20 0 $renderer->clone_hash($clone_hash);
21 0 return $result;
22 }
23  
24 38 1;
« script/shopify-liquid-beautify.pl ↑ Summary lib/WWW/Shopify/Liquid/Tag/Whitespace.pm »