Branch Coverage

lib/Async/Template/Context.pm
Criterion Covered Total %
branch 25 38 65.7


line true false branch
42 82 149 if ($ev->{'resvar'})
100 19 3 unless ref $template eq 'ARRAY'
105 0 0 defined $params ? :
0 0 $localize ? :
0 22 if $self->{'DEBUG'}
112 13 9 if ($localize) { }
135 20 25 unless (@{$ev->{'template'};})
150 0 14 ref $name ? :
14 11 ref $compiled eq 'CODE' ? :
154 8 17 if (&blessed($component) and $component->isa('Async::Template::Document'))
162 12 13 unless ($localize)
165 0 0 if &blessed($compiled) and $compiled->isa('Async::Template::Document') and $tblocks = $compiled->blocks
170 14 11 if (ref $compiled eq 'CODE') { }
11 0 elsif (ref $compiled) { }
183 0 25 if ($trim)
198 8 17 if &blessed($component) and $component->isa('Async::Template::Document')
216 12 8 if ($ev->{'localize'})
221 0 0 ref $error ? :
0 20 if $error