Branch Coverage

blib/lib/Dancer/Template/Simple.pm
Criterion Covered Total %
branch 38 44 86.3


line true false branch
21 248 0 unless defined $self->start_tag
22 248 0 unless defined $self->stop_tag
62 414 321 if (defined $flat[$flat_index] and $flat[$flat_index] eq $full[$full_index])
65 412 2 if $should_bufferize
72 2 319 if $word =~ /\s+/
76 2 321 if ($w eq 'if') { }
2 319 elsif ($w eq 'else') { }
2 317 elsif ($w eq 'end') { }
2 315 elsif ($bufferize_if_token) { }
315 0 elsif ($should_bufferize) { }
87 1 1 _interpolate_value($bool) ? :
109 46 52 if (ref $template) { }
113 1 51 unless -f $template
116 0 51 unless defined $content
128 317 31 if (not defined $value) { }
20 11 elsif (ref $value eq 'HASH') { }
11 0 elsif (ref $value) { }
137 1 10 if $@
145 2 315 if (ref $value eq 'CODE') { }
2 313 elsif (ref $value eq 'ARRAY') { }
148 0 2 if $@
154 8 309 unless defined $value