Branch Coverage

lib/Async/Template/Directive.pm
Criterion Covered Total %
branch 33 46 71.7


line true false branch
65 2 65 if $params eq '0'
66 0 67 unless ']' eq substr($params, -1)
68 2 65 $params =~ /^\[\s*\]$/ ? :
78 2 0 if $resvar
112 0 37 unless $block =~ /\S/
128 59 0 if $resvar
166 5 10 @$hash ? :
199 0 2 if $Template::Directive::PRETTY
201 1 1 unless ($is_blk_ev)
312 8 0 if ($target) { }
410 12 8 $evented ? :
423 4 2 if (defined $default)
424 4 0 if ('ARRAY' eq ref $default)
457 6 0 if $resvar
484 27 0 $else ? :
494 13 14 if ($is_blk_ev)
508 8 10 if ($is_blk_ev)
521 12 15 if (defined $else)
523 6 6 if ('ARRAY' eq ref $else and 'ev' eq $else->[1])
554 2 0 if (ref $name)
555 2 0 if (scalar @$name == 2 and not $name->[1]) { }
584 2 0 if (ref $name)
585 2 0 if (scalar @$name == 2 and not $name->[1]) { }