Condition Coverage

blib/lib/Image/ExifTool/RSRC.pm
Criterion Covered Total %
condition 12 51 23.5


and 3 conditions

line !l l&&!r l&&r condition
82 1 1 0 $datOff < $mapOff and $datOff + $datLen > $mapOff
83 2 0 0 $mapOff < $datOff and $mapOff + $mapLen > $datOff
86 0 0 2 $raf->Seek($mapOff, 0) and $raf->Read($map, $mapLen) == $mapLen
125 0 0 2 $raf->Seek($resOff, 0) and $raf->Read($buff, 4) == 4
0 0 2 $raf->Seek($resOff, 0) and $raf->Read($buff, 4) == 4 and ($valLen = unpack("N", $buff)) < 100000000
0 0 2 $raf->Seek($resOff, 0) and $raf->Read($buff, 4) == 4 and ($valLen = unpack("N", $buff)) < 100000000 and $raf->Read($val, $valLen) == $valLen
135 0 0 0 $raf->Seek($resNameOff, 0) and $raf->Read($buff, 1)
0 0 0 $raf->Seek($resNameOff, 0) and $raf->Read($buff, 1) and ($nameLen = ord $buff) != 0
0 0 0 $raf->Seek($resNameOff, 0) and $raf->Read($buff, 1) and ($nameLen = ord $buff) != 0 and $raf->Read($resName, $nameLen) == $nameLen
142 0 0 0 $resType eq "STR " and $valLen > 1
0 0 0 $resType eq "usro" and $valLen > 4
0 0 0 $resType eq "STR#" and $valLen > 2

or 3 conditions

line l !l&&r !l&&!r condition
80 0 0 2 $datOff < 16 or $datOff + $datLen > $fLen
81 0 0 2 $mapOff < 16 or $mapOff + $mapLen > $fLen
0 0 2 $mapOff < 16 or $mapOff + $mapLen > $fLen or $mapLen < 30
93 0 0 2 $typeOff < 28 or $nameOff < 30
124 2 0 0 $tagInfo or $verbose