Branch Coverage

blib/lib/Image/ExifTool/MWG.pm
Criterion Covered Total %
branch 20 56 35.7


line true false branch
552 0 1 if $mwgLoaded
569 1 0 unless defined $Image::ExifTool::MWG::strict
584 0 4 if (/^"/ or /; /)
604 0 10 if not $inQuotes and s/^"//
605 0 10 if ($inQuotes)
608 0 0 if s/((^|[^"])("")*)"$/$1/
611 0 10 if ($wasQuotes) { }
618 0 6 if $inQuotes
619 4 2 @vals > 1 ? :
633 0 2 if ($writeMode ne "wcg")
634 0 0 if (defined $val) { }
635 0 0 unless $writeMode =~ /w/i
637 0 0 unless $writeMode =~ /c/i
640 0 2 if ($nvHash->{'DelValue'} and defined $val)
643 0 0 ref $old eq 'ARRAY' ? :
644 0 0 if (@{$nvHash->{'DelValue'};}) { }
648 0 0 unless $del{$_}
649 0 0 unless $delIndex
656 2 0 if ($nvHash->{'Value'})
657 0 2 if (defined $delIndex) { }
663 2 0 if (@new) { }
681 2 6 unless ($Image::ExifTool::Photoshop::iptcDigestInfo and $et->{'NEW_VALUE'}{$Image::ExifTool::Photoshop::iptcDigestInfo})
701 11 8 unless defined $xmp
702 0 8 if (ref $iptc) { }
0 8 elsif (defined $iptc and length $iptc == $limit) { }
703 0 0 unless ref $xmp
710 0 0 if ref $xmp
711 0 0 if length $xmp > $limit and $iptc eq substr($xmp, 0, $limit)