Branch Coverage

blib/lib/Image/ExifTool/AFCP.pm
Criterion Covered Total %
branch 20 48 41.6


line true false branch
83 0 29 unless $raf->Seek(-12 - $offset, 2) and $raf->Read($buff, 12) == 12 and $buff =~ /^(AXS(!|\*))/
88 29 0 $2 eq '!' ? :
90 29 0 if ($raf->Seek($startPos, 0) and $raf->Read($buff, 12) == 12 and $buff =~ /^$hdr/) { }
95 0 0 unless $dirInfo->{'ScanForAFCP'} and $raf->Seek($curPos, 0)
99 0 0 if $raf->Read($buff, 12) == 12 and $buff =~ /^$hdr/
100 0 0 if $actualPos != $curPos
104 0 0 unless $raf->Read($buf2, 65536)
106 0 0 if ($buff =~ /$hdr/g)
114 0 0 unless $raf->Seek($actualPos, 0)
127 8 21 if ($outfile) { }
129 0 8 if ($et->{'DEL_GROUP'}{'AFCP'})
130 0 0 if $verbose
137 8 0 unless $fixup
140 0 21 if $verbose or $et->{'HTML_DUMP'}
145 0 29 unless ($raf->Read($dir, 12 * $numEntries) == 12 * $numEntries)
149 0 29 if ($verbose > 2 and not $outfile)
154 0 29 if $fix
165 58 0 if ($size < 2147483648 and $raf->Seek($offset + $fix, 0) and $raf->Read($buff, $size) == $size) { }
169 16 42 if ($outfile) { }
172 8 0 if ($tagInfo and $tagInfo->{'SubDirectory'})
182 1 7 if (defined $newDir)
201 0 0 if $outfile
205 8 21 if ($outfile and length $dirBuff)
212 0 8 unless &Write($outfile, $hdr, $vers, &Set16u(length($dirBuff) / 12), &Set32u(0), $dirBuff, $valBuff, $hdr, &Set32u($outPos), &Set32u(0))