Branch Coverage

blib/lib/YAML.pm
Criterion Covered Total %
branch 14 20 70.0


line true false branch
36 0 158 if $YAML::DumperClass
43 0 320 if $YAML::LoaderClass
59 2 3 if (&openhandle($filename)) { }
64 0 3 if ($filename =~ /^\s*(>{1,2})\s*(.*)$/)
67 1 2 unless open $OUT, $mode, $filename
73 4 0 unless (ref $filename eq 'GLOB')
75 0 4 unless (close $OUT)
85 2 3 if (&openhandle($filename)) { }
89 1 2 unless open $IN, '<', $filename
101 0 478 if $@ and not "$@" =~ /Can't locate/