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
11711 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"
11735 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/
11748 0 0 0 $id == 0 and $len == 0
11807 0 0 0 $rational and $key
11829 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+$/
11832 0 0 0 defined $serial and defined $count
11861 0 0 3 $tagInfo and $tagInfo->{'SubDirectory'}
11864 0 0 3 $verbose < 3 and $et->Options("Unknown") < 2
0 0 3 $verbose < 3 and $et->Options("Unknown") < 2 and not $recrypt
11880 1 0 2 $len and $len < $maxLen
11960 0 0 19 $dirStart >= 0 and $dirStart <= $dataLen - 2
11969 0 0 0 $raf->Seek($dataPos + $base, 0) and $raf->Read($data, 2) == 2
11997 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
12033 0 0 2 $count and $count * 12 + 2 <= $dirLen

or 2 conditions

line l !l condition
11354 0 0 $dirInfo->{'DirStart'} || 0
11517 0 0 $norm || 'Normal'
11522 0 0 $fmt || '%+d'
0 0 $div || 1
11533 36 19 $div || 1
11708 0 0 $dirInfo->{'Offset'} || 0
11952 7 12 $dirInfo->{'DataPos'} || 0
11954 19 0 $dirInfo->{'DirStart'} || 0
11955 19 0 $dirInfo->{'Base'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
11665 1 0 3 not defined $len or $len > $maxLen
11694 7 19 0 not defined $serial or $serial =~ /^\d+$/
11722 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
11733 0 0 0 $verbose or $et->{'HTML_DUMP'}
11830 0 0 0 defined $serial or defined $count
11985 0 0 8 $format < 1 or $format > 13
11996 0 0 1 $valuePtr < 0 or $valuePtr + $size > $dataLen