Branch Coverage

blib/lib/Image/ExifTool/FujiFilm.pm
Criterion Covered Total %
branch 49 134 36.5


line true false branch
1633 0 0 if $pos + 8 > $end
1636 0 0 if $len == 0 or $off > $end or $off + $len > $end or $len < 62
1644 0 0 if $p < $dirStart or $p + $n > $end
1654 0 0 if $p < $dirStart or $p + $n > $end
1683 0 6 unless $raf->Seek($offset, 0)
1685 0 6 unless $raf->Read($buff, 4)
1687 0 6 unless $entries < 256
1692 0 792 unless $raf->Read($buff, 4)
1696 0 792 unless $raf->Read($vbuf, $len)
1698 102 690 if ($tagInfo and $tagInfo->{'Format'}) { }
234 456 elsif ($len == 4) { }
1700 0 102 unless defined $val
1727 0 0 if $et->{'DOC_NUM'}
1731 0 0 if $dataLen < 44
1732 0 0 unless $$dataPt =~ /^FUJIFILMM-RAW /
1742 0 0 if $end > $dataLen
1746 0 0 if $pos > 60
1749 0 0 if $pos + 4 > $end
1753 0 0 if $pos + $size > $end
1762 0 0 if ($rafStart and $et->Options("ExtractEmbedded"))
1763 0 0 if ($et->Options("Verbose"))
1771 0 0 unless $raf->Seek($rafStart, 0)
1792 0 2 unless $raf->Read($hdr, 148) == 148
1793 0 2 unless $hdr =~ /^FUJIFILM/
1795 0 0 unless $ver =~ /^\d{4}$/ or $testedRAF{$ver}
1802 0 2 if ($mpos > 148 or $jpos > 148 + $mlen or $jpos < 104 or $jpos & 3)
1812 0 2 unless ($raf->Seek($jpos, 0) and $raf->Read($jpeg, $jlen) == $jlen)
1816 0 2 if ($mpos)
1817 0 0 if ($mlen != 284)
1823 0 0 unless ($raf->Seek($mpos, 0) and $raf->Read($mraw, $mlen) == $mlen)
1830 0 0 unless (substr($hdr, 192, 8) eq "\0\0\0\0\0\0\0\0" and substr($hdr, 200, 8) eq substr($hdr, 272, 8))
1848 0 2 unless ($success and $outJpeg)
1852 0 2 if $success < 0
1865 2 0 if ($oldPadLen)
1866 0 2 if ($oldPadLen > 1000000 or $oldPadLen < 0 or not $raf->Seek($jpos + $jlen, 0) or $raf->Read($buff, $oldPadLen) != $oldPadLen)
1875 0 2 if ($buff =~ /[^\0]/)
1876 0 0 if $et->Error("Non-null bytes found in padding", 2)
1883 2 8 if $offset >= $jpos
1885 0 8 unless $oldPtr
1887 0 8 if ($newPtr < 0 or $newPtr > 4294967295)
1888 0 0 if $offset < 204
1892 0 0 if ($newPtr < 0) { }
1895 0 0 if $high < 0
1906 0 2 unless &Write($outfile, substr($hdr, 0, $jpos))
1908 0 2 unless &Write($outfile, $outJpeg, $pad)
1910 0 2 unless ($raf->Seek($nextPtr, 0))
1915 0 2 unless &Write($outfile, $buff)
1917 0 2 $err ? :
1931 0 3 unless $raf->Read($buff, 112) == 112
1932 0 3 unless $buff =~ /^FUJIFILM/
1936 0 3 if $jpos & 32768
1937 3 0 if ($jpos)
1938 0 3 unless $raf->Seek($jpos + $base, 0)
1939 0 3 unless $raf->Read($jpeg, $jlen) == $jlen
1942 3 0 unless $et->{'DOC_NUM'}
1951 3 0 if ($jpos)
1955 3 0 if $ok
1960 0 15 if $jpos and $offset >= $jpos
1961 0 15 unless ($raf->Seek($offset + $base, 0) and $raf->Read($buff, 8))
1966 3 12 unless $start
1968 6 6 if ($offset == 100 or $offset == 128) { }
0 6 elsif ($offset == 72) { }
1977 6 0 unless ($et->ProcessTIFF(\%dirInfo, $tagTablePtr, \&Image::ExifTool::ProcessTIFF))
1979 0 6 if $et->{'ImageDataHash'} and $raf->Seek($start, 0)
1985 0 0 if ($raf->Seek($start, 0) and $raf->Read($buff, $mlen) == $mlen) { }
1999 6 0 if ($et->ProcessDirectory(\%dirInfo, $tagTablePtr)) { }
2007 0 3 if $warn