Branch Coverage

blib/lib/Template/Declare.pm
Criterion Covered Total %
branch 34 44 77.2


line true false branch
30 0 72 if (@_)
1067 62 1 if ($args{'dispatch_to'}) { }
1 0 elsif ($args{'roots'}) { }
1073 1 62 if ($args{'postprocessor'})
1077 1 62 if ($args{'around_template'})
1202 0 10 if (@_)
1220 0 0 if (@_)
1252 238 40 if ($self eq 'Template::Declare') { }
1259 0 283 unless $package and $package->isa('Template::Declare')
1260 247 36 if (my $coderef = $package->_has_template($template_name, $show_private))
1439 1 0 if @_
1473 42 37 unless my $tmpl = (shift())->templates->{shift()}
1474 37 0 wantarray ? :
1478 69 10 unless my $tmpl = (shift())->private_templates->{shift()}
1479 10 0 wantarray ? :
1488 241 42 if (my $coderef = $pkg->_find_template_sub(_template_name_to_sub($template_name))) { }
6 71 elsif ($show_private and $coderef = $pkg->_find_template_sub(_template_name_to_private_sub($template_name))) { }
1538 2 24 if (eval { do { $_[0]->isa('Template::Declare') } }) { }
2 22 elsif (eval { do { $_[1]->isa('Template::Declare') } }) { }
1550 0 37 if $_[0] eq 'Template::Declare'
1583 23 30 $mixin eq $from ? :
53 4 unless $vars