Branch Coverage

blib/lib/Image/ExifTool/Ogg.pm
Criterion Covered Total %
branch 49 72 68.0


line true false branch
46 4 0 if ($$dataPt =~ /^(.)(vorbis|theora)/s or $$dataPt =~ /^(OpusHead|OpusTags)/)
47 2 2 $2 ? :
49 0 4 if $type eq "Theora" and $et->{'FILE_TYPE'} eq "OGG"
50 2 2 if $type eq "Opus" and $et->{'FILE_TYPE'} eq "OGG"
53 0 4 unless $tagInfo and $tagInfo->{'SubDirectory'}
62 0 4 if $type eq "Theora"
63 0 4 if $subdir->{'ByteOrder'}
80 3 0 unless ($et->{'DoneID3'})
82 0 3 if &Image::ExifTool::ID3::ProcessID3($et, $dirInfo)
94 9 1 if ($raf and $raf->Read($buff, 28) == 28) { }
96 0 9 unless ($buff =~ /^OggS/)
97 0 0 if $success
100 3 6 unless ($success)
108 3 6 if ($flag & 2) { }
114 8 1 unless $flag & 1
117 0 1 unless %val
123 2 8 if (defined $numFlac) { }
125 1 1 unless $raf
130 4 4 if (defined $val{$stream} and not $flag & 1)
134 2 2 if ($packets > $MAX_PACKETS * $streams or not defined $raf)
135 2 0 unless %val
139 0 6 if $packets > $MAX_PACKETS * $streams and not %val
147 7 0 if ($nseg)
148 0 7 unless $raf->Read($buff, $nseg - 1) == $nseg - 1
153 7 0 if (defined $page)
154 7 0 if ($page == $pageNum) { }
163 0 7 unless $raf->Read($buff, $dataLen) == $dataLen
164 0 7 if ($verbose > 1)
169 2 5 if (defined $val{$stream}) { }
5 0 elsif (not $flag & 1) { }
173 4 1 if ($buff =~ /^(.(vorbis|theora)|Opus(Head|Tags))/s) { }
1 0 elsif ($buff =~ /^\x7fFLAC..(..)/s) { }
180 2 5 if (defined $numFlac) { }
0 5 elsif (defined $val{$stream} and $flag & 4) { }
182 0 2 if $numFlac <= 0
189 1 2 if (defined $numFlac and defined $val{$stream})