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
13528 159 0 0 length $str > $lim and $lim >= 5
13609 1 0 4 defined $serial and defined $count
13662 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"
13686 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/
13699 0 0 0 $id == 0 and $len == 0
13783 3 0 0 $ignoreSubdir and $tagInfo->{'SubDirectory'}
13804 3 0 0 $vars->{'NIKON_OFFSETS'} and not $vars->{'NIKON_INITIALIZED'}
13830 0 2 2 @tagIDs and $tagIDs[0] < $start
13907 0 0 0 ref $tagInfo eq 'HASH' && $tagInfo->{'AlwaysDecrypt'}
0 0 0 $tagInfo and not ref $tagInfo eq 'HASH' && $tagInfo->{'AlwaysDecrypt'}
13910 0 0 0 ref $tagInfo eq "HASH" and defined($subdir = $tagInfo->{'SubDirectory'})
13911 0 0 0 $tagInfo and ref $tagInfo ne 'HASH' || !$tagInfo->{'Unknown'}
13917 0 0 0 $subdir and $subdir->{'KnownEnd'}
13945 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+$/
13948 0 0 0 defined $serial and defined $count
13979 0 0 3 $tagInfo and $tagInfo->{'SubDirectory'}
13997 0 2 1 $dMode == 0 and $subdir->{'KnownStart'}
14013 0 0 3 $len and $len < $maxLen
14076 0 0 24 $dirStart >= 0 and $dirStart <= $dataLen - 2
14085 0 0 0 $raf->Seek($dataPos + $base, 0) and $raf->Read($data, 2) == 2
14113 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
14149 0 0 2 $count and $count * 12 + 2 <= $dirLen

or 2 conditions

line l !l condition
13281 0 0 $dirInfo->{'DirStart'} || 0
13450 0 0 $norm || 'Normal'
13455 0 0 $fmt || '%+d'
0 0 $div || 1
13466 36 19 $div || 1
13659 0 0 $dirInfo->{'Offset'} || 0
13784 0 1 $tagInfo->{'Format'} || $tagTablePtr->{'FORMAT'} || 'int8u'
13823 3 0 $subdir->{'DecryptStart'} || 0
13983 3 0 $subdir->{'DecryptStart'} || 0
14068 7 17 $dirInfo->{'DataPos'} || 0
14070 24 0 $dirInfo->{'DirStart'} || 0
14071 24 0 $dirInfo->{'Base'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
13608 1 0 4 not defined $len or $len > $maxLen
13645 8 24 0 not defined $serial or $serial =~ /^\d+$/
13673 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
13684 0 0 0 $verbose or $et->{'HTML_DUMP'}
13860 0 0 0 $offset + 4 > $dataLen or $offset < $start
13879 0 0 0 ref $tagInfo ne "HASH" or not $tagInfo->{'Unknown'}
13911 0 0 0 ref $tagInfo ne 'HASH' || !$tagInfo->{'Unknown'}
13929 0 0 0 $decryptMode == 2 or not $end
0 0 0 $decryptMode == 2 or not $end or $end < $dpos
13946 0 0 0 defined $serial or defined $count
13990 0 0 3 $verbose > 2 || $et->Options('Unknown') > 1
14101 0 0 8 $format < 1 or $format > 13
14112 0 0 1 $valuePtr < 0 or $valuePtr + $size > $dataLen