Branch Coverage

blib/lib/Data/Xslate.pm
Criterion Covered Total %
branch 25 42 59.5


line true false branch
34 0 153 if @_ % 2 != 0
45 9 450 unless exists $args->{$key}
104 785 1847 if exists $Data::Xslate::NODES->{$path}
106 931 916 if (not ref $node) { }
915 1 elsif (ref $node eq 'HASH') { }
1 0 elsif (ref $node eq 'ARRAY') { }
107 931 0 if (defined $node)
108 157 774 if ($node =~ /^\Q$SUBSTITUTION_TAG\E\s*(.+?)\s*$/) { }
121 152 1234 if ($key =~ /^(.*)\Q$NESTED_KEY_TAG\E$/) { }
157 640 0 if (ref $node eq 'HASH') { }
0 0 elsif (ref $node eq 'ARRAY') { }
158 7 633 unless exists $node->{$key}
162 0 0 if $key > $#$node
176 1 316 if ($path =~ /^\Q$KEY_SEPARATOR\E(.+)/)
188 317 7 if $node
213 152 0 if (ref $node eq 'HASH') { }
0 0 elsif (ref $node eq 'ARRAY') { }
214 0 152 unless exists $node->{$key}
218 0 0 if $key > $#$node
229 152 0 if (ref $node eq 'HASH') { }
0 0 elsif (ref $node eq 'ARRAY') { }