Branch Coverage

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


line true false branch
13 877 1046 if (ref $_[0] eq 'HASH') { }
61 985 elsif (ref $_[0] eq 'ARRAY') { }
0 985 elsif (ref \$_[0] eq 'GLOB') { }
25 175 1748 ref($self) =~ /^yaml_/ ? :
33 73 0 $type eq 'HASH' ? :
10 73 $type eq 'ARRAY' ? :
14 83 !defined($type) ? :
38 14 83 if ($self->{'KIND'} eq 'scalar')
50 97 98 if (defined $value) { }
60 6 0 if (defined $value) { }
155 161 156 if (exists $self->{'NODE'}{$key})
157 161 0 grep({$_ eq $key;} @{$$self{'KEYS'};}) ? :
164 2 73 if (exists $self->{'NODE'}{$key}) { }
0 73 elsif (exists $self->{'HASH'}{$key}) { }
171 72 1 unless (grep {$_ eq $key;} @{$$self{'KEYS'};})
182 1 0 if (exists $self->{'NODE'}{$key}) { }
0 0 elsif (exists $self->{'HASH'}{$key}) { }
189 1 2 if ($self->{'KEYS'}[$i] eq $key)