Condition Coverage

blib/lib/WWW/Shopify/Liquid/Parser.pm
Criterion Covered Total %
condition 36 51 70.5


and 3 conditions

line !l l&&!r l&&r condition
75 13 16 0 int @tokens > 0 and $tokens[0]{'core'} ne ':'
81 17 0 1 $_->isa('WWW::Shopify::Liquid::Token::Separator') and $$_{'core'} eq ','
130 88 0 29 $_->isa('WWW::Shopify::Liquid::Token::Operator') and $$_{'core'} eq '|'
143 0 0 119 $idx > 0 and $idx < $#tokens
0 119 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 119 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')
181 164 5 29 exists $allowed_internal_tags{$tokens[$_]->tag} and $level == 1
80 12 77 $tokens[$_]->tag eq 'end' . $token->tag and $level == 1
191 95 0 11 $self->enclosing_tags->{$token->tag}->inner_ignore_whitespace and int @contents > 0
95 10 1 $self->enclosing_tags->{$token->tag}->inner_ignore_whitespace and int @contents > 0 and int @{$contents[0];} > 0
10 0 1 $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')
194 13 71 59 int @array > 0 and $array[0]->isa('WWW::Shopify::Liquid::Token::Tag')
84 22 37 int @array > 0 and $array[0]->isa('WWW::Shopify::Liquid::Token::Tag') and $allowed_internal_tags{$array[0]->tag}
222 3 0 1 $token->tag =~ /^end(\w+)$/ and $self->enclosing_tags->{$1}

or 3 conditions

line l !l&&r !l&&!r condition
143 119 0 0 $op1->isa('WWW::Shopify::Liquid::Operator') || $op1->isa('WWW::Shopify::Liquid::Token::Operand') || $op1->isa('WWW::Shopify::Liquid::Filter')
108 10 1 $op2->isa('WWW::Shopify::Liquid::Operator') || $op2->isa('WWW::Shopify::Liquid::Token::Operand') || $op2->isa('WWW::Shopify::Liquid::Filter')
155 244 0 1 int @tokens == 1 or int @tokens == 0