Branch Coverage

blib/lib/Image/ExifTool/CanonRaw.pm
Criterion Covered Total %
branch 68 94 72.3


line true false branch
619 0 182 unless my $raf = $dirInfo->{'RAF'}
625 0 182 unless $raf->Seek($blockStart + $blockSize - 4, 0)
626 0 182 unless $raf->Read($buff, 4) == 4
629 26 156 unless $et->{'ProcessedCanonRaw'}
630 0 182 if ($et->{'ProcessedCanonRaw'}{$dirOffset})
635 0 182 unless $raf->Seek($dirOffset, 0)
636 0 182 unless $raf->Read($buff, 2) == 2
639 0 182 unless $raf->Read($buff, 10 * $entries) == 10 * $entries
641 7 175 if $verbose
649 0 1008 if ($tag & 32768)
657 156 852 if ($tagType == 40 || $tagType == 48 and not $valueInDir)
660 156 0 if $tagInfo
661 0 156 unless $name
671 6 150 if ($verbose)
684 684 168 if ($tagInfo)
686 64 620 if $tagInfo->{'Format'}
691 381 471 if ($valueInDir) { }
697 282 97 if not defined $count and $format and $format ne "string" and not $subdir
701 457 14 if ($size <= 512 or $verbose > 2 and $size <= 65536 or $tagInfo and $tagInfo->{'SubDirectory'} || grep(/^$tagInfo->{'Name'}$/i, $et->GetRequestedTags)) { }
707 0 457 unless ($raf->Seek($ptr, 0) and $raf->Read($value, $size) == $size)
713 2 12 if ($tagInfo)
714 2 0 if ($et->Options("Binary") or $verbose)
716 0 2 unless ($raf->Seek($ptr, 0) and $raf->Read($value, $size) == $size)
730 540 312 if ($format and not $count)
736 43 809 if ($verbose)
738 39 4 if $format
750 188 664 if ($buildMakerNotes)
754 168 684 unless defined $tagInfo
756 224 460 if ($subdir) { }
759 224 0 if ($subdir->{'TagTable'}) { }
761 0 224 unless ($newTagTable)
771 0 224 if $subdir->{'Start'}
786 0 224 if (defined $subdir->{'Validate'} and not eval $subdir->{'Validate'}) { }
793 444 16 if $format
796 2 458 if $delRawConv
813 0 26 unless $raf->Read($buff, 2) == 2
814 0 26 unless &SetByteOrder($buff)
815 0 26 unless $raf->Read($buff, 4) == 4
816 0 26 unless $raf->Read($sig, 8) == 8
817 0 26 unless $sig =~ /^HEAP(CCDR|JPGM)/
820 0 26 unless $raf->Seek(0, 2)
821 0 26 unless my $filesize = $raf->Tell
824 6 20 if $buildMakerNotes
843 0 26 unless (&ProcessCanonRaw($et, \%dirInfo, $rawTagTable))
849 6 20 if $buildMakerNotes
852 7 19 if ($et->{'FILE_TYPE'} eq "CRW")
854 7 0 if $trailInfo