Branch Coverage

blib/lib/Image/ExifTool/MacOS.pm
Criterion Covered Total %
branch 21 150 14.0


line true false branch
345 0 0 if ($val =~ /\+00:00$/)
347 0 0 if $time
366 0 0 unless $nvHash
368 0 0 unless ($nvHash->{'TagInfo'}{'List'})
369 0 0 unless $overwrite
370 0 0 if ($overwrite < 0)
371 0 0 $nvHash->{'Shift'} ? :
376 0 0 if ($tag eq 'MDItemFSCreationDate' or $tag eq 'FileCreateDate') { }
0 0 elsif ($tag eq 'MDItemUserTags') { }
0 0 elsif ($tag eq 'XAttrQuarantine') { }
379 0 0 if ($val =~ /[-+Z]/)
381 0 0 if $time
389 0 0 if ($overwrite < 0 and @{$nvHash->{'DelValue'};})
395 0 0 unless ($err)
398 0 0 if @vals
401 0 0 unless (defined $err)
404 0 0 $overwrite > 0 ? :
405 0 0 @vals ? :
407 0 0 if $overwrite > 0
408 0 0 if $val eq ""
417 0 0 if ($tag eq 'MDItemFinderComment') { }
420 0 0 unless defined $val
426 0 0 $val ? :
432 0 0 if (defined $cmd)
435 0 0 if (not $err) { }
0 0 elsif (not $silentErr or $err != $silentErr) { }
436 0 0 if defined $val
441 0 0 unless $result
459 0 0 if ($? or not @mdls)
468 0 0 if (ref $val ne 'ARRAY') { }
0 0 elsif ($_ eq ')') { }
469 0 0 unless s/^k?(\w+)\s*= //
471 0 0 if $_ eq "("
472 0 0 if $_ eq "(null)"
473 0 0 if s/^"//
477 0 0 unless defined $_
482 0 0 if $_ eq "(null)"
483 0 0 if s/^"//
490 0 0 unless ($tagTablePtr->{$tag})
493 0 0 if /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/
502 0 0 if ref $val eq "ARRAY"
503 0 0 if $tag =~ /Audio/
504 0 0 if $tag =~ /(Copyright|Author)/
508 0 0 unless ref $val
523 2 6 unless ($tagTablePtr->{$tag})
526 1 1 if ($tag =~ /^com\.apple\.(.*)$/) { }
535 0 2 if $tag =~ /Date$/
539 4 4 if ($val =~ /^bplist0/)
542 4 0 if (Image::ExifTool::PLIST::ProcessBinaryPLIST($et, \%dirInfo, $tagTablePtr)) { }
543 0 4 if ref $dirInfo{'Value'} eq "HASH"
550 0 7 if (not ref $val and $val =~ /\0/ || length $val > 200 or $tag eq "XAttrMDLabel")
569 0 0 if ($? or not @xattr)
570 0 0 if $?
579 0 0 if (s/^[\dA-Fa-f]{8}//) { }
0 0 elsif ($tag and defined $val) { }
580 0 0 unless $tag
583 0 0 if /[^\dA-Fa-f]/ or length $_ & 1
584 0 0 unless defined $val
589 0 0 if defined $val
593 0 0 unless length $_
594 0 0 unless s/:$//
595 0 0 if defined $val
599 0 0 if $warn
615 0 0 if ($? or not $time or not $time =~ s/([-+]\d{2})(\d{2})\s*$/$1:$2/)
636 0 1 unless $dataLen >= 58 and $$dataPt =~ /^.{34}ATTR/s
645 0 8 if $pos + 12 > $dataLen
649 0 8 if $pos + 11 + $n > $dataLen
651 8 0 unless $off < 0
656 0 8 if $off + $len > $dataLen
658 8 0 if defined $val
680 0 1 unless $raf->Read($hdr, 26) == 26 and $hdr =~ /^\0\x05\x16\x07\0(.)\0\0Mac OS X /s
684 0 1 unless $ver == 2
689 0 1 unless $raf->Read($hdr, $entries * 12) == $entries * 12
695 0 2 if $len > 100000000
696 0 2 unless $raf->Seek($off, 0) and $raf->Read($buff, $len) == $len