Branch Coverage

blib/lib/YAML/Old/Types.pm
Criterion Covered Total %
branch 41 56 73.2


line true false branch
21 1 28 if ($type eq 'REF') { }
7 21 elsif ($type eq 'SCALAR') { }
2 19 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 3 1 if (defined $node->{'NAME'}) { }
93 2 1 if (defined $node->{'PACKAGE'}) { }
101 2 1 if (exists $node->{'SCALAR'})
106 2 10 if (exists $node->{$elem})
107 0 2 if ($elem eq 'IO')
134 1 6 if defined $class
135 2 5 if (not $dumpflag) { }
139 1 4 if $class
141 0 5 if $@
147 0 5 if ($@)
148 0 0 if $^W
151 1 4 if $class
162 0 4 if ($loader->load_code) { }
164 0 0 if ($@) { }
169 0 0 if $class
174 0 4 if $class
191 0 0 unless exists $$node{&YAML::Old::VALUE}
225 0 6 unless $node =~ /^\(\?([\^\-xism]*):(.*)\)\z/s
231 2 4 if length $class