Branch Coverage

blib/lib/YAML/Syck.pm
Criterion Covered Total %
branch 24 32 75.0


line true false branch
30 0 32 unless (eval { do { require XSLoader; XSLoader::load('YAML::Syck', $YAML::Syck::VERSION); 1 } })
58 0 4 if ($_[0] =~ /\A \(\? ([ixsm]*) (?:- (?:[ixsm]*))? : (.*) \) \z/x) { }
69 2 614 $#_ ? :
74 150 643 if (wantarray) { }
87 13 14 if ref $h eq 'GLOB'
88 5 9 if ref \$h eq 'GLOB'
89 3 6 if ref($h) =~ /^IO::/
96 5 1 if (_is_glob($file)) { }
99 0 5 if ($err)
106 0 1 unless open my $fh, '>', $file
109 0 1 if ($err)
114 0 1 unless close $fh
122 8 3 if (_is_glob($file)) { }
128 1 2 if (not -e $file or -z $file)
131 0 2 unless open my $fh, '<', $file
140 0 8 unless ref $bufref