Condition Coverage

blib/lib/Template/LiquidX/Tidy/impl.pm
Criterion Covered Total %
condition 46 125 36.8


and 3 conditions

line !l l&&!r l&&r condition
61 0 0 0 $stack->{'waiting'} and @{$stack->{'waiting'}}
71 0 3 0 $stack->{'waiting'} and @{$stack->{'waiting'}}
3 0 0 $stack->{'waiting'} and @{$stack->{'waiting'}} and $stack->{'waiting'}[-1] eq $tag
75 0 0 3 $stack->{'open_tags'} and $stack->{'open_tags'}[-1] eq $tag
262 0 0 20 $short_if > 0 and not $next_nl
0 12 8 $short_if > 0 and not $next_nl and not $content =~ /\n/
263 4 4 0 $content =~ /$PI_START\s*(if|unless)\s/ and length $peek_content <= $short_if
8 0 0 $content =~ /$PI_START\s*(if|unless)\s/ and length $peek_content <= $short_if and $i + 2 <= $#list
4 0 0 $content =~ /$PI_START\s*(if|unless)\s/ and length $peek_content <= $short_if and $i + 2 <= $#list and $list[$i + 2][1] =~ /$PI_START/
268 8 0 0 $content =~ /$PI_START\s*end(if|unless)\s/ and length $poke_content <= $short_if
8 0 0 $content =~ /$PI_START\s*end(if|unless)\s/ and length $poke_content <= $short_if and $i - 2 >= 0
0 0 0 $content =~ /$PI_START\s*end(if|unless)\s/ and length $poke_content <= $short_if and $i - 2 >= 0 and $list[$i - 2][1] =~ /$PI_START\s*(\Q$1\E\s|elsif\s|else)/
285 0 0 20 $poke_content =~ /^(.*)\z/m and length $1
0 0 0 $indent_html and $poke_content =~ />\s*\n\z/
302 0 0 0 $required_indent >= 0 and not $next_nl
325 20 0 0 $peek_content eq "\n" and not grep({$_->[1] ne "\n";} @list[$i + 1 .. $#list])
336 12 15 0 $content =~ /^\s*$LV_START/ and _ws_only_before($i, @list)
348 0 24 3 $indent_html and $content =~ /^\s*<[^!]/
24 3 0 $indent_html and $content =~ /^\s*<[^!]/ and $poke_content =~ /\n\z/
364 0 6 21 $indent_html and _ws_only_after_beforepi($i, @list)
373 21 0 0 $m1 eq "\n" and $poke_content =~ /$PI_START/
21 0 0 $m1 eq "\n" and $poke_content =~ /$PI_START/ and not $poke_content =~ /$PI_START\s*capture/
380 0 27 0 $indent_html and $content =~ /^[ \t]+$/
27 0 0 $indent_html and $content =~ /^[ \t]+$/ and $peek_content =~ /$LV_START/ || $peek_content =~ /$PI_START/
0 0 0 $indent_html and $content =~ /^[ \t]+$/ and $peek_content =~ /$LV_START/ || $peek_content =~ /$PI_START/ and $poke_content =~ /\n\z/
390 18 9 0 $it->[2] && $it->[2]{'open'} && @{$it->[2]{'open'}} && $it->[2]{'open'}[-1] eq 'script'
0 0 27 $indent_html and not $it->[2] && $it->[2]{'open'} && @{$it->[2]{'open'}} && $it->[2]{'open'}[-1] eq 'script'

or 2 conditions

line l !l condition
216 3 0 ($args->{'short_if'} // $Template::LiquidX::Tidy::impl::defaults{'short_if'}) // 0

or 3 conditions

line l !l&&r !l&&!r condition
124 0 12 0 $args->{'html'} // $Template::LiquidX::Tidy::impl::defaults{'html'}
141 0 0 0 $args->{'html'} // $Template::LiquidX::Tidy::impl::defaults{'html'}
160 8 0 4 $args->{'force_nl'} // $Template::LiquidX::Tidy::impl::defaults{'force_nl'}
161 0 12 0 $args->{'force_nl_tags'} // $Template::LiquidX::Tidy::impl::defaults{'force_nl_tags'}
215 0 3 0 $args->{'indent'} // $Template::LiquidX::Tidy::impl::defaults{'indent'}
216 0 3 0 $args->{'short_if'} // $Template::LiquidX::Tidy::impl::defaults{'short_if'}
217 0 3 0 $args->{'html'} // $Template::LiquidX::Tidy::impl::defaults{'html'}
237 12 8 4 $content =~ /\n/ || _force_nl_tags($args, $content)
4 0 20 not $content =~ /\n/ || _force_nl_tags($args, $content) or $content =~ /$PI_START\s*post_url\s/
285 20 0 0 $poke_content =~ /^(.*)\z/m and length $1 or $indent_html and $poke_content =~ />\s*\n\z/
0 0 0 _ws_only_before($i, @list) or $next_nl
316 3 0 17 $peek_content =~ /$PI_START/ or $peek_content =~ /^\n/
325 0 0 20 $i == $#list or $peek_content eq "\n" and not grep({$_->[1] ne "\n";} @list[$i + 1 .. $#list])
380 0 0 0 $peek_content =~ /$LV_START/ || $peek_content =~ /$PI_START/