Branch Coverage

blib/lib/Template/Stash/AutoEscape.pm
Criterion Covered Total %
branch 25 42 59.5


line true false branch
32 0 2 if (ref $$self{'escape_method'} eq 'CODE') { }
35 0 0 unless ($escape_class->can('escape'))
36 0 0 unless $escape_class->require
42 0 2 unless ($escape_class->can('escape'))
43 0 0 unless $escape_class->require
64 2 67 if (ref $v eq $escaped_class) { }
3 64 elsif (ref $v eq 'ARRAY') { }
69 1 2 if ($new_v) { }
80 15 3 unless $changed
87 0 43 if $DEBUG
91 15 28 if (not $ESCAPE_ARGS and ref $args[0] eq 'ARRAY' and scalar @{$args[0];} > 2)
95 2 13 if ($changed)
102 13 28 if (ref $args[0] eq 'ARRAY')
104 0 13 if $DEBUG
105 0 13 if (grep {$key eq $_;} @{$$self{'ignore_escape'};})
106 0 0 if $DEBUG
113 31 10 unless ($ref)
114 0 31 if $DEBUG
118 6 4 if ($ref eq $$self{'_raw_string_class'})
133 52 0 if (@_ == 1) { }
0 0 elsif (@_ == 2) { }