Branch Coverage

blib/lib/YAML/Old/Node.pm
Criterion Covered Total %
branch 28 36 77.7


line true false branch
13 845 975 if (ref $_[0] eq 'HASH') { }
58 917 elsif (ref $_[0] eq 'ARRAY') { }
0 917 elsif (ref \$_[0] eq 'GLOB') { }
25 162 1658 ref($self) =~ /^yaml_/ ? :
33 67 0 $type eq 'HASH' ? :
10 67 $type eq 'ARRAY' ? :
13 77 !defined($type) ? :
38 13 77 if ($$self{'KIND'} eq 'scalar')
50 90 91 if (defined $value) { }
60 6 0 if (defined $value) { }
158 159 45 if (exists $$self{'NODE'}{$key})
159 159 0 grep({$_ eq $key;} @{$$self{'KEYS'};}) ? :
167 1 23 if (exists $$self{'NODE'}{$key}) { }
0 23 elsif (exists $$self{'HASH'}{$key}) { }
174 22 1 unless (grep {$_ eq $key;} @{$$self{'KEYS'};})
185 1 0 if (exists $$self{'NODE'}{$key}) { }
0 0 elsif (exists $$self{'HASH'}{$key}) { }
192 1 2 if ($$self{'KEYS'}[$i] eq $key)