Branch Coverage

blib/lib/HTML/Template/Compiled/Expr.pm
Criterion Covered Total %
branch 25 30 83.3


line true false branch
118 0 19 unless (@$args)
124 2 17 if (@$args > 1) { }
145 17 94 if ($type eq 'SUB_EXPR') { }
30 64 elsif ($type eq 'VAR') { }
15 49 elsif ($type eq 'LITERAL') { }
16 33 elsif ($type eq 'LITERAL_STRING') { }
1 32 elsif ($type eq 'METHOD_CALL') { }
14 18 elsif ($type eq 'VAR_DEREF') { }
12 6 elsif ($type eq 'DEREF_HASH') { }
4 2 elsif ($type eq 'DEREF_ARRAY') { }
2 0 elsif ($type eq 'FUNCTION_CALL') { }
150 17 0 if ($op->[0] eq 'BIN_OP')
204 2 2 if (ref $index) { }
0 2 elsif (not $index =~ /-?[0-9]+/) { }
219 0 2 unless $args[0]