Branch Coverage

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


line true false branch
13 891 1051 if (ref $_[0] eq 'HASH') { }
61 990 elsif (ref $_[0] eq 'ARRAY') { }
0 990 elsif (ref \$_[0] eq 'GLOB') { }
25 177 1765 ref($self) =~ /^yaml_/ ? :
33 73 0 $type eq 'HASH' ? :
10 73 $type eq 'ARRAY' ? :
16 83 !defined($type) ? :
38 16 83 if ($self->{'KIND'} eq 'scalar')
50 99 100 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)