Branch Coverage

blib/lib/Text/MicroTemplate/Extended.pm
Criterion Covered Total %
branch 36 44 81.8


line true false branch
12 5 1 unless defined $$self{'extension'}
28 52 2 if (defined $code) { }
29 21 31 if ($self->render_context->{'blocks'}{$name})
33 16 5 ref $code eq 'CODE' ? :
39 26 5 ref $code eq 'CODE' ? :
42 0 2 unless $block = $self->render_context->{'blocks'}{$name}
46 33 21 if (not $self->render_context->{'extends'})
50 14 19 unless $self->render_context->{'super'}{$name}
63 0 26 unless ($name =~ /^[a-zA-Z_][a-zA-Z0-9_]*$/)
71 26 0 ref $code eq 'CODE' ? :
79 0 291 if @_
85 0 51 if @_
116 42 5 unless ($die_msg)
117 21 21 if (my $parent = delete $$context{'extends'})
124 5 38 if $die_msg
143 2 53 if ($@)
162 92 327 if @_
174 41 0 if $c[0] ne 'Text::MicroTemplate::Extended'
180 0 41 unless $self->template_args
181 0 109 unless ($key =~ /^[a-zA-Z_][a-zA-Z0-9_]*$/)
185 25 84 if (ref $self->template_args->{$key} eq 'CODE') { }
198 39 2 if (my $builder = $self->eval_builder)