Condition Coverage

blib/lib/WWW/Shopify/Liquid/Parser.pm
Criterion Covered Total %
condition 0 60 0.0


and 3 conditions

line !l l&&!r l&&r condition
87 0 0 0 int @tokens > 0 and $tokens[0]{'core'} ne ':'
93 0 0 0 $_->isa('WWW::Shopify::Liquid::Token::Separator') and $_->{'core'} eq ','
121 0 0 0 $_->isa('WWW::Shopify::Liquid::Token::Operator') and defined $_->{'core'}
0 0 0 $_->isa('WWW::Shopify::Liquid::Token::Operator') and defined $_->{'core'} and $self->operator($_->{'core'})
161 0 0 0 $_->isa('WWW::Shopify::Liquid::Token::Operator') and $_->{'core'} eq '|'
173 0 0 0 $idx > 0 and $idx < $#tokens
0 0 0 $idx > 0 and $idx < $#tokens and $op1->isa('WWW::Shopify::Liquid::Operator') || $op1->isa('WWW::Shopify::Liquid::Token::Operand') || $op1->isa('WWW::Shopify::Liquid::Filter')
0 0 0 $idx > 0 and $idx < $#tokens and $op1->isa('WWW::Shopify::Liquid::Operator') || $op1->isa('WWW::Shopify::Liquid::Token::Operand') || $op1->isa('WWW::Shopify::Liquid::Filter') and $op2->isa('WWW::Shopify::Liquid::Operator') || $op2->isa('WWW::Shopify::Liquid::Token::Operand') || $op2->isa('WWW::Shopify::Liquid::Filter')
211 0 0 0 exists $allowed_internal_tags{$tokens[$_]->tag} and $level == 1
0 0 0 $tokens[$_]->tag eq 'end' . $token->tag and $level == 1
221 0 0 0 $self->enclosing_tags->{$token->tag}->inner_ignore_whitespace and int @contents > 0
0 0 0 $self->enclosing_tags->{$token->tag}->inner_ignore_whitespace and int @contents > 0 and int @{$contents[0];} > 0
0 0 0 $self->enclosing_tags->{$token->tag}->inner_ignore_whitespace and int @contents > 0 and int @{$contents[0];} > 0 and $contents[0][0]->isa('WWW::Shopify::Liquid::Token::Text::Whitespace')
224 0 0 0 int @array > 0 and $array[0]->isa('WWW::Shopify::Liquid::Token::Tag')
0 0 0 int @array > 0 and $array[0]->isa('WWW::Shopify::Liquid::Token::Tag') and $allowed_internal_tags{$array[0]->tag}
252 0 0 0 $token->tag =~ /^end(\w+)$/ and $self->enclosing_tags->{$1}

or 3 conditions

line l !l&&r !l&&!r condition
173 0 0 0 $op1->isa('WWW::Shopify::Liquid::Operator') || $op1->isa('WWW::Shopify::Liquid::Token::Operand') || $op1->isa('WWW::Shopify::Liquid::Filter')
0 0 0 $op2->isa('WWW::Shopify::Liquid::Operator') || $op2->isa('WWW::Shopify::Liquid::Token::Operand') || $op2->isa('WWW::Shopify::Liquid::Filter')
185 0 0 0 int grep({not $_->isa('WWW::Shopify::Liquid::Token::Variable::Named');} @tokens) == 1 or int grep({not $_->isa('WWW::Shopify::Liquid::Token::Variable::Named');} @tokens) == 0
303 0 0 0 $self->is_processed($ast) or $ast->isa('WWW::Shopify::Liquid::Token')