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 171 1771 ref($self) =~ /^yaml_/ ? :
33 70 0 $type eq 'HASH' ? :
10 70 $type eq 'ARRAY' ? :
16 80 !defined($type) ? :
38 16 80 if ($self->{'KIND'} eq 'scalar')
50 96 97 if (defined $value) { }
60 6 0 if (defined $value) { }
155 143 156 if (exists $self->{'NODE'}{$key})
157 143 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)