Condition Coverage

blib/lib/Image/ExifTool/MakerNotes.pm
Criterion Covered Total %
condition 68 155 43.8


and 3 conditions

line !l l&&!r l&&r condition
1134 88 8 4 $make =~ /^OLYMPUS/ and $model =~ /^E-(1|300|330)\b/
88 8 0 $make =~ /^OLYMPUS/ and $model =~ /^(C2500L|C-1Z?|C-5000Z|X-2|C720UZ|C725UZ|C150|C2Z|E-10|E-20|FerrariMODEL2003|u20D|u10D)\b/
71 0 0 $et->{'TIFF_TYPE'} eq "SRW" and $make eq "SAMSUNG"
71 0 0 $et->{'TIFF_TYPE'} eq "SRW" and $make eq "SAMSUNG" and $model eq "EK-GN120"
1230 1929 2 0 defined $valBlock{$valPtr} and $valBlock{$valPtr} > $size
1235 1931 0 0 defined $valBlkAdj{$valPtr} and $valBlkAdj{$valPtr} > $size
1269 138 0 0 defined $fixBase && $fixBase ne ''
1280 75 0 60 $et->{'Make'} =~ /^Canon/ and $dirInfo->{'DirLen'} > 8
1283 37 0 23 $footer =~ /^(II\x2a\0|MM\0\x2a)/ and substr($footer, 0, 2) eq &GetByteOrder()
1338 5 0 12 $gap == -12 and not $entryBased
1357 109 0 3 $countNeg12 > $countZero && $valBlkAdj->{'MIN'} >= $ifdLen - 2 || ($valBlkAdj->{'MIN'} == $ifdLen - 2 || $valBlkAdj->{'MIN'} == $ifdLen + 2) and $valBlkAdj->{'MAX'} <= $dirInfo->{'DirLen'} - 2
1378 0 0 21 $ptr > 0 and $ptr <= length($$dataPt) - 8
0 0 21 $ptr > 0 and $ptr <= length($$dataPt) - 8 and substr($$dataPt, $ptr, 8) eq "PrintIM\0"
1382 76 12 0 $dirInfo->{'FixBase'} and $dirInfo->{'FixBase'} == 2
1383 0 0 0 $diff >= 0 and $diff <= 24
1488 0 0 63 $tagInfo and $tagInfo->{'SubDirectory'}
1490 31 28 4 $subdir->{'ProcessProc'} and $subdir->{'ProcessProc'} eq \&Image::ExifTool::MakerNotes::ProcessUnknown || $subdir->{'ProcessProc'} eq \&Image::ExifTool::MakerNotes::ProcessUnknownOrPreview
1516 8 0 0 $subdir->{'ProcessProc'} and $subdir->{'ProcessProc'} eq \&Image::ExifTool::MakerNotes::FixLeicaBase
1552 124 6 0 &SetByteOrder(substr($$dataPt, $pos, 2)) and &Get16u($dataPt, $pos + 2) == 42
1560 0 0 5 $ptr >= $ifdOffsetPos + 4 and $ptr + $offset + 14 <= $dirLen
1599 4 0 0 $num == 23 and $index == 21
4 0 0 $num == 23 and $index == 21 and $et->{'Make'} eq "SAMSUNG"
1608 4 0 0 $index == $num - 1 and $et->{'Model'} =~ /EOS 40D/
1611 1607 12 0 $num == 12 and $et->{'Make'} eq "SONY"
1619 0 0 $num == 12 and $et->{'Make'} eq "SONY" and $index >= 8
1613 1619 0 0 $format == 16 and $et->{'Make'} eq "Apple"
1676 43 0 0 $et->{'HTML_DUMP'} and $dirInfo->{'DirLen'} > 8
1681 0 0 0 $footer =~ /^(II\x2a\0|MM\0\x2a)/ and substr($footer, 0, 2) eq &GetByteOrder()
1743 0 3 0 $dirLen > 6 and substr($$dataPt, $dirStart, 3) eq "\377\330\377"
1767 0 1 0 $dirLen > 6 and substr($$dataPt, $dirStart, 3) eq "\377\330\377"

or 2 conditions

line l !l condition
1265 127 11 $dirInfo->{'DirStart'} || 0
1334 0 0 $last || 0
1472 57 6 $dirInfo->{'DirStart'} || 0
1504 7 1 $dirInfo->{'Base'} || 0
1647 0 0 $dirInfo->{'DirStart'} || 0
1678 0 0 $dirInfo->{'DirStart'} || 0
1688 0 0 $dirInfo->{'Base'} || 0
1704 0 0 $dirInfo->{'DirStart'} || 0
1720 0 0 $dirInfo->{'DirStart'} || 0
1770 0 0 $et->GetNewValue('PreviewImage') || ''

or 3 conditions

line l !l&&r !l&&!r condition
1174 0 0 12 $model =~ /^(DSLR-.*|SLT-A(33|35|55V)|NEX-(3|5|C3|VG10E))$/ or $et->{'OlympusCAMER'}
1223 0 0 3427 $format < 1 or $format > 13
1240 0 5 1791 $valBlkAdj{'MIN'} < 12 or $valBlkAdj{'MIN'} > $valPtr
1261 0 38 138 $dirInfo->{'FixOffsets'} or $dirInfo->{'NoFixBase'}
1301 0 0 0 not $endDiff or $endDiff == 1
1338 1201 137 17 $gap == 0 or $gap == 1
1357 3 0 109 $countNeg12 > $countZero && $valBlkAdj->{'MIN'} >= $ifdLen - 2 || ($valBlkAdj->{'MIN'} == $ifdLen - 2 || $valBlkAdj->{'MIN'} == $ifdLen + 2)
1418 9 79 3 $diff == 0 or $diff == 4
1445 0 0 0 $diff < 0 or $diff > 16
0 0 0 $diff < 0 or $diff > 16 or $diff & 1
1490 6 4 22 $subdir->{'ProcessProc'} eq \&Image::ExifTool::MakerNotes::ProcessUnknown || $subdir->{'ProcessProc'} eq \&Image::ExifTool::MakerNotes::ProcessUnknownOrPreview
1589 0 0 0 $bytesFromEnd == 2 or $bytesFromEnd == 0
1606 4 0 0 $count or $index == 0
1618 4 8 1607 $format < 1 or $format > 13
1727 0 0 0 $t1 || $t2