Condition Coverage

blib/lib/Image/ExifTool/EXE.pm
Criterion Covered Total %
condition 42 116 36.2


and 3 conditions

line !l l&&!r l&&r condition
918 0 0 0 $raf->Read($buff, 56) == 56 and $buff =~ /^ITSF.{20}\x10\xfd\x01\x7c\xaa\x7b\xd0\x11\x9e\x0c\0\xa0\xc9\x22\xe6\xec/s
975 1 0 1 $string eq "StringFileInfo" and $valLen == 0
1039 0 4 1 $addr >= $section->{'VirtualAddress'} and $addr < $section->{'VirtualAddress'} + $section->{'Size'}
1061 0 0 3 $raf->Seek($dirStart, 0) and $raf->Read($buff, 16) == 16
1083 0 0 1 $dirInfo->{'ResType'} eq "Version" and $level == 2
0 0 1 $dirInfo->{'ResType'} eq "Version" and $level == 2 and not $dirInfo->{'GotVersion'}
1094 0 0 1 $raf->Seek($entryPos + $base, 0) and $raf->Read($buf2, 16) == 16
1100 0 0 1 $raf->Seek($fileOff, 0) and $raf->Read($buf2, $len) == $len
1135 4 0 1 $name eq ".rsrc\0\0\0" and not $rsrcFound
4 0 1 $name eq ".rsrc\0\0\0" and not $rsrcFound and defined($rsrcFound = 1)
3 0 1 $name eq ".text\0\0\0" and not %dirInfo
1230 6 0 0 $et->{'OPTIONS'}{'FastScan'} && $et->{'OPTIONS'}{'FastScan'} == 3
1234 5 0 1 $buff =~ /^MZ/ and $size == 64
3 0 2 $buff =~ /^(\xca\xfe\xba\xbe|\xfe\xed\xfa(\xce|\xcf)|(\xce|\xcf)\xfa\xed\xfe)/ and $size > 12
3 0 0 $buff =~ /^Joy!peff/ and $size > 12
1 0 2 $buff =~ /^\x7fELF/ and $size >= 16
1266 0 0 1 $raf->Seek($lfanew, 0) and $raf->Read($buff, 64)
0 0 1 $raf->Seek($lfanew, 0) and $raf->Read($buff, 64) and $buff =~ /^(NE|PE|LE)/
1339 1 0 0 $addr and $len < 2800
1 0 0 $addr and $len < 2800 and $dirInfo{'Sections'}
0 0 0 $addr and $len < 2800 and $dirInfo{'Sections'} and $magic == 267 || $magic == 523
1342 0 0 0 $off and $raf->Seek($off, 0)
0 0 0 $off and $raf->Seek($off, 0) and $raf->Read($buff, $len) == $len
1348 0 0 0 $n < 10000 and $raf->Seek($of, 0)
0 0 0 $n < 10000 and $raf->Seek($of, 0) and $raf->Read($buf2, $n) == $n
1413 0 0 0 $raf->Seek($offset, 0) and $raf->Read($buf2, 16) == 16
1488 0 0 2 $raf->Seek($pos, 0) and $raf->Read($buff, 60) == 60
1519 0 0 0 $prog eq "env" and $buff =~ /\b(perl|python|ruby|php)\b/

or 2 conditions

line l !l condition
1055 2 1 $dirInfo->{'Level'} || 0
1147 1 0 &ProcessPEResources($et, \%dirInfo) or return 0
1288 1 0 $Image::ExifTool::EXE::Main{'0'}{'PrintConv'}{$mach} || ''
1474 2 0 $et->{'VALUE'}{'ObjectFileType'} or 0

or 3 conditions

line l !l&&r !l&&!r condition
968 3 0 0 $len or $valLen
971 2 1 0 $index or $string eq "VS_VERSION_INFO"
1074 1 0 0 $resourceType{$name} || sprintf('Unknown (0x%x)', $name)
1135 1 1 3 $name eq ".rsrc\0\0\0" and not $rsrcFound and defined($rsrcFound = 1) or $name eq ".text\0\0\0" and not %dirInfo
1303 0 1 0 $magic == 263 or $magic == 267
1 0 0 $magic == 263 or $magic == 267 or $magic == 523
1339 0 0 0 $magic == 267 || $magic == 523
1346 0 0 0 $type == 2 or $type == 4