Branch Coverage

blib/lib/Template/Alloy/Context.pm
Criterion Covered Total %
branch 10 40 25.0


line true false branch
21 0 163 unless $self->{'_template'}
25 0 302 unless +(shift())->{'_template'}
74 0 142 if (my $err = $@)
75 0 0 unless UNIVERSAL::can($err, 'type') and $err->type =~ /return/
83 0 0 if $is_dynamic
92 0 0 if (not ref $name) { }
0 0 elsif (UNIVERSAL::isa($name, 'CODE') or UNIVERSAL::isa($name, 'ARRAY')) { }
0 0 elsif (UNIVERSAL::can($name, 'factory')) { }
94 0 0 unless $filter
103 0 0 if (UNIVERSAL::isa($filter, 'ARRAY')) { }
0 0 elsif ($args and @$args) { }
104 0 0 $filter->[1] ? :
110 0 0 if $alias
120 0 8 if (UNIVERSAL::can($type, 'type')) { }
8 0 elsif (defined $info) { }
139 0 9 unless +(shift())->{'_template'}
143 3 0 unless (ref $var)
144 3 0 if ($var =~ /^\w+$/) { }
152 3 0 unless (ref $var)
153 0 3 if ($var =~ /^\w+$/) { }