Branch Coverage

blib/lib/Image/ExifTool/APE.pm
Criterion Covered Total %
branch 37 58 63.7


line true false branch
110 1 2 if $tag =~ /^Cover Art/ and not $tag =~ /Desc$/
124 1 2 unless ($et->{'DoneID3'})
126 0 1 if &Image::ExifTool::ID3::ProcessID3($et, $dirInfo)
136 1 2 unless ($et->{'FileType'})
137 0 1 unless $raf->Read($buff, 32) == 32
138 0 1 unless $buff =~ /^(MAC |APETAGEX)/
142 0 1 if ($buff =~ /^APETAGEX/) { }
149 0 1 if ($vers <= 3970) { }
155 1 0 unless ($dlen & 2147483648 or $hlen & 2147483648)
156 1 0 if ($raf->Seek($dlen, 0) and $raf->Read($buff, $hlen) == $hlen)
161 1 0 if $table
165 3 0 unless ($header)
169 2 1 if $et->{'DoneID3'} > 1
170 0 3 unless $raf->Seek($footPos, 2)
171 0 3 unless $raf->Read($buff, 32) == 32
172 1 2 unless $buff =~ /^APETAGEX/
181 2 0 if (($size & 2147483648) == 0 and $header || $raf->Seek(-$size - 32, 1) and $raf->Read($buff, $size) == $size) { }
185 0 2 if ($verbose)
202 0 20 if $pos + 8 > $size
206 0 20 unless $buff =~ /\G(.*?)\0/gs
209 0 20 if $Image::ExifTool::specialTags{$tag}
211 0 20 if $pos + $len > $size
213 2 18 unless $tagTablePtr->{$tag}
215 2 18 if (($flags & 6) == 2)
219 2 0 if ($tag =~ /^Cover Art/)
221 2 0 if ($1)
224 1 1 unless $tagTablePtr->{$t}
238 0 2 unless $i == $count
239 0 2 if defined $oldIndent