Condition Coverage

blib/lib/Image/ExifTool/Sony.pm
Criterion Covered Total %
condition 5 187 2.6


and 3 conditions

line !l l&&!r l&&r condition
10953 30102 10558 12944 $a =~ /\./ and $b =~ /\./
11004 0 0 0 $raf->Seek($hdOff, 0) and $raf->Read($buff, $hdLen) == $hdLen
0 0 0 $raf->Seek($hdOff, 0) and $raf->Read($buff, $hdLen) == $hdLen and $buff =~ /^\x55\x26\x11\x05\0/
11008 0 0 0 $et->{'TrailerStart'} and $raf->Seek($et->{'TrailerStart'}, 0)
0 0 0 $et->{'TrailerStart'} and $raf->Seek($et->{'TrailerStart'}, 0) and $raf->Read($buff, 4096)
0 0 0 $et->{'TrailerStart'} and $raf->Seek($et->{'TrailerStart'}, 0) and $raf->Read($buff, 4096) and $buff =~ /\x55\x26\x11\x05\0/g
0 0 0 $et->{'TrailerStart'} and $raf->Seek($et->{'TrailerStart'}, 0) and $raf->Read($buff, 4096) and $buff =~ /\x55\x26\x11\x05\0/g and $pos = $et->{'TrailerStart'} + pos($buff) - 5
0 0 0 $et->{'TrailerStart'} and $raf->Seek($et->{'TrailerStart'}, 0) and $raf->Read($buff, 4096) and $buff =~ /\x55\x26\x11\x05\0/g and $pos = $et->{'TrailerStart'} + pos($buff) - 5 and $raf->Seek($pos, 0)
0 0 0 $et->{'TrailerStart'} and $raf->Seek($et->{'TrailerStart'}, 0) and $raf->Read($buff, 4096) and $buff =~ /\x55\x26\x11\x05\0/g and $pos = $et->{'TrailerStart'} + pos($buff) - 5 and $raf->Seek($pos, 0) and $raf->Read($buff, $hdLen) == $hdLen
11043 0 0 0 $count and $count < 256
11045 0 0 0 $format >= 1 and $format <= 10
11067 0 0 0 $tag =~ /:$/ and $val =~ /\b$tag\s*([^\s;,:]+)/
11152 0 0 0 $sf != 0 and $sa != 0
0 0 0 $sf != 0 and $sa != 0 and $lf == 0 || $lf >= $sf
0 0 0 $sf != 0 and $sa != 0 and $lf == 0 || $lf >= $sf and $la == 0 || $la >= $sa
11154 0 0 0 $lf != $sf and $lf != 0
11155 0 0 0 $sa != $la and $la != 0
11243 0 0 0 $offset[-1] > $len and $offset[-1] <= $dirLen
11274 0 0 0 ref $tagInfo eq "HASH" and $tagInfo->{'SubDirectory'}
11292 0 0 0 not defined $tagTablePtr->{$tag} and $unknown > 1
11361 0 0 0 $et->{'Model'} eq "DSLR-A100" and length $$valPt == 4
11396 0 0 0 $entry{'50740'} and $et->{'MRWDirData'}
11398 0 0 0 $entry{'330'} and $et->{'A100DataOffset'}
11409 0 0 0 $pad = 4 - $remain and $totalLen += $pad
11421 0 0 0 $entry{'513'} and $et->{'A100PreviewStart'}
0 0 0 $entry{'513'} and $et->{'A100PreviewStart'} and $entry{'514'}
0 0 0 $entry{'513'} and $et->{'A100PreviewStart'} and $entry{'514'} and $et->{'A100PreviewLength'}
11707 0 0 0 $dataLen < 4 and $raf
11709 0 0 0 $raf->Seek($pos, 0) and $raf->Read($buff, 4) == 4
11718 0 0 0 $dataPt and $$dataPt =~ /^\0MR[IM]/
11731 0 0 0 $srfLen > 0 and $raf->Read($buff, $srfLen) == $srfLen
11747 0 0 0 not $outfile and $et->{'HTML_DUMP'}
11768 0 0 0 $result and $et->{'SR2SubIFDOffset'}
11775 0 0 0 $offset and $length
0 0 0 $offset and $length and defined $key
11778 0 0 0 $raf and $raf->Seek($offset + $base, 0)
0 0 0 $raf and $raf->Seek($offset + $base, 0) and $raf->Read($buff, $length) == $length
0 0 0 $offset - $dataPos >= 0 and $offset - $dataPos + $length < $dataLen
0 0 0 $offset - $dataPos >= 0 and $offset - $dataPos + $length < $dataLen and $buff = substr($$dataPt, $offset - $dataPos, $length)
11786 0 0 0 $verbose > 2 and not $outfile
11825 0 0 0 $outfile and @subifdPos
11865 0 0 0 $found{'29184'} and $found{'29185'}

or 2 conditions

line l !l condition
11030 0 0 $dirInfo->{'DirStart'} || 0
11212 0 0 $dirInfo->{'DirStart'} || 0
11503 0 0 $dirInfo->{'DirStart'} || 0
11518 0 0 $dirInfo->{'TagInfo'} || {'Name', 'data'}
11523 0 0 $dirInfo->{'Base'} || 0
11538 0 0 $dirInfo->{'DirStart'} || 0
11573 0 0 $dirInfo->{'DataPos'} || 0
0 0 $dirInfo->{'Base'} || 0
11697 0 0 $dirInfo->{'Base'} || 0
11708 0 0 $dirInfo->{'DirStart'} || 0
11818 0 0 $num || 1

or 3 conditions

line l !l&&r !l&&!r condition
10957 6762 6182 0 $a[0] <=> $b[0] || $a[1] <=> $b[1]
11017 0 0 0 $et->Options("Validate") or $et->{'IsWriting'}
11031 0 0 0 $dirInfo->{'DirLen'} || length($$dataPt) - $start
11152 0 0 0 $lf == 0 || $lf >= $sf
0 0 0 $la == 0 || $la >= $sa
11164 0 0 0 $bits or $feature->[1]{$bits}
11166 0 0 0 $feature->[1]{$bits} || sprintf('Unknown(%.4x)', $bits)
11213 0 0 0 $dirInfo->{'DirLen'} || length $$dataPt
11504 0 0 0 $dirInfo->{'DirLen'} || length($$dataPt) - $dirStart
11539 0 0 0 $dirInfo->{'DirLen'} || length($$dataPt) - $dirStart
11696 0 0 0 $dirInfo->{'DataLen'} || length $$dataPt
11778 0 0 0 $raf and $raf->Seek($offset + $base, 0) and $raf->Read($buff, $length) == $length or $offset - $dataPos >= 0 and $offset - $dataPos + $length < $dataLen and $buff = substr($$dataPt, $offset - $dataPos, $length)
11844 0 0 0 $tagID == 29184 or $tagID == 29185