Branch Coverage

blib/lib/WWW/Shopify/Liquid/Tag/Assign.pm
Criterion Covered Total %
branch 36 54 66.6


line true false branch
15 0 139 unless $self->{'arguments'}[0]->isa('WWW::Shopify::Liquid::Operator::Assignment')
17 0 139 unless $self->{'arguments'}[0]{'operands'}[0]->isa('WWW::Shopify::Liquid::Token::Variable')
21 0 78 $self->is_processed($_) ? :
22 0 70 if $action eq 'optimize' and int grep({not $self->is_processed($_);} @vars) > 0
27 0 7 if ref $inner_hash and ref $inner_hash eq 'HASH' and not exists $$inner_hash{$vars[$_]} and $action eq 'optimize'
28 1 7 if (&looks_like_number($vars[$_]) and ref $inner_hash and ref $inner_hash eq 'ARRAY') { }
29 0 1 unless defined $$inner_hash[$vars[$_]]
32 1 6 unless exists $$inner_hash{$vars[$_]}
40 17 53 if ($action eq 'optimize') { }
41 1 16 if (exists $$inner_hash{$vars[-1]}) { }
43 1 0 unless $self->is_processed($result)
44 0 1 if $self->is_processed($result)
46 15 1 unless $self->is_processed($result)
48 8 9 if $self->is_processed($result)
53 8 9 if $self->is_processed($result)
54 1 16 if $pipeline->remove_assignment and not defined $pipeline->conditional_state
57 53 0 unless $self->is_processed($result)
59 0 53 unless $self->is_processed($result)
62 3 50 if (&looks_like_number($vars[-1]) and ref $inner_hash and ref $inner_hash eq 'ARRAY') { }
63 0 3 if ($assignment->isa('WWW::Shopify::Liquid::Operator::PlusAssignment')) { }
0 3 elsif ($assignment->isa('WWW::Shopify::Liquid::Operator::MinusAssignment')) { }
0 3 elsif ($assignment->isa('WWW::Shopify::Liquid::Operator::MultiplyAssignment')) { }
0 3 elsif ($assignment->isa('WWW::Shopify::Liquid::Operator::DivideAssignment')) { }
75 0 50 if ($assignment->isa('WWW::Shopify::Liquid::Operator::PlusAssignment')) { }
0 50 elsif ($assignment->isa('WWW::Shopify::Liquid::Operator::MinusAssignment')) { }
0 50 elsif ($assignment->isa('WWW::Shopify::Liquid::Operator::MultiplyAssignment')) { }
0 50 elsif ($assignment->isa('WWW::Shopify::Liquid::Operator::DivideAssignment')) { }