Branch Coverage

blib/lib/Image/ExifTool/InDesign.pm
Criterion Covered Total %
branch 49 128 38.2


line true false branch
41 0 5 unless $raf->Read($hdr, 16) == 16
42 0 5 unless $hdr eq $masterPageGUID
43 0 5 unless $raf->Read($buff, 8) == 8
44 5 0 $buff eq 'DOCUMENT' ? :
47 0 5 unless $raf->Seek(0, 0)
48 0 5 unless ($raf->Read($buff, 4096) == 4096 and $raf->Read($buf2, 4096) == 4096)
55 0 5 unless ($buf2 =~ /^\Q$masterPageGUID\E/)
62 0 5 $seq2 > $seq1 ? :
65 0 5 if ($streamInt32u == 1) { }
5 0 elsif ($streamInt32u == 2) { }
74 0 5 if $pages < 2
76 0 5 if ($pos > 2147483647)
77 0 0 if (not $et->Options('LargeFileSupport')) { }
0 0 elsif ($et->Options('LargeFileSupport') eq '2') { }
84 2 3 if ($outfile) { }
88 0 2 unless &Write($outfile, $buff, $buf2)
90 0 2 unless ($result)
91 0 0 defined $result ? :
96 0 3 unless $raf->Seek($pos, 0)
102 0 10 unless $raf->Read($hdr, 32)
103 5 5 unless (length $hdr == 32 and $hdr =~ /^\Q$objectHeaderGUID\E/)
105 5 0 if $hdr =~ /^\0+$/
107 0 0 if $raf->Read($buff, 8192)
110 0 0 if ($n > 8190 or length $hdr > 4095)
115 0 0 if (not $outfile) { }
0 0 elsif (not $et->Error($non, 1)) { }
118 0 0 unless &Write($outfile, $hdr)
124 0 5 if ($verbose)
126 0 0 if ($verbose > 2)
127 0 0 $len < 1024000 ? :
128 0 0 unless $raf->Seek(-$raf->Read($buff, $len2), 1)
134 5 0 if ($len > 56) { }
135 0 5 unless $raf->Read($buff, 56) == 56
136 5 0 if ($buff =~ /^(....)<\?xpacket begin=(['"])\xef\xbb\xbf\2 id=(['"])W5M0MpCehiHzreSzNTczkc9d\3/s) { }
143 0 5 if ($len > 314572800)
145 0 0 if ($outfile) { }
0 0 elsif ($et->Options('IgnoreMinorErrors')) { }
146 0 0 if $et->Error($msg, 2)
156 0 5 unless ($raf->Seek(-52, 1) and $raf->Read($buff, $len) == $len)
167 0 5 unless ($xmpLen == $len)
168 0 0 if ($xmpLen < $len) { }
175 2 3 if ($outfile) { }
176 0 2 if $err
179 0 2 unless $classID & 1073741824
181 2 0 if ($xmp and length $xmp) { }
189 0 0 if defined $xmp
203 2 3 if ($outfile) { }
0 3 elsif ($len) { }
205 0 2 unless &Write($outfile, $hdr, $buff)
207 0 2 unless ($result)
208 0 0 defined $result ? :
214 0 0 unless $raf->Seek($len, 1)
216 0 5 unless $raf->Read($buff, 32) == 32
217 0 5 unless ($buff =~ /^\Q$objectTrailerGUID\E/)
221 2 3 if ($outfile)
223 0 2 unless substr($hdr, 16, 8) eq substr($buff, 16, 8)
225 0 2 unless &Write($outfile, $objectTrailerGUID, substr($hdr, 16))
229 2 3 if ($outfile)
233 2 0 if $part
236 5 0 if (not $err) { }
0 0 elsif (not $outfile) { }
0 0 elsif ($err ne '1') { }
237 0 5 if $outfile and not $foundXMP
241 0 0 unless $err eq 1