Branch Coverage

blib/lib/HTML/Template/JIT/Compiler.pm
Criterion Covered Total %
branch 65 86 75.5


line true false branch
40 0 9 if ($$self{'jit_debug'})
57 0 9 if $result
60 9 0 unless $$self{'jit_debug'}
61 9 0 if $@
73 0 9 unless open MODULE, ">$$self{'package_path'}"
77 0 9 if ($$self{'jit_debug'})
151 5 11 if $offset > $$self{'max_depth'}
171 13 103 if $blocks{$x}
173 64 52 if ($type eq 'SCALAR') { }
18 34 elsif ($type eq 'HTML::Template::VAR') { }
0 34 elsif ($type eq 'HTML::Template::DEFAULT') { }
7 27 elsif ($type eq 'HTML::Template::LOOP') { }
13 14 elsif ($type eq 'HTML::Template::COND') { }
4 10 elsif ($type eq 'HTML::Template::ESCAPE') { }
0 10 elsif ($type eq 'HTML::Template::URLESCAPE') { }
0 10 elsif ($type eq 'HTML::Template::JSESCAPE') { }
10 0 elsif ($type eq 'HTML::Template::NOOP') { }
175 5 59 if ($$self{'print_to_stdout'}) { }
187 4 14 if (exists $vars{$name}) { }
199 4 14 if ($do_escape)
204 2 16 $$self{'print_to_stdout'} ? :
249 6 7 if (exists $vars{$name}) { }
288 3 10 if ($is_uncond) { }
291 7 3 if ($is_var) { }
292 1 6 if ($is_unless) { }
300 1 2 if ($is_unless) { }
325 0 7 if ($$self{'loop_context_vars'})
340 0 7 if ($$self{'loop_context_vars'})
379 7 9 if (@$path) { }
388 21 7 if ($type eq 'VAR') { }
402 0 42 unless defined $pool
404 21 21 $default ? :
411 9 23 unless defined $pool
423 6 53 unless $_[0]
432 1 4 unless $_[0]
443 3 18 if $global and $offset
473 4 0 if ($escape eq 'HTML') { }
0 0 elsif ($escape eq 'URL') { }
0 0 elsif ($escape eq 'JS') { }
543 4 12 $_[1] ? :
0 16 defined $_[2] ? :
550 0 2 $_[1] ? :
0 2 defined $_[2] ? :