Branch Coverage

blib/lib/Text/Hogan/Template.pm
Criterion Covered Total %
branch 43 66 65.1


line true false branch
30 163 0 if ($self->{'r'})
58 22 0 defined $str ? :
77 0 16 if ($partial->{'instance'} and $partial->{'base'} eq $template)
81 16 0 unless (XXX)
82 0 16 unless $self->{'c'}
87 0 16 unless $template
91 16 0 if ($partial->{'subs'})
96 0 0 unless ($partials->{'stack_text'}{$key})
100 0 0 $self->{'active_sub'} && $partials->{'stack_text'}{$self->{'active_sub'}} ? :
114 0 16 unless my $partial = $self->ep($symbol, $partials)
123 29 8 unless (XXX)
140 3 74 if XXX and not @$val
142 6 68 if (XXX)
148 37 11 if (not $inverted and $pass and $ctx)
149 19 18 XXX || XXX ? :
170 23 14 $key eq '.' ? :
176 23 14 if ($key eq '.' and XXX) { }
182 21 9 if (defined $found) { }
192 4 33 if $return_found and not $val
194 0 33 if (not $return_found and XXX)
211 1 218 if $self->{'numeric_string_as_string'} == 1
213 107 111 if &looks_like_number($val)
226 158 186 unless defined $val
232 4 26 $return_found ? :
30 186 unless $found
234 8 178 if (not $return_found and XXX)
258 0 13 if $self->{'options'}{'disable_lambda'}
280 1 5 if $inverted
284 0 5 $self->{'active_sub'} && $self->{'subs_text'} && $self->{'subs_text'}{$self->{'active_sub'}} ? :
304 0 0 unless my $f = $self->{'subs'}{$name}
330 0 0 unless ($stack_subs->{$key})
342 0 0 unless ($stack_partials->{$key})
356 0 0 defined $str ? :