Branch Coverage

blib/lib/Mac/PropertyList/SAX.pm
Criterion Covered Total %
branch 16 56 28.5


line true false branch
130 1 0 if (ref $file) { }
133 0 0 unless -e $file
173 0 25 if ($sub eq 'parse_uri')
180 2 23 if ($sub eq 'parse_file') { }
23 0 elsif ($sub eq 'parse_string') { }
182 0 2 unless seek $_[0], 0, 0
189 0 25 if ($first =~ /^bplist/) { }
222 0 7 $OLD_BEHAVIOR ? :
236 1 13 if (UNIVERSAL::can($val, 'write')) { }
3 10 elsif (UNIVERSAL::isa($val, 'HASH')) { }
2 8 elsif (UNIVERSAL::isa($val, 'ARRAY')) { }
239 0 8 $OLD_BEHAVIOR ? :
273 15 0 if $ENCODE_ENTITIES
332 0 0 if ($self->{'context'} == 0 and $name eq 'plist') { }
0 0 elsif ($self->{'context'} == 1 or $types{$name} or $name eq 'key') { }
341 0 0 if ($complex_types{$name}) { }
0 0 elsif ($simple_types{$name}) { }
0 0 elsif ($name eq 'key') { }
348 0 0 unless $self->{'context'} == 3
362 0 0 if ($name ne 'plist')
368 0 0 if ($simple_types{$name}) { }
0 0 elsif ($name eq 'key') { }
375 0 0 $name eq 'data' ? :
0 0 exists $self->{'accum'} ? :
385 0 0 if ($self->{'context'} == 3) { }
0 0 elsif ($self->{'context'} == 4) { }
0 0 elsif ($self->{'context'} == 1) { }
395 0 0 if $self->{'context'} == 6 or $self->{'context'} == 5