Condition Coverage

blib/lib/Image/ExifTool/Nikon.pm
Criterion Covered Total %
condition 22 102 21.5


and 3 conditions

line !l l&&!r l&&r condition
11545 0 0 0 $raf->Seek(-20 - $offset, 2) and $raf->Read($buff, 20) == 20
0 0 0 $raf->Seek(-20 - $offset, 2) and $raf->Read($buff, 20) == 20 and substr($buff, -16) eq "\0\0\0\0\0\0/NIKON APP"
11569 0 0 0 $trailerLen >= 64 and $raf->Seek($fileEnd - $trailerLen, 0)
0 0 0 $trailerLen >= 64 and $raf->Seek($fileEnd - $trailerLen, 0) and $raf->Read($buff, 64) == 64
0 0 0 $trailerLen >= 64 and $raf->Seek($fileEnd - $trailerLen, 0) and $raf->Read($buff, 64) == 64 and $buff =~ /NIKON APP\0/
11582 0 0 0 $id == 0 and $len == 0
11641 0 0 0 $rational and $key
11663 0 0 3 defined $serial and defined $count
0 0 3 defined $serial and defined $count and $serial =~ /^\d+$/
0 0 3 defined $serial and defined $count and $serial =~ /^\d+$/ and $count =~ /^\d+$/
11666 0 0 0 defined $serial and defined $count
11695 0 0 3 $tagInfo and $tagInfo->{'SubDirectory'}
11698 0 0 3 $verbose < 3 and $et->Options("Unknown") < 2
0 0 3 $verbose < 3 and $et->Options("Unknown") < 2 and not $recrypt
11714 1 0 2 $len and $len < $maxLen
11794 0 0 19 $dirStart >= 0 and $dirStart <= $dataLen - 2
11803 0 0 0 $raf->Seek($dataPos + $base, 0) and $raf->Read($data, 2) == 2
11831 0 0 0 $raf and $raf->Seek($base + $valuePtr + $dataPos, 0)
0 0 0 $raf and $raf->Seek($base + $valuePtr + $dataPos, 0) and $raf->Read($buff, $size) == $size
11867 0 0 2 $count and $count * 12 + 2 <= $dirLen

or 2 conditions

line l !l condition
11188 0 0 $dirInfo->{'DirStart'} || 0
11351 0 0 $norm || 'Normal'
11356 0 0 $fmt || '%+d'
0 0 $div || 1
11367 36 19 $div || 1
11542 0 0 $dirInfo->{'Offset'} || 0
11786 7 12 $dirInfo->{'DataPos'} || 0
11788 19 0 $dirInfo->{'DirStart'} || 0
11789 19 0 $dirInfo->{'Base'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
11499 1 0 3 not defined $len or $len > $maxLen
11528 7 19 0 not defined $serial or $serial =~ /^\d+$/
11556 0 0 0 $trailerLen > $fileEnd or not $raf->Seek($dirInfo->{'DataPos'}, 0)
0 0 0 $trailerLen > $fileEnd or not $raf->Seek($dirInfo->{'DataPos'}, 0) or $raf->Read(${$$dirInfo{"OutFile"};}, $trailerLen) != $trailerLen
11567 0 0 0 $verbose or $et->{'HTML_DUMP'}
11664 0 0 0 defined $serial or defined $count
11819 0 0 8 $format < 1 or $format > 13
11830 0 0 1 $valuePtr < 0 or $valuePtr + $size > $dataLen