Branch Coverage

blib/lib/Audio/M4P/Atom.pm
Criterion Covered Total %
branch 53 88 60.2


line true false branch
120 1188 15 if (ref $$self{'parent'}) { }
128 1203 0 if (ref $$self{'rbuf'})
130 1128 75 if exists $$self{'read_buffer_position'}
140 1203 15 unless ref $$self{'node'}
143 0 196 unless ref $child
145 0 196 if ref $val and ref $$val{'parent'} and $$val{'parent'} eq $self
150 15 0 if ref $$self{'node'}
166 1 1127 if ($$self{'size'} == 1)
176 0 535237 if (defined $newtype)
185 0 907 if defined $newstart
191 380 3295 if (defined $newsize)
192 0 380 if $newsize >= 4294967296 and $$self{'size'} >= 4294967296
195 0 380 if $newsize >= 4294967296 and $$self{'size'} < 4294967296
198 0 380 if $$self{'size'} >= 4294967296 and $newsize < 4294967296
209 0 0 if $$self{'offset'} != 16
219 0 0 unless $$self{'offset'} == 8 and $newsize >= 4294967296
225 0 0 unless $$self{'type'} eq 'moov'
233 0 0 unless $$self{'offset'} == 16 and $newsize < 4294967296
239 0 0 unless $$self{'type'} eq 'moov'
245 0 0 if defined $o and $o == 8 || $o == 16
251 1 1177 if (defined $newdata)
272 3279 469 if $self->node->isRoot
273 0 469 unless ref $$self{'parent'}
303 304 1 if ($$self{'parent'} and ref $$self{'parent'})
305 304 0 if ($$container{'type'} ne 'file')
307 214 90 unless $$container{'type'} eq 'moov'
316 1563 5065 if $$atom{'start'} >= $pivot and $atom != $self
327 0 15 unless ref $$self{'parent'}
338 0 75 if ($before and $after_atom = $self->Contained($before)) { }
346 72 3 $type ? :
356 3 20 $type =~ /covr/i ? :
0 23 $type =~ /rtng/i ? :
8 23 $type =~ /gnre|disk|trkn/i ? :
368 1 0 unless $type
369 0 1 unless my $covr = $self->Contained('covr')
375 0 0 unless ref $$self{'parent'}
377 0 0 if $$parent_atom{'type'} =~ /$container_type/i
388 945 562 if $$val{'type'} and $$val{'type'} =~ /$type/i
390 22 957 if wantarray
391 40 917 unless scalar @results > 0
402 0 4 unless ref $$self{'parent'}
411 4 0 if $a->ParentAtom eq $self
413 0 5 if wantarray
414 1 4 unless scalar @results > 0