Condition Coverage

blib/lib/Image/ExifTool/Canon.pm
Criterion Covered Total %
condition 65 161 40.3


and 3 conditions

line !l l&&!r l&&r condition
10124 0 0 5 not $lens =~ /x$/ and $lens =~ /(\d+)/
10149 13 0 43 $et->{'TAG_EXTRA'}{'FocalPlaneXResolution'} and $et->{'TAG_EXTRA'}{'FocalPlaneYResolution'}
10152 0 0 43 $xres and $yres
10159 13 0 30 $xres[0] % 1000 == 0 and $yres[0] % 1000 == 0
13 0 30 $xres[0] % 1000 == 0 and $yres[0] % 1000 == 0 and $xres[0] >= 640000
0 1 29 $xres[0] % 1000 == 0 and $yres[0] % 1000 == 0 and $xres[0] >= 640000 and $yres[0] >= 480000
1 0 29 $xres[0] % 1000 == 0 and $yres[0] % 1000 == 0 and $xres[0] >= 640000 and $yres[0] >= 480000 and $xres[0] < 10000000
1 0 29 $xres[0] % 1000 == 0 and $yres[0] % 1000 == 0 and $xres[0] >= 640000 and $yres[0] >= 480000 and $xres[0] < 10000000 and $yres[0] < 10000000
0 0 29 $xres[0] % 1000 == 0 and $yres[0] % 1000 == 0 and $xres[0] >= 640000 and $yres[0] >= 480000 and $xres[0] < 10000000 and $yres[0] < 10000000 and $xres[1] >= 61
0 0 29 $xres[0] % 1000 == 0 and $yres[0] % 1000 == 0 and $xres[0] >= 640000 and $yres[0] >= 480000 and $xres[0] < 10000000 and $yres[0] < 10000000 and $xres[1] >= 61 and $xres[1] < 1500
0 0 29 $xres[0] % 1000 == 0 and $yres[0] % 1000 == 0 and $xres[0] >= 640000 and $yres[0] >= 480000 and $xres[0] < 10000000 and $yres[0] < 10000000 and $xres[1] >= 61 and $xres[1] < 1500 and $yres[1] >= 61
0 0 29 $xres[0] % 1000 == 0 and $yres[0] % 1000 == 0 and $xres[0] >= 640000 and $yres[0] >= 480000 and $xres[0] < 10000000 and $yres[0] < 10000000 and $xres[1] >= 61 and $xres[1] < 1500 and $yres[1] >= 61 and $yres[1] < 1000
0 0 29 $xres[0] % 1000 == 0 and $yres[0] % 1000 == 0 and $xres[0] >= 640000 and $yres[0] >= 480000 and $xres[0] < 10000000 and $yres[0] < 10000000 and $xres[1] >= 61 and $xres[1] < 1500 and $yres[1] >= 61 and $yres[1] < 1000 and $xres[1] != $yres[1]
10186 24 0 0 $lensModel and $lensModel =~ /\d/
10210 0 3 0 $sf and not $lf
10211 0 1 2 $sa and not $la
10223 0 0 0 @maybe and $maybe[-1] =~ /^$lns/
10224 0 0 0 @likely and $likely[-1] =~ /^$lns/
10225 0 0 0 @matches and $matches[-1] =~ /^$lns/
10260 1 0 0 @matches > 1 and $lensModel
1 0 0 @matches > 1 and $lensModel and $lensModel =~ /(\| [ACS])/
10271 1 0 0 @matches > 1 and $lensModel
1 0 0 @matches > 1 and $lensModel and $lensModel =~ m[(\d+(?:\.\d+)?(?:-\d+(?:\.\d+)?)?) ?mm ?f/?(\d+(?:\.\d+)?(?:-\d+(?:\.\d+)?)?)]i
10278 0 0 0 $mm eq $1 and $fstop eq $2
10297 0 0 24 $longFocal and $longFocal != $shortFocal
10344 0 0 45 $h1 and $w1
10352 0 0 45 $h2 and $w2
10375 0 0 4 $raf->Seek($offset, 0) and $raf->Read($buff, 8) == 8
0 0 4 $raf->Seek($offset, 0) and $raf->Read($buff, 8) == 8 and $buff =~ /^\xff{4}.\0\0/s
10402 0 0 0 $count and $count < 20
0 0 0 $count and $count < 20 and $raf->Read($buf2, $count * 32) == $count * 32
10439 8 0 4 $i == 2 and $len >= 4
10441 0 0 12 $len <= 65536 and $raf->Read($buf2, $len) == $len
10480 4 1 0 not defined $rtnVal and &Image::ExifTool::IsInt($val)
10539 4 0 860 $tagTablePtr->{$index} and $pos <= $size
10710 4 0 0 $et->Options('MakerNotes') || $et->{'REQ_TAG_LOOKUP'}{'makernotecanon'} and $dirInfo->{'DirLen'} > 8
10872 0 0 24 defined $dirData and length $dirData
0 3 21 defined $dirData and length $dirData and $dirInfo->{'Fixup'}

or 2 conditions

line l !l condition
10456 0 0 $warn || 'Invalid original decision data'
10522 49 18 $dirInfo->{'Base'} || 0
10524 20 47 $dirInfo->{'DataPos'} || 0
10535 67 0 $tagTablePtr->{'FORMAT'} || 'int8u'
10558 797 0 &Image::ExifTool::FormatSize($format) || 1
10732 12 0 $dirInfo->{'DirStart'} || 0
10816 0 4 $dirInfo->{'DataPos'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
10185 0 24 6 $lensType eq -1 or $lensType eq 65535
10301 0 24 0 $lensType eq -1 or $lensType eq 65535
10347 0 0 45 abs $f1 - "1.33" < "0.01" or abs $f1 - "1.67" < "0.01"
10349 0 0 45 abs $f1 - "0.75" < "0.01" or abs $f1 - "0.6" < "0.01"
10385 0 0 4 $version == 1 or $version == 2
10487 43 0 0 $isoLookup{$val} || "Unknown ($val)"
10576 746 5 45 not $tagInfo->{'Unknown'} or $unknown
10710 0 0 4 $et->Options('MakerNotes') || $et->{'REQ_TAG_LOOKUP'}{'makernotecanon'}
10733 12 0 0 $dirInfo->{'DirLen'} || length($$dataPt) - $start
10741 0 0 16 $len < 8 or $pos + $len > $dirEnd
0 0 16 $len < 8 or $pos + $len > $dirEnd or not $tagTablePtr->{$tag}