Condition Coverage

blib/lib/Text/Hogan/Compiler.pm
Criterion Covered Total %
condition 37 49 75.5


and 3 conditions

line !l l&&!r l&&r condition
76 114 123 64 $have_seen_tag and &$line_is_whitespace()
79 10 12 3 $next = $tokens[$j + 1] and $next->{'tag'} eq '>'
151 295 2 2 $options->{'allow_whitespace_before_hashmark'} and char_at($text, $i + 1) eq ' '
240 461 231 0 $tail and $tail->{'tag'} eq '<'
692 0 0 $tail and $tail->{'tag'} eq '<' and not $allowed_in_super{$token->{'tag'}}
244 99 524 69 $tags{$token->{'tag'}} and $tags{$token->{'tag'}} <= $tags{'$'} || is_opener($token, $custom_tags)
253 69 0 0 $token->{'n'} ne $opener->{'n'} and not is_closer($token->{'n'}, $opener->{'n'}, $custom_tags)
290 0 0 0 $tags->[$i]{'c'} eq $close and $tags->[$i]{'o'} eq $open

or 2 conditions

line l !l condition
422 0 15 $context->{'prefix'} || ''
430 3 12 $node->{'indent'} || ''
518 144 1 $options ||= {}
519 0 145 $options->{'section_tags'} || []
526 5 154 $options->{'delimiters'} || ''
1 158 $options->{'allow_whitespace_before_hashmark'} || 0
531 32 127 $options ||= {}
533 158 1 $text //= ''

or 3 conditions

line l !l&&r !l&&!r condition
63 64 39 123 $tags{$tokens[$j]{'tag'}} < $tags{'_v'} || $tokens[$j]{'tag'} eq '_t' && !($tokens[$j]{'text'} =~ /$r_is_whitespace/)
244 69 0 524 $tags{$token->{'tag'}} <= $tags{'$'} || is_opener($token, $custom_tags)
260 35 0 64 @$tokens == 0 || $tokens->[0]{'tag'} eq "\n"