Branch Coverage

blib/lib/Template/Like/Stash.pm
Criterion Covered Total %
branch 13 20 65.0


line true false branch
16 0 114 if (@_)
37 0 157 if ($key =~ /([^\.]+)\.(.*)/)
38 0 0 unless exists $$self{$1}
42 11 146 unless exists $$self{$key}
47 0 146 if (UNIVERSAL::isa($ret, 'CODE'))
59 18 25 if (UNIVERSAL::can($val, $key)) { }
20 5 elsif (UNIVERSAL::isa($val, 'HASH') and exists $$val{$key}) { }
0 5 elsif (UNIVERSAL::isa($val, 'ARRAY') and $key =~ /^\d+$/) { }
4 1 elsif ('Template::Like::VMethods'->can($key, $val)) { }
80 0 42 if (UNIVERSAL::isa($val, 'CODE'))