Branch Coverage

blib/lib/Image/ExifTool/FujiFilm.pm
Criterion Covered Total %
branch 40 86 46.5


line true false branch
1444 0 0 if $pos + 8 > $end
1447 0 0 if $len == 0 or $off > $end or $off + $len > $end or $len < 62
1455 0 0 if $p < $dirStart or $p + $n > $end
1465 0 0 if $p < $dirStart or $p + $n > $end
1494 0 6 unless $raf->Seek($offset, 0)
1496 0 6 unless $raf->Read($buff, 4)
1498 0 6 unless $entries < 256
1499 0 6 if $et->Options("Verbose")
1503 0 792 unless $raf->Read($buff, 4)
1507 0 792 unless $raf->Read($vbuf, $len)
1509 102 690 if ($tagInfo and $tagInfo->{'Format'}) { }
234 456 elsif ($len == 4) { }
1511 0 102 unless defined $val
1541 0 2 unless $raf->Read($hdr, 148) == 148
1542 0 2 unless $hdr =~ /^FUJIFILM/
1544 0 0 unless $ver =~ /^\d{4}$/ or $testedRAF{$ver}
1549 0 2 if ($jpos > 148 or $jpos < 104 or $jpos & 3)
1559 0 2 unless ($raf->Seek($jpos, 0) and $raf->Read($jpeg, $jlen) == $jlen)
1574 0 2 unless ($success and $outJpeg)
1578 0 2 if $success < 0
1591 2 0 if ($oldPadLen)
1592 0 2 if ($oldPadLen > 1000000 or $oldPadLen < 0 or not $raf->Seek($jpos + $jlen, 0) or $raf->Read($buff, $oldPadLen) != $oldPadLen)
1601 0 2 if ($buff =~ /[^\0]/)
1602 0 0 if $et->Error("Non-null bytes found in padding", 2)
1609 0 8 if $offset >= $jpos
1611 0 8 unless $oldPtr
1616 0 2 unless &Write($outfile, substr($hdr, 0, $jpos))
1618 0 2 unless &Write($outfile, $outJpeg, $pad)
1620 0 2 unless ($raf->Seek($nextPtr, 0))
1625 0 2 unless &Write($outfile, $buff)
1627 0 2 $err ? :
1640 0 3 unless $raf->Read($buff, 92) == 92
1641 0 3 unless $buff =~ /^FUJIFILM/
1643 0 3 if $jpos & 32768
1644 0 3 unless $raf->Seek($jpos, 0)
1645 0 3 unless $raf->Read($jpeg, $jlen) == $jlen
1658 3 0 if $rtnVal
1663 0 12 if $offset >= $jpos
1664 0 12 unless ($raf->Seek($offset, 0) and $raf->Read($buff, 4))
1669 0 12 unless $start
1670 6 6 if ($offset == 100 or $offset == 128) { }
1690 0 6 unless $et->ProcessDirectory(\%dirInfo, $tagTablePtr)
1695 0 3 if $warn