Branch Coverage

blib/lib/Video/Info/MPEG/Audio.pm
Criterion Covered Total %
branch 23 80 28.7


line true false branch
45 8 15 unless defined $offset
54 18 5 unless $self->is_audio
56 0 5 unless $self->get_version and $self->get_layer
57 0 5 unless $self->get_bitrate and $self->get_sampling_freq
105 18 5 if $$bytes[0] != 255
107 0 5 if (($$bytes[1] & 240) != 240)
110 0 0 if (($$bytes[1] & 224) != 224)
132 5 0 if ($$self{'_bytes'}[1] & 8) { }
133 5 0 if ($$self{'version'} != 2.5) { }
142 0 0 if ($$self{'version'} != 2.5) { }
164 0 5 if ($layer == 0) { }
1 4 elsif ($layer == 1) { }
4 0 elsif ($layer == 2) { }
0 0 elsif ($layer == 3) { }
197 0 5 $$self{'mode_raw'} == 1 ? :
202 3 2 if ($$self{'mode_raw'} == 0) { }
0 2 elsif ($$self{'mode_raw'} == 1) { }
0 2 elsif ($$self{'mode_raw'} == 2) { }
2 0 elsif ($$self{'mode_raw'} == 3) { }
207 0 0 if ($$self{'layer'} == 1 or $$self{'layer'} == 2) { }
208 0 0 if ($$self{'modext'} == 0) { }
0 0 elsif ($$self{'modext'} == 1) { }
0 0 elsif ($$self{'modext'} == 2) { }
0 0 elsif ($$self{'modext'} == 3) { }
227 0 0 if ($$self{'modext'} == 0) { }
0 0 elsif ($$self{'modext'} == 1) { }
0 0 elsif ($$self{'modext'} == 2) { }
0 0 elsif ($$self{'modext'} == 3) { }
270 0 0 $$self{'_bytes'}[3] & 4 ? :
282 0 0 $$self{'_bytes'}[1] & 1 ? :
294 0 5 if $bitrate_index == 15
311 0 5 if $sampling_index == 3
324 0 0 $$self{'_bytes'}[2] & 2 ? :
336 0 0 if ($emphasis_index == 0) { }
0 0 elsif ($emphasis_index == 1) { }
0 0 elsif ($emphasis_index == 2) { }
0 0 elsif ($emphasis_index == 3) { }
361 0 0 if ($$self{'version'} == 1) { }
362 0 0 if ($$self{'layer'} == 1) { }
374 0 0 if ($$self{'protect'})