Branch Coverage

blib/lib/Template/Declare.pm
Criterion Covered Total %
branch 36 46 78.2


line true false branch
31 0 72 if (@_)
1091 66 1 if ($args{'dispatch_to'}) { }
1 0 elsif ($args{'roots'}) { }
1097 2 65 if exists $args{'strict'}
1098 1 66 if $args{'postprocessor'}
1099 1 66 if $args{'around_template'}
1221 0 10 if (@_)
1239 0 0 if (@_)
1271 246 40 if ($self eq 'Template::Declare') { }
1278 0 291 unless $package and $package->isa('Template::Declare')
1279 252 39 if (my $coderef = $package->_has_template($template_name, $show_private))
1458 1 0 if @_
1492 42 37 unless my $tmpl = (shift())->templates->{shift()}
1493 37 0 wantarray ? :
1497 69 10 unless my $tmpl = (shift())->private_templates->{shift()}
1498 10 0 wantarray ? :
1507 246 45 if (my $coderef = $pkg->_find_template_sub(_template_name_to_sub($template_name))) { }
6 77 elsif ($show_private and $coderef = $pkg->_find_template_sub(_template_name_to_private_sub($template_name))) { }
1557 2 24 if (eval { do { $_[0]->isa('Template::Declare') } }) { }
2 22 elsif (eval { do { $_[1]->isa('Template::Declare') } }) { }
1569 0 37 if $_[0] eq 'Template::Declare'
1602 23 30 $mixin eq $from ? :
53 4 unless $vars