Branch Coverage

blib/lib/YAML/Old/Types.pm
Criterion Covered Total %
branch 33 50 66.0


line true false branch
21 1 26 if ($type eq 'REF') { }
7 19 elsif ($type eq 'SCALAR') { }
53 5 30 if $type eq 'SCALAR'
54 17 18 if (defined $value)
55 0 17 if ($type eq 'IO')
60 0 0 if ($$value{'fileno'} = fileno do { $_[0] })
76 3 1 if (defined $$node{'NAME'}) { }
84 2 1 if (defined $$node{'PACKAGE'}) { }
92 2 1 if (exists $$node{'SCALAR'})
97 2 10 if (exists $$node{$elem})
98 0 2 if ($elem eq 'IO')
125 1 5 if defined $class
126 1 5 if (not $dumpflag) { }
130 1 4 if $class
132 0 5 if $@
138 0 5 if ($@)
139 0 0 if $^W
142 1 4 if $class
153 0 4 if ($loader->load_code) { }
155 0 0 if ($@) { }
160 0 0 if $class
165 0 4 if $class
181 0 0 unless exists $$node{&YAML::VALUE}
216 0 6 unless $node =~ /^\(\?([\^\-xism]*):(.*)\)\z/s
222 2 4 if length $class