Condition Coverage

blib/lib/WWW/Shopify/Liquid/Tag/For.pm
Criterion Covered Total %
condition 37 75 49.3


and 3 conditions

line !l l&&!r l&&r condition
19 0 0 93 $self->{'arguments'}[0]{'operands'}[0] and $self->{'arguments'}[0]{'operands'}[0]->isa('WWW::Shopify::Liquid::Token::Variable')
0 0 93 $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
0 0 93 $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')
62 43 1 3 $renderer->state and exists $renderer->state->{'values'}{$self . '-1'}
78 0 0 7 defined $exp and &blessed($exp)
0 0 7 defined $exp and &blessed($exp) and $exp->isa('WWW::Shopify::Liquid::Exception::Control')
86 2 0 2 $exp->initial_render and int @{$exp->initial_render;} > 0
107 39 22 10 &blessed($result) && $result->isa('WWW::Shopify::Liquid::Operator::Concatenate')
131 0 0 0 defined $exp and &blessed($exp)
0 0 0 defined $exp and &blessed($exp) and $exp->isa('WWW::Shopify::Liquid::Exception::Control')
132 0 0 0 $exp->initial_render and int @{$exp->initial_render;} > 0
166 5 53 8 $self->is_processed($op2) and $action eq 'optimize'
167 53 0 13 $action eq 'optimize' and not $self->is_processed($self->{'contents'})
175 0 1 0 int @{$_->{'arguments'}[0]{'operands'}[0]{'core'};} == 1 and &blessed($_->{'arguments'}[0]{'operands'}[0]{'core'}[0]{'core'})
1 0 0 int @{$_->{'arguments'}[0]{'operands'}[0]{'core'};} == 1 and &blessed($_->{'arguments'}[0]{'operands'}[0]{'core'}[0]{'core'}) and $_->{'arguments'}[0]{'operands'}[0]{'core'}[0]{'core'}->isa('WWW::Shopify::Liquid::Token::String')
183 61 0 5 not $self->is_processed($op2) and $action eq 'optimize'
184 61 0 0 not $self->is_processed($op2) and $action eq 'render'
196 53 0 1 $limit_result and ref $limit_result
53 0 1 $limit_result and ref $limit_result and ref $limit_result eq 'HASH'
0 0 1 $limit_result and ref $limit_result and ref $limit_result eq 'HASH' and &looks_like_number($limit_result->{'limit'})
201 53 0 1 $offset_result and ref $offset_result
53 0 1 $offset_result and ref $offset_result and ref $offset_result eq 'HASH'
0 0 1 $offset_result and ref $offset_result and ref $offset_result eq 'HASH' and &looks_like_number($offset_result->{'offset'})

or 3 conditions

line l !l&&r !l&&!r condition
49 0 0 3 int @tokens > 1 or $tokens[0][0]->tag ne 'else'
185 5 2 54 ref $op2 ne 'ARRAY' or int @$op2 == 0