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
77 114 123 64 $have_seen_tag and &$line_is_whitespace()
80 10 12 3 $next = $tokens[$j + 1] and $next->{'tag'} eq '>'
152 295 2 2 $options->{'allow_whitespace_before_hashmark'} and char_at($text, $i + 1) eq ' '
241 461 231 0 $tail and $tail->{'tag'} eq '<'
692 0 0 $tail and $tail->{'tag'} eq '<' and not $allowed_in_super{$token->{'tag'}}
245 99 524 69 $tags{$token->{'tag'}} and $tags{$token->{'tag'}} <= $tags{'$'} || is_opener($token, $custom_tags)
254 69 0 0 $token->{'n'} ne $opener->{'n'} and not is_closer($token->{'n'}, $opener->{'n'}, $custom_tags)
291 0 0 0 $tags->[$i]{'c'} eq $close and $tags->[$i]{'o'} eq $open

or 2 conditions

line l !l condition
421 0 15 $context->{'prefix'} || ''
429 3 12 $node->{'indent'} || ''
517 144 1 $options ||= {}
518 0 145 $options->{'section_tags'} || []
525 5 154 $options->{'delimiters'} || ''
1 158 $options->{'allow_whitespace_before_hashmark'} || 0
530 32 127 $options ||= {}
532 158 1 $text //= ''

or 3 conditions

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