Branch Coverage

blib/lib/YAML/Old.pm
Criterion Covered Total %
branch 10 16 62.5


line true false branch
29 0 138 if $YAML::Old::DumperClass
36 0 260 if $YAML::Old::LoaderClass
52 0 3 if (ref $filename eq 'GLOB') { }
57 0 3 if ($filename =~ /^\s*(>{1,2})\s*(.*)$/)
60 1 2 unless open $OUT, $mode, $filename
71 0 3 if (ref $filename eq 'GLOB') { }
75 1 2 unless open $IN, '<', $filename
87 0 398 if $@ and not "$@" =~ /Can't locate/