Branch Coverage

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


line true false branch
553 0 1 if $mwgLoaded
570 1 0 unless defined $Image::ExifTool::MWG::strict
585 0 4 if (/^"/ or /; /)
605 0 10 if not $inQuotes and s/^"//
606 0 10 if ($inQuotes)
609 0 0 if s/((^|[^"])("")*)"$/$1/
612 0 10 if ($wasQuotes) { }
619 0 6 if $inQuotes
620 4 2 @vals > 1 ? :
634 0 2 if ($writeMode ne "wcg")
635 0 0 if (defined $val) { }
636 0 0 unless $writeMode =~ /w/i
638 0 0 unless $writeMode =~ /c/i
641 0 2 if ($nvHash->{'DelValue'} and defined $val)
644 0 0 ref $old eq 'ARRAY' ? :
645 0 0 if (@{$nvHash->{'DelValue'};}) { }
649 0 0 unless $del{$_}
650 0 0 unless $delIndex
657 2 0 if ($nvHash->{'Value'})
658 0 2 if (defined $delIndex) { }
664 2 0 if (@new) { }
682 2 6 unless ($Image::ExifTool::Photoshop::iptcDigestInfo and $et->{'NEW_VALUE'}{$Image::ExifTool::Photoshop::iptcDigestInfo})
702 11 8 unless defined $xmp
703 0 8 if (ref $iptc) { }
0 8 elsif (defined $iptc and length $iptc == $limit) { }
704 0 0 unless ref $xmp
711 0 0 if ref $xmp
712 0 0 if length $xmp > $limit and $iptc eq substr($xmp, 0, $limit)