Branch Coverage

blib/lib/Image/ExifTool/OOXML.pm
Criterion Covered Total %
branch 49 70 70.0


line true false branch
189 70 110 $prop =~ /(.*?):(.*)/ ? :
190 44 136 if $ns eq "vt"
191 2 134 if (defined $tag) { }
39 107 elsif ($prop ne 'Properties' and $prop ne 'cp:coreProperties' and $prop ne 'property') { }
198 39 0 unless $namespace
213 0 151 unless @$props
217 0 151 if $verbose > 1
226 84 67 if ($queueAttrs{$tag})
232 28 39 if (not $tag) { }
2 37 elsif ($tag eq 'xmlns') { }
4 33 elsif (ref $Image::ExifTool::XMP::Main{$ns} eq 'HASH' and $Image::ExifTool::XMP::Main{$ns}{'SubDirectory'}) { }
7 50 elsif (@$props > 2 and grep /^vt:vector$/, @$props) { }
235 0 28 unless my $name = $queuedAttrs{'name'}
238 0 28 unless length $tag
239 1 27 unless ($tagTablePtr->{$tag})
245 0 1 if ($props->[-1] eq "vt:filetime")
250 0 1 if $verbose
262 4 0 if ($table and %$table)
267 2 5 if ($props->[-1] eq 'vt:size') { }
2 3 elsif ($props->[-1] eq 'vt:baseType') { }
3 0 elsif ($vectorCount) { }
275 1 2 if ($vectorCount)
279 1 1 if @vectorVals
284 60 0 if ($tagTablePtr->{$tag}) { }
286 60 0 if (ref $tagInfo eq "HASH")
289 4 56 if $fmt eq "date"
292 0 0 if $verbose
322 1 0 if ($fileType) { }
324 0 0 if ($fileType eq "PPTX" and $et->{'FILE_EXT'} and $et->{'FILE_EXT'} eq "THMX")
332 0 0 unless $fileType and $isOOXML{$fileType}
345 0 18 unless defined $file
351 14 4 unless $file =~ m[^docProps/(.*\.xml|(thumbnail\.(jpe?g|wmf)))$]i
354 0 4 if $status
356 1 3 if ($file =~ /\.(jpe?g|wmf)$/i)
357 0 1 $file =~ /\.wmf$/i ? :