Branch Coverage

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


line true false branch
1397 0 0 if $pos + 8 > $end
1400 0 0 if $len == 0 or $off > $end or $off + $len > $end or $len < 62
1408 0 0 if $p < $dirStart or $p + $n > $end
1418 0 0 if $p < $dirStart or $p + $n > $end
1447 0 6 unless $raf->Seek($offset, 0)
1449 0 6 unless $raf->Read($buff, 4)
1451 0 6 unless $entries < 256
1452 0 6 if $et->Options("Verbose")
1456 0 792 unless $raf->Read($buff, 4)
1460 0 792 unless $raf->Read($vbuf, $len)
1462 102 690 if ($tagInfo and $tagInfo->{'Format'}) { }
234 456 elsif ($len == 4) { }
1464 0 102 unless defined $val
1494 0 2 unless $raf->Read($hdr, 148) == 148
1495 0 2 unless $hdr =~ /^FUJIFILM/
1497 0 0 unless $ver =~ /^\d{4}$/ or $testedRAF{$ver}
1502 0 2 if ($jpos > 148 or $jpos < 104 or $jpos & 3)
1512 0 2 unless ($raf->Seek($jpos, 0) and $raf->Read($jpeg, $jlen) == $jlen)
1527 0 2 unless ($success and $outJpeg)
1531 0 2 if $success < 0
1544 2 0 if ($oldPadLen)
1545 0 2 if ($oldPadLen > 1000000 or $oldPadLen < 0 or not $raf->Seek($jpos + $jlen, 0) or $raf->Read($buff, $oldPadLen) != $oldPadLen)
1554 0 2 if ($buff =~ /[^\0]/)
1555 0 0 if $et->Error("Non-null bytes found in padding", 2)
1562 0 8 if $offset >= $jpos
1564 0 8 unless $oldPtr
1569 0 2 unless &Write($outfile, substr($hdr, 0, $jpos))
1571 0 2 unless &Write($outfile, $outJpeg, $pad)
1573 0 2 unless ($raf->Seek($nextPtr, 0))
1578 0 2 unless &Write($outfile, $buff)
1580 0 2 $err ? :
1593 0 3 unless $raf->Read($buff, 92) == 92
1594 0 3 unless $buff =~ /^FUJIFILM/
1596 0 3 if $jpos & 32768
1597 0 3 unless $raf->Seek($jpos, 0)
1598 0 3 unless $raf->Read($jpeg, $jlen) == $jlen
1611 3 0 if $rtnVal
1616 0 12 if $offset >= $jpos
1617 0 12 unless ($raf->Seek($offset, 0) and $raf->Read($buff, 4))
1622 0 12 unless $start
1623 6 6 if ($offset == 100 or $offset == 128) { }
1643 0 6 unless $et->ProcessDirectory(\%dirInfo, $tagTablePtr)
1648 0 3 if $warn