Branch Coverage

blib/lib/Template/Resolver.pm
Criterion Covered Total %
branch 28 42 66.6


line true false branch
23 11 87 unless $properties
26 63 35 if ($ref and $ref eq 'HASH' or &blessed($entity)) { }
3 32 elsif ($ref and $ref eq 'ARRAY') { }
0 32 elsif ($ref) { }
28 64 17 $prefix ? :
35 6 0 $prefix ? :
53 1 0 $transform ? :
1 26 unless defined $transformed
71 0 11 $options{'additional_transforms'} ? :
85 6 3 if ($ref and $ref eq 'HASH') { }
3 0 elsif ($ref and $ref eq 'ARRAY') { }
0 0 elsif ($ref) { }
86 2 12 $_[1] ? :
91 0 14 $_[1] ? :
104 0 40 if ($text eq "\${\Q$template_key\E<\Q$loop_name\E.\Q$key_match\E}}") { }
139 0 0 unless $name or $indices
140 19 0 if $name
141 2 17 if ($indices)
156 3 9 if ($options{'content'}) { }
0 9 elsif ($options{'handle'}) { }
9 0 elsif ($options{'filename'}) { }