Branch Coverage

blib/lib/Image/ExifTool/CanonRaw.pm
Criterion Covered Total %
branch 69 98 70.4


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
702 0 471 if ($et->{'ImageDataMD5'} and $tagID == 8197)
703 0 0 if $raf->Seek($ptr, 0)
705 457 14 if ($size <= 512 or $verbose > 2 and $size <= 65536 or $tagInfo and $tagInfo->{'SubDirectory'} || grep(/^$tagInfo->{'Name'}$/i, $et->GetRequestedTags)) { }
711 0 457 unless ($raf->Seek($ptr, 0) and $raf->Read($value, $size) == $size)
717 2 12 if ($tagInfo)
718 2 0 if ($et->Options("Binary") or $verbose)
720 0 2 unless ($raf->Seek($ptr, 0) and $raf->Read($value, $size) == $size)
734 540 312 if ($format and not $count)
740 43 809 if ($verbose)
742 39 4 if $format
754 188 664 if ($buildMakerNotes)
758 168 684 unless defined $tagInfo
760 224 460 if ($subdir) { }
763 224 0 if ($subdir->{'TagTable'}) { }
765 0 224 unless ($newTagTable)
775 0 224 if $subdir->{'Start'}
790 0 224 if (defined $subdir->{'Validate'} and not eval $subdir->{'Validate'}) { }
797 444 16 if $format
800 2 458 if $delRawConv
817 0 26 unless $raf->Read($buff, 2) == 2
818 0 26 unless &SetByteOrder($buff)
819 0 26 unless $raf->Read($buff, 4) == 4
820 0 26 unless $raf->Read($sig, 8) == 8
821 0 26 unless $sig =~ /^HEAP(CCDR|JPGM)/
824 0 26 unless $raf->Seek(0, 2)
825 0 26 unless my $filesize = $raf->Tell
828 6 20 if $buildMakerNotes
847 0 26 unless (&ProcessCanonRaw($et, \%dirInfo, $rawTagTable))
853 6 20 if $buildMakerNotes
856 7 19 if ($et->{'FILE_TYPE'} eq "CRW")
858 7 0 if $trailInfo