Branch Coverage

blib/lib/EJS/Template/Parser/Context.pm
Criterion Covered Total %
branch 50 54 92.5


line true false branch
52 77 5 if ($name eq '' or $name eq 'raw') { }
55 0 5 unless $EJS::Template::Runtime::ESCAPES{$name}
76 3 460 if ($mark =~ s/<%\s*:\s*(\w+)\s*=/<%=/) { }
44 416 elsif ($mark eq '<%=') { }
92 228 235 if $text ne ''
93 315 148 if $mark ne ''
133 122 116 if $state->{'js_open'} ne ''
142 122 34 if $state->{'js_close'} ne ''
148 31 99 if ($token eq '<%') { }
39 60 elsif ($token eq '<%=') { }
0 60 elsif ($token eq "\n") { }
149 31 0 if (defined $opt->{'left'})
152 16 15 if ($opt->{'left'} ne '')
160 8 31 if (defined $opt->{'left'} and $opt->{'left'} ne '')
168 1 38 if (my $escape = $opt->{'escape'})
186 3 80 if ($token eq '<%') { }
15 65 elsif ($token eq '<%=') { }
40 25 elsif ($token eq "\n") { }
193 4 11 if (my $escape = $opt->{'escape'})
209 80 250 if ($token eq '%>') { }
210 27 53 if (my $ltrim = $self->_top_opt->{'ltrim'}) { }
211 25 2 if (defined $opt->{'right'}) { }
212 15 10 if ($opt->{'right'} ne '')
216 2 0 if (defined(my $idx = $ltrim->{'index'}))
224 5 48 if ($self->_top_opt->{'escape'})
232 17 36 if (defined $right and $right ne '')
233 15 2 if ($right =~ s/\n$//) { }