Branch Coverage

blib/lib/Image/ExifTool/OpenEXR.pm
Criterion Covered Total %
branch 27 66 40.9


line true false branch
174 0 1 unless $raf->Read($buff, 8) == 8
175 0 1 unless $buff =~ /^\x76\x2f\x31\x01/s
184 0 1 $flags & 1024 ? :
189 0 9 unless $raf->Read($buff, ($maxLen + 1) * 2 + 5)
190 1 8 if ($buff =~ /^\0/)
191 1 0 unless $multi and $et->Options("ExtractEmbedded")
194 0 0 if $buff =~ s/^(\0+)// and length $1 > 1
197 0 8 unless ($buff =~ /^([^\0]{1,$maxLen})\0([^\0]{1,$maxLen})\0(.{4})/gs)
202 0 8 unless ($raf->Seek(pos($buff) - length($buff), 1))
207 0 8 unless ($tagInfo)
211 0 0 if (length $name <= 1)
212 0 0 if (length $name) { }
224 8 0 if ($format or $binary) { }
225 8 0 if $raf->Read($buff, $size) == $size
226 0 8 if (not $format) { }
7 1 elsif ($format ne '1') { }
0 1 elsif ($type eq 'tiledesc') { }
1 0 elsif ($type eq 'chlist') { }
0 0 elsif ($type eq 'stringvector') { }
230 7 0 if ($format =~ /^(\w+)\[?(\d*)/)
232 0 4 $fmt eq 'string' ? :
4 3 unless $cnt
237 0 0 if ($size >= 9)
242 0 0 unless $lvl
244 0 0 unless $rnd
253 0 4 $lin ? :
260 0 0 if $pos + 4 + $len > length $buff
272 0 8 unless ($success)
276 0 8 unless defined $val
279 1 0 if ($tag eq 'dataWindow' || !$dim && $tag eq 'displayWindow' and $val =~ /^(-?\d+) (-?\d+) (-?\d+) (-?\d+)$/ and not $et->{'DOC_NUM'})
284 0 8 if ($verbose)
285 0 0 ref $val ? :
298 1 0 if ($dim)