Condition Coverage

blib/lib/WWW/Shopify/Liquid/Lexer.pm
Criterion Covered Total %
condition 85 111 76.5


and 3 conditions

line !l l&&!r l&&r condition
48 0 0 47 defined $key and $key ne ''
49 0 2 45 reftype $place and reftype $place eq 'HASH'
2 0 45 reftype $place and reftype $place eq 'HASH' and exists $$place{$key}
0 0 2 reftype $place and reftype $place eq 'ARRAY'
0 0 2 reftype $place and reftype $place eq 'ARRAY' and looks_like_number $key
0 0 2 reftype $place and reftype $place eq 'ARRAY' and looks_like_number $key and defined $$place[$key]
116 92 184 46 $package->is_enclosing and $package->inner_halt_lexing
141 300 144 16 $sym and $sym eq ']'
142 12 6 442 $sym eq '.' || $sym eq ']' || $sym eq '[' || !$sym and $open_bracket == 0
144 0 2 440 defined $contents and $contents ne ''
163 0 12 448 $sym ne '"' and $sym ne q[']
12 6 442 $sym ne '"' and $sym ne q['] and not $open_bracket
164 300 144 16 $sym and $sym eq '['
186 903 0 21 $rc eq '(' and $level++ == 0
187 908 0 16 $rc eq '[' and $sq_level++ == 0
189 903 0 21 $rc eq ')' and --$level == 0
194 55 34 835 $level == 0 and $sq_level == 0
206 900 0 102 $rc eq q['] and not $dquot
207 986 0 16 $rc eq '"' and not $squot
211 327 6 51 $tokens[$_]->isa('WWW::Shopify::Liquid::Token::Number') and $tokens[$_ - 1]->isa('WWW::Shopify::Liquid::Token::Operator')
333 50 1 $tokens[$_]->isa('WWW::Shopify::Liquid::Token::Number') and $tokens[$_ - 1]->isa('WWW::Shopify::Liquid::Token::Operator') and $tokens[$_ - 1]{'core'} eq '-'
245 170 10 267 $tag and not $lexing_halter
180 263 4 $tag and not $lexing_halter and exists $$self{'lexing_halters'}{$tag}
170 263 10 $tag and $lexing_halter
433 6 4 $tag and $lexing_halter and $tag eq 'end' . $lexing_halter

or 3 conditions

line l !l&&r !l&&!r condition
85 0 104 90 not defined $_[2] or $_[2] =~ /^\s*$/
130 39 8 415 $token =~ /^'(.*)'$/ or $token =~ /^"(.*)"$/
133 17 2 314 $token eq ':' or $token eq ','
140 0 0 460 $squot or $dquot
142 32 300 12 $sym eq '.' || $sym eq ']' || $sym eq '[' || !$sym
146 300 109 31 not $sym or $sym eq '.'
409 15 16 not $sym or $sym eq '.' or $sym eq '['
176 0 128 273 not defined $exp or $exp eq ''
185 67 0 935 $squot or $dquot
196 602 149 84 defined $whitespace or $nword_op
211 0 1 0 $_ == 1 or $tokens[$_ - 2]->isa('WWW::Shopify::Liquid::Token::Separator')
1 0 0 $_ == 1 or $tokens[$_ - 2]->isa('WWW::Shopify::Liquid::Token::Separator') or $tokens[$_ - 2]->isa('WWW::Shopify::Liquid::Token::Operator')