Branch Coverage

blib/lib/Template/Mustache.pm
Criterion Covered Total %
branch 25 32 78.1


line true false branch
122 2 4 if ref $partials eq 'CODE'
125 0 5 if ref $template
126 0 5 ref $template ? :
135 0 72 if ($ENV{'MUSTACHE_DEBUG'})
147 29 19 unless (ref $self)
148 29 0 unless ref $self
150 28 1 if defined $template
151 2 27 if @_ == 2
154 30 18 @_ ? :
164 73 72 if $key eq '.' or $key eq ''
171 32 42 if (&blessed($c))
172 0 32 unless $c->can($first)
175 40 2 if (ref $c eq 'HASH')
176 2 38 unless exists $c->{$first}
180 2 0 if (ref $c eq 'ARRAY')
181 0 2 unless &looks_like_number($first)