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
10949 29982 10766 12943 $a =~ /\./ and $b =~ /\./
11000 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/
11004 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
11039 0 0 0 $count and $count < 256
11041 0 0 0 $format >= 1 and $format <= 10
11063 0 0 0 $tag =~ /:$/ and $val =~ /\b$tag\s*([^\s;,:]+)/
11148 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
11150 0 0 0 $lf != $sf and $lf != 0
11151 0 0 0 $sa != $la and $la != 0
11239 0 0 0 $offset[-1] > $len and $offset[-1] <= $dirLen
11270 0 0 0 ref $tagInfo eq "HASH" and $tagInfo->{'SubDirectory'}
11288 0 0 0 not defined $tagTablePtr->{$tag} and $unknown > 1
11354 0 0 0 $et->{'Model'} eq "DSLR-A100" and length $$valPt == 4
11389 0 0 0 $entry{'50740'} and $et->{'MRWDirData'}
11391 0 0 0 $entry{'330'} and $et->{'A100DataOffset'}
11402 0 0 0 $pad = 4 - $remain and $totalLen += $pad
11414 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'}
11700 0 0 0 $dataLen < 4 and $raf
11702 0 0 0 $raf->Seek($pos, 0) and $raf->Read($buff, 4) == 4
11711 0 0 0 $dataPt and $$dataPt =~ /^\0MR[IM]/
11724 0 0 0 $srfLen > 0 and $raf->Read($buff, $srfLen) == $srfLen
11740 0 0 0 not $outfile and $et->{'HTML_DUMP'}
11761 0 0 0 $result and $et->{'SR2SubIFDOffset'}
11768 0 0 0 $offset and $length
0 0 0 $offset and $length and defined $key
11771 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)
11779 0 0 0 $verbose > 2 and not $outfile
11818 0 0 0 $outfile and @subifdPos
11858 0 0 0 $found{'29184'} and $found{'29185'}

or 2 conditions

line l !l condition
11026 0 0 $dirInfo->{'DirStart'} || 0
11208 0 0 $dirInfo->{'DirStart'} || 0
11496 0 0 $dirInfo->{'DirStart'} || 0
11511 0 0 $dirInfo->{'TagInfo'} || {'Name', 'data'}
11516 0 0 $dirInfo->{'Base'} || 0
11531 0 0 $dirInfo->{'DirStart'} || 0
11566 0 0 $dirInfo->{'DataPos'} || 0
0 0 $dirInfo->{'Base'} || 0
11690 0 0 $dirInfo->{'Base'} || 0
11701 0 0 $dirInfo->{'DirStart'} || 0
11811 0 0 $num || 1

or 3 conditions

line l !l&&r !l&&!r condition
10953 6724 6219 0 $a[0] <=> $b[0] || $a[1] <=> $b[1]
11013 0 0 0 $et->Options("Validate") or $et->{'IsWriting'}
11027 0 0 0 $dirInfo->{'DirLen'} || length($$dataPt) - $start
11148 0 0 0 $lf == 0 || $lf >= $sf
0 0 0 $la == 0 || $la >= $sa
11160 0 0 0 $bits or $feature->[1]{$bits}
11162 0 0 0 $feature->[1]{$bits} || sprintf('Unknown(%.4x)', $bits)
11209 0 0 0 $dirInfo->{'DirLen'} || length $$dataPt
11497 0 0 0 $dirInfo->{'DirLen'} || length($$dataPt) - $dirStart
11532 0 0 0 $dirInfo->{'DirLen'} || length($$dataPt) - $dirStart
11689 0 0 0 $dirInfo->{'DataLen'} || length $$dataPt
11771 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)
11837 0 0 0 $tagID == 29184 or $tagID == 29185