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 76 if ($ENV{'MUSTACHE_DEBUG'})
147 33 19 unless (ref $self)
148 33 0 unless ref $self
150 32 1 if defined $template
151 2 31 if @_ == 2
154 34 18 @_ ? :
164 77 74 if $key eq "." or $key eq ""
171 32 44 if (&blessed($c))
172 0 32 unless $c->can($first)
175 42 2 if (ref $c eq "HASH")
176 2 40 unless exists $c->{$first}
180 2 0 if (ref $c eq "ARRAY")
181 0 2 unless &looks_like_number($first)