Branch Coverage

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


line true false branch
29 163 0 if ($self->{'r'})
57 22 0 defined $str ? :
76 0 16 if ($partial->{'instance'} and $partial->{'base'} eq $template)
80 16 0 unless (ref $template)
81 0 16 unless $self->{'c'}
86 0 16 unless $template
90 16 0 if ($partial->{'subs'})
95 0 0 unless ($partials->{'stack_text'}{$key})
99 0 0 $self->{'active_sub'} && $partials->{'stack_text'}{$self->{'active_sub'}} ? :
113 0 16 unless my $partial = $self->ep($symbol, $partials)
122 29 8 if (ref $tail ne 'ARRAY')
139 3 74 if ref $val eq 'ARRAY' and not @$val
141 6 68 if (ref $val eq 'CODE')
147 37 11 if (not $inverted and $pass and $ctx)
148 19 18 ref $val eq 'ARRAY' || ref $val eq 'HASH' ? :
169 23 14 $key eq '.' ? :
175 23 14 if ($key eq '.' and ref $ctx->[-2] eq 'ARRAY') { }
181 21 9 if (defined $found) { }
191 4 33 if $return_found and not $val
193 0 33 if (not $return_found and ref $val eq 'CODE')
210 1 218 if $self->{'numeric_string_as_string'} == 1
212 107 111 if &looks_like_number($val)
225 158 186 unless defined $val
231 4 26 $return_found ? :
30 186 unless $found
233 8 178 if (not $return_found and ref $val eq 'CODE')
257 0 13 if $self->{'options'}{'disable_lambda'}
279 1 5 if $inverted
283 0 5 $self->{'active_sub'} && $self->{'subs_text'} && $self->{'subs_text'}{$self->{'active_sub'}} ? :
303 0 0 unless my $f = $self->{'subs'}{$name}
329 0 0 unless ($stack_subs->{$key})
341 0 0 unless ($stack_partials->{$key})
355 0 0 defined $str ? :