Branch Coverage

blib/lib/Video/Info/MPEG/System.pm
Criterion Covered Total %
branch 34 70 48.5


line true false branch
59 3 0 unless defined $offset
69 0 3 unless $self->is_system($offset)
77 0 3 unless $self->process_packs($offset)
84 0 3 unless ($self->video->parse($offset))
91 3 0 if ($self->next_start_code(192, $offset + $self->header_size))
96 3 0 unless ($self->audio->parse($audio_offset))
100 3 9 if ($self->audio->parse($audio_offset))
113 3 0 if ($self->next_start_code(186, $self->filesize - 2500))
119 0 3 if ($byte & !1) { }
125 0 3 if ($byte & !1) { }
166 3 6 if $code == 224 or $code == 192
171 0 6 if ($code == 190) { }
3 3 elsif ($code == 186) { }
3 0 elsif ($code == 187) { }
193 3 0 if ($len)
228 0 3 unless ($self->next_start_code(186, 0))
249 0 3 if $stream_count_token % 3 != 0
254 3 3 if (($code & 240) == 192) { }
3 0 elsif (($code & 240) == 224 or ($code & 240) == 208) { }
269 3 0 if $self->vstreams
291 3 0 if (($pack_head & 240) == 32) { }
297 0 0 if (($pack_head & 192) == 64) { }
326 0 3 unless $self->get_version($offset)
327 0 3 unless $self->get_streams($offset)
341 3 0 if ($byte == 192 or $byte == 224)
355 0 3 if ($packet_type != 192 and $packet_type != 224)
377 3 0 if ($type == 1) { }
0 0 elsif ($type == 2) { }
405 0 3 if ($self->version == 1) { }
0 3 elsif ($self->version == 2) { }
417 0 0 if (($byte & 192) == 64)
423 0 0 if (($byte & 240) == 32) { }
0 0 elsif (($byte & 240) == 48) { }
465 0 3 if (($byte & 192) == 64) { }
472 0 3 if (($byte & 240) != 32)