Branch Coverage

blib/lib/Image/ExifTool/OpenEXR.pm
Criterion Covered Total %
branch 28 70 40.0


line true false branch
189 0 1 unless $raf->Read($buff, 8) == 8
190 0 1 unless $buff =~ /^\x76\x2f\x31\x01/s
199 0 1 $flags & 1024 ? :
204 0 9 unless $raf->Read($buff, ($maxLen + 1) * 2 + 5)
205 1 8 if ($buff =~ /^\0/)
206 1 0 unless $multi and $et->Options("ExtractEmbedded")
209 0 0 if $buff =~ s/^(\0+)// and length $1 > 1
212 0 8 unless ($buff =~ /^([^\0]{1,$maxLen})\0([^\0]{1,$maxLen})\0(.{4})/gs)
217 0 8 unless ($raf->Seek(pos($buff) - length($buff), 1))
222 0 8 unless ($tagInfo)
226 0 0 if (length $name <= 1)
227 0 0 if (length $name) { }
240 8 0 if ($format or $binary or $subdir) { }
241 8 0 if $raf->Read($buf2, $size) == $size
242 0 8 if ($subdir) { }
0 8 elsif (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') { }
245 0 0 if $success
250 7 0 if ($format =~ /^(\w+)\[?(\d*)/)
252 0 4 $fmt eq 'string' ? :
4 3 unless $cnt
257 0 0 if ($size >= 9)
262 0 0 unless $lvl
264 0 0 unless $rnd
273 0 4 $lin ? :
280 0 0 if $pos + 4 + $len > length $buf2
292 0 8 unless ($success)
296 0 8 unless defined $val
299 1 0 if ($tag eq 'dataWindow' || !$dim && $tag eq 'displayWindow' and $val =~ /^(-?\d+) (-?\d+) (-?\d+) (-?\d+)$/ and not $et->{'DOC_NUM'})
304 0 8 if ($verbose)
305 0 0 ref $val eq 'SCALAR' ? :
318 1 0 if ($dim)