Branch Coverage

blib/lib/Mac/PropertyList/SAX.pm
Criterion Covered Total %
branch 10 46 21.7


line true false branch
130 1 0 if (ref $file) { }
133 0 0 unless -e $file
191 0 7 $OLD_BEHAVIOR ? :
207 1 13 if (UNIVERSAL::can($val, 'write')) { }
3 10 elsif (UNIVERSAL::isa($val, 'HASH')) { }
2 8 elsif (UNIVERSAL::isa($val, 'ARRAY')) { }
210 0 8 $OLD_BEHAVIOR ? :
244 15 0 if $ENCODE_ENTITIES
303 0 0 if ($$self{'context'} == 0 and $name eq 'plist') { }
0 0 elsif ($$self{'context'} == 1 or $types{$name} or $name eq 'key') { }
312 0 0 if ($complex_types{$name}) { }
0 0 elsif ($simple_types{$name}) { }
0 0 elsif ($name eq 'key') { }
319 0 0 unless $$self{'context'} == 3
333 0 0 if ($name ne 'plist')
339 0 0 if ($simple_types{$name}) { }
0 0 elsif ($name eq 'key') { }
341 0 0 $name eq 'data' ? :
0 0 exists $$self{'accum'} ? :
356 0 0 if ($$self{'context'} == 3) { }
0 0 elsif ($$self{'context'} == 4) { }
0 0 elsif ($$self{'context'} == 1) { }
366 0 0 if $$self{'context'} == 6 or $$self{'context'} == 5