Condition Coverage

blib/lib/Image/ExifTool/CanonVRD.pm
Criterion Covered Total %
condition 66 129 51.1


and 3 conditions

line !l l&&!r l&&r condition
1480 0 0 73 $n >= 2 and $n <= 10
1495 0 0 18 @vals >= 4 and @vals <= 20
0 0 18 @vals >= 4 and @vals <= 20 and not @vals & 1
1538 77 38 19 $recLen == 0 and $pos + 4 == $dirEnd
1547 115 0 0 $verbose > 1 and not $outfile
1617 35 3 0 $outfile and $saveRecLen ne $recLen
1731 1 1 0 not $dataPt and $nvHash || $et->{'DEL_GROUP'}{'CanonVRD'}
1752 0 0 6 $raf->Read($buff, 8) == 8 and $buff eq "IIII\4\0\4\0"
1765 13 0 2 $et->{'TAGS_FROM_FILE'} and not $et->{'EXCL_TAG_LOOKUP'}{'canondr4'}
1787 0 0 2 $hdr and length $hdr == 32
1818 525 150 450 $format eq "double" and $len == 8
1829 46 98 8 $tagInfo and $tagInfo->{'SubDirectory'}
1839 2 0 6 defined $dat and length $dat == $len
1858 0 0 2 $et->IsOverwriting($nvHash, $val) and defined $newVal
1908 12 0 2 not $num and $dirInfo->{'OutFile'}
2020 0 0 59 $dirLen < 2147483648 and $raf->Seek(-$dirLen, 1)
0 0 59 $dirLen < 2147483648 and $raf->Seek(-$dirLen, 1) and $raf->Read($buff, 28) == 28
0 0 59 $dirLen < 2147483648 and $raf->Seek(-$dirLen, 1) and $raf->Read($buff, 28) == 28 and $buff =~ /^CANON OPTIONAL DATA\0/
0 0 59 $dirLen < 2147483648 and $raf->Seek(-$dirLen, 1) and $raf->Read($buff, 28) == 28 and $buff =~ /^CANON OPTIONAL DATA\0/ and $raf->Seek(-28, 1)
2033 41 4 14 $outfile and ref $outfile eq "SCALAR"
45 0 14 $outfile and ref $outfile eq "SCALAR" and not length $$outfile
2044 0 0 0 $outfile and $outfile eq $dataPt
2050 41 14 4 $outfile and not exists $et->{'EDIT_DIRS'}{'CanonVRD'}
2059 14 0 0 $verbose and not $created
2063 13 0 0 $et->{'DEL_GROUP'}{'Trailer'} and $et->{'FILE_TYPE'} ne "VRD"
2070 8 0 5 $et->{'NEW_VALUE'}{$Image::ExifTool::Extra{'CanonDR4'}} and not $doDel
2143 46 0 0 $verbose > 1 and not $outfile
2216 8 33 0 $vrdType eq "VRD" and $et->{'TAGS_FROM_FILE'} && !$et->{'EXCL_TAG_LOOKUP'}{'canonvrd'} || $et->{'REQ_TAG_LOOKUP'}{'canonvrd'}
2218 0 1 4 $et->{'ADD_DIRS'}{'CanonVRD'} and not $didDir{'XMP'}

or 2 conditions

line l !l condition
1461 0 0 hex $aHex <=> $bDec || 1
1464 0 0 $aDec <=> hex $bHex || -1
1722 6 11 $dirInfo->{'DataPos'} || 0
1747 9 0 $dirInfo->{'DirStart'} || 0
1989 24 35 $dirInfo->{'Offset'} || 0
2232 2 0 &Write($outfile, $$dataPt) or $err = 1

or 3 conditions

line l !l&&r !l&&!r condition
1460 0 0 0 hex $aHex <=> hex $bHex || $aDec <=> $bDec
1654 0 0 0 $size > $next or $pos + 48 + $next > $dirEnd
1721 4 0 13 $outfile || $dirInfo->{'IsWriting'}
1731 0 0 1 $nvHash || $et->{'DEL_GROUP'}{'CanonVRD'}
1748 9 0 0 $dirInfo->{'DirLen'} || length($$dataPt) - $pos
1765 2 0 13 $et->{'TAGS_FROM_FILE'} and not $et->{'EXCL_TAG_LOOKUP'}{'canondr4'} or $et->{'REQ_TAG_LOOKUP'}{'canondr4'}
2040 53 0 6 $fromFile or $dirInfo->{'DirStart'}
2058 1 0 40 $verbose or $et->{'HTML_DUMP'}
2191 3 0 0 length $dat or not $et->{'FILE_TYPE'} =~ /^(CRW|VRD)$/
2216 7 0 26 $et->{'TAGS_FROM_FILE'} && !$et->{'EXCL_TAG_LOOKUP'}{'canonvrd'} || $et->{'REQ_TAG_LOOKUP'}{'canonvrd'}