Branch Coverage

blib/lib/Template/Stash/AutoEscaping.pm
Criterion Covered Total %
branch 27 44 61.3


line true false branch
38 0 3 if (ref $$self{'escape_method'} eq 'CODE') { }
41 0 0 unless ($escape_class->can('escape'))
42 0 0 unless $escape_class->require
48 0 3 unless ($escape_class->can('escape'))
49 0 0 unless $escape_class->require
77 2 75 if (ref $v eq $escaped_class) { }
3 72 elsif (ref $v eq 'ARRAY') { }
82 1 2 if ($new_v) { }
93 17 3 unless $changed
100 0 49 if $DEBUG
104 17 32 if (not $ESCAPE_ARGS and ref $args[0] eq 'ARRAY' and scalar @{$args[0];} > 2)
108 2 15 if ($changed)
115 15 32 if (ref $args[0] eq 'ARRAY')
117 0 15 if $DEBUG
118 0 15 if (grep {$key eq $_;} @{$$self{'ignore_escape'};})
119 0 0 if $DEBUG
126 13 34 if (not $ref and length $var > 0)
127 1 12 if ($$self{'die_on_unescaped'}) { }
133 0 12 if $DEBUG
138 8 26 if ($ref eq $$self{'_raw_string_class'})
153 38 0 if (@_ == 1) { }
0 0 elsif (@_ == 2) { }