Branch Coverage

blib/lib/WWW/Shopify/Liquid/Tag/For.pm
Criterion Covered Total %
branch 12 26 46.1


line true false branch
13 1 23 unless $$self{'arguments'}[0]->isa('WWW::Shopify::Liquid::Operator::In')
17 0 23 unless $$self{'arguments'}[0]{'operands'}[0] and $$self{'arguments'}[0]{'operands'}[0]->isa('WWW::Shopify::Liquid::Token::Variable') and int @{$$self{'arguments'}[0]{'operands'}[0]{'core'};} == 1 and $$self{'arguments'}[0]{'operands'}[0]{'core'}[0]->isa('WWW::Shopify::Liquid::Token::String')
25 2 0 unless $self->is_processed($op2)
26 0 2 if $self->is_processed($op2) and $action eq 'optimize'
27 0 2 if not $self->is_processed($op2) and $action eq 'optimize'
28 0 2 if not $self->is_processed($op2) and $action eq 'render'
29 0 2 unless ref $op2 eq 'ARRAY'
37 12 0 if ($action eq 'render') { }
46 0 0 if ($existed)
53 0 12 if ($action ne 'render')
54 0 0 if not defined $$hash{$var} and $existed
56 0 12 unless $self->is_processed($content)
59 2 0 if $all_processed