Branch Coverage

lib/Jinja2/TT2/Emitter.pm
Criterion Covered Total %
branch 60 108 55.5


line true false branch
21 43 69 if ($ast->{'type'} eq "ROOT")
26 69 0 if ($self->can($method))
46 1 31 $node->{'strip_before'} ? :
47 1 31 $node->{'strip_after'} ? :
56 0 10 $node->{'strip_before'} ? :
57 0 10 $node->{'strip_after'} ? :
67 1 3 if ($branch->{'type'} eq 'ELIF') { }
3 0 elsif ($branch->{'type'} eq 'ELSE') { }
98 0 3 if (@{$node->{'else_body'};})
107 3 0 unless @{$node->{'else_body'};}
140 0 1 $node->{'strip_before'} ? :
141 0 1 $node->{'strip_after'} ? :
165 0 0 $_->{'alias'} ne $_->{'name'} ? :
176 1 0 if ($node->{'value'}) { }
196 0 1 if (defined $_->{'default'})
285 0 91 unless $node
289 48 43 if ($type eq "NAME")
292 5 43 if ($name eq "loop")
298 14 29 if ($type eq "LITERAL")
299 3 11 if ($node->{'subtype'} eq 'STRING') { }
4 7 elsif ($node->{'subtype'} eq 'BOOL') { }
0 7 elsif ($node->{'subtype'} eq 'NONE') { }
304 2 2 $node->{'value'} ? :
312 6 23 if ($type eq "BINOP")
334 1 22 if ($type eq "UNARYOP")
338 1 0 if ($op eq "not")
345 1 21 if ($type eq "TERNARY")
348 1 0 $node->{'false_val'} ? :
353 7 14 if ($type eq "GETATTR")
358 5 2 if ($expr eq "loop")
374 1 13 if ($type eq "GETITEM")
378 0 1 if $index =~ /^[a-zA-Z]/u
382 1 12 if ($type eq "CALL")
391 1 0 if ($expr eq "range")
392 1 0 if (@args == 1) { }
0 0 elsif (@args == 2) { }
0 0 elsif (@args == 3) { }
402 0 0 if ($expr eq "super")
409 10 2 if ($type eq "FILTER")
414 1 1 if ($type eq "LIST")
419 0 1 if ($type eq "TUPLE")
424 1 0 if ($type eq "DICT")
433 0 0 if ($type eq "NAMED_ARG")
450 10 0 if ($tt2_filter->{'type'} eq 'vmethod') { }
0 0 elsif ($tt2_filter->{'type'} eq 'filter') { }
0 0 elsif ($tt2_filter->{'type'} eq 'custom') { }
451 1 9 if ($tt2_filter->{'args'}) { }
457 0 0 if ($tt2_filter->{'args'}) { }
466 0 0 @args ? :
474 0 0 if ($node->{'type'} eq 'FILTER') { }
0 0 elsif ($node->{'type'} eq 'NAME') { }
475 0 0 $node->{'expr'} ? :
479 0 0 @args ? :
482 0 0 $inner ? :