Branch Coverage

blib/lib/YAML/Types.pm
Criterion Covered Total %
branch 46 60 76.6


line true false branch
21 1 25 if ($type eq 'REF') { }
7 18 elsif ($type eq 'SCALAR') { }
2 16 elsif ($type eq 'GLOB') { }
56 2 6 if 2 == @_
58 3 5 unless defined $tag
62 8 48 if $type eq 'SCALAR'
63 28 28 if (defined $value)
64 1 27 if ($type eq 'IO')
69 1 0 if ($value->{'fileno'} = fileno do { $_[0] })
85 5 1 if (defined $node->{'NAME'}) { }
93 4 1 if (defined $node->{'PACKAGE'}) { }
101 4 1 if (exists $node->{'SCALAR'})
102 0 4 if ($YAML::LoadBlessed and $loader->load_code)
108 2 18 if (exists $node->{$elem})
109 0 2 if ($elem eq 'IO')
114 0 2 if ($YAML::LoadBlessed and $loader->load_code)
138 1 8 if defined $class
139 2 7 if (not $dumpflag) { }
143 1 6 if $class
145 0 7 if $@
151 0 7 if ($@)
152 0 0 if $^W
155 1 6 if $class
166 3 3 if ($loader->load_code) { }
168 0 3 if ($@) { }
173 0 1 if $class and $YAML::LoadBlessed
178 0 0 if $class and $YAML::LoadBlessed
195 0 0 unless exists $$node{&YAML::VALUE}
229 1 9 unless $node =~ /^\(\?([\^\-uxism]*):(.*)\)\z/s
236 1 1 if length $class and $YAML::LoadBlessed