Branch Coverage

blib/lib/Image/ExifTool/OOXML.pm
Criterion Covered Total %
branch 50 72 69.4


line true false branch
190 70 110 $prop =~ /(.*?):(.*)/ ? :
191 44 136 if $ns eq "vt"
192 2 134 if (defined $tag) { }
39 107 elsif ($prop ne 'Properties' and $prop ne 'cp:coreProperties' and $prop ne 'property') { }
199 39 0 unless $namespace
214 0 151 unless @$props
218 0 151 if $verbose > 1
227 84 67 if ($queueAttrs{$tag})
233 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) { }
236 0 28 unless my $name = $queuedAttrs{'name'}
239 0 28 unless length $tag
240 1 27 unless ($tagTablePtr->{$tag})
246 0 1 if ($props->[-1] eq "vt:filetime")
251 0 1 if $verbose
263 4 0 if ($table and %$table)
268 2 5 if ($props->[-1] eq 'vt:size') { }
2 3 elsif ($props->[-1] eq 'vt:baseType') { }
3 0 elsif ($vectorCount) { }
276 1 2 if ($vectorCount)
280 1 1 if @vectorVals
285 60 0 if ($tagTablePtr->{$tag}) { }
287 60 0 if (ref $tagInfo eq "HASH")
290 4 56 if $fmt eq "date"
293 0 0 if $verbose
323 1 0 if ($fileType) { }
325 0 0 if ($fileType eq "PPTX" and $et->{'FILE_EXT'} and $et->{'FILE_EXT'} eq "THMX")
333 0 0 unless $fileType and $isOOXML{$fileType}
346 0 18 unless defined $file
352 14 4 unless $file =~ m[^docProps/(.*\.xml|(thumbnail\.(jpe?g|wmf)))$]i
355 0 4 if $status
357 1 3 if ($file =~ /\.(jpe?g|wmf)$/i)
358 0 1 $file =~ /\.wmf$/i ? :
363 3 0 $buff =~ /<\?xml\s+.*?\?>/g ? :