Condition Coverage

blib/lib/Image/ExifTool/Nikon.pm
Criterion Covered Total %
condition 32 150 21.3


and 3 conditions

line !l l&&!r l&&r condition
13483 158 0 0 length $str > $lim and $lim >= 5
13564 1 0 4 defined $serial and defined $count
13617 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"
13641 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/
13654 0 0 0 $id == 0 and $len == 0
13738 3 0 0 $ignoreSubdir and $tagInfo->{'SubDirectory'}
13759 3 0 0 $vars->{'NIKON_OFFSETS'} and not $vars->{'NIKON_INITIALIZED'}
13785 0 2 2 @tagIDs and $tagIDs[0] < $start
13862 0 0 0 ref $tagInfo eq 'HASH' && $tagInfo->{'AlwaysDecrypt'}
0 0 0 $tagInfo and not ref $tagInfo eq 'HASH' && $tagInfo->{'AlwaysDecrypt'}
13865 0 0 0 ref $tagInfo eq "HASH" and defined($subdir = $tagInfo->{'SubDirectory'})
13866 0 0 0 $tagInfo and ref $tagInfo ne 'HASH' || !$tagInfo->{'Unknown'}
13872 0 0 0 $subdir and $subdir->{'KnownEnd'}
13900 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+$/
13903 0 0 0 defined $serial and defined $count
13934 0 0 3 $tagInfo and $tagInfo->{'SubDirectory'}
13952 0 2 1 $dMode == 0 and $subdir->{'KnownStart'}
13968 0 0 3 $len and $len < $maxLen
14031 0 0 24 $dirStart >= 0 and $dirStart <= $dataLen - 2
14040 0 0 0 $raf->Seek($dataPos + $base, 0) and $raf->Read($data, 2) == 2
14068 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
14104 0 0 2 $count and $count * 12 + 2 <= $dirLen

or 2 conditions

line l !l condition
13236 0 0 $dirInfo->{'DirStart'} || 0
13405 0 0 $norm || 'Normal'
13410 0 0 $fmt || '%+d'
0 0 $div || 1
13421 36 19 $div || 1
13614 0 0 $dirInfo->{'Offset'} || 0
13739 0 1 $tagInfo->{'Format'} || $tagTablePtr->{'FORMAT'} || 'int8u'
13778 3 0 $subdir->{'DecryptStart'} || 0
13938 3 0 $subdir->{'DecryptStart'} || 0
14023 7 17 $dirInfo->{'DataPos'} || 0
14025 24 0 $dirInfo->{'DirStart'} || 0
14026 24 0 $dirInfo->{'Base'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
13563 1 0 4 not defined $len or $len > $maxLen
13600 8 24 0 not defined $serial or $serial =~ /^\d+$/
13628 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
13639 0 0 0 $verbose or $et->{'HTML_DUMP'}
13815 0 0 0 $offset + 4 > $dataLen or $offset < $start
13834 0 0 0 ref $tagInfo ne "HASH" or not $tagInfo->{'Unknown'}
13866 0 0 0 ref $tagInfo ne 'HASH' || !$tagInfo->{'Unknown'}
13884 0 0 0 $decryptMode == 2 or not $end
0 0 0 $decryptMode == 2 or not $end or $end < $dpos
13901 0 0 0 defined $serial or defined $count
13945 0 0 3 $verbose > 2 || $et->Options('Unknown') > 1
14056 0 0 8 $format < 1 or $format > 13
14067 0 0 1 $valuePtr < 0 or $valuePtr + $size > $dataLen