Condition Coverage

blib/lib/Image/ExifTool/XMPStruct.pl
Criterion Covered Total %
condition 63 120 52.5


and 3 conditions

line !l l&&!r l&&r condition
92 19 0 0 $w and not $warn
114 9 0 0 $w and not $warn
129 0 0 0 $val =~ /([\\]+)$/ and length $1 & 1
268 15 0 29 $fix and not $Image::ExifTool::XMP::specialStruct{$fix}
288 5 5 0 $grp and $grp ne lc $grps[1]
290 0 0 3 $ti->{'Writable'} && $ti->{'Writable'} eq 'lang-alt'
7 3 0 defined $langCode and not $ti->{'Writable'} && $ti->{'Writable'} eq 'lang-alt'
293 10 0 0 defined $priority and $priority >= $pri
322 0 0 1 $fix and not $Image::ExifTool::XMP::specialStruct{$fix}
324 0 0 5 ref $fieldInfo eq "HASH" and $fieldInfo->{'Writable'}
0 0 5 ref $fieldInfo eq "HASH" and $fieldInfo->{'Writable'} and $fieldInfo->{'Writable'} eq "lang-alt"
444 0 0 0 $a2->{'xml:lang'} and $a2->{'xml:lang'} eq $attr->{'xml:lang'}
446 0 0 0 $capture->{$p2} and $capture->{$p2}[0] eq $cap{$p}[0]
527 32 19 20 $tagInfo->{'Writable'} and $tagInfo->{'Writable'} eq "lang-alt"
541 0 71 0 $et and $et->Options("Verbose") > 1
581 22 8 7 $fieldInfo->{'Writable'} and $fieldInfo->{'Writable'} eq "lang-alt"
607 0 2 0 defined $item and $level == 1
626 16 68 1 $addedTag and $fieldInfo->{'StructType'}
68 0 1 $addedTag and $fieldInfo->{'StructType'} and $fieldInfo->{'Table'}
631 47 0 3 $strTable->{'TYPE'} and $changed
727 178 148 0 @$structProps and not $strInfo->{'Struct'}
773 236 127 216 $index and not @$structProps
780 185 7 24 $tagInfo->{'LangCode'} and not ref $tag
903 103 47 0 $var{$_} and push @siList, $_

or 2 conditions

line l !l condition
291 0 10 $ti->{'Priority'} || 1
448 0 0 $match{$1} || 0
531 8 12 $langIdx->{$path} || 0
537 16 4 $langCode || 'x-default'
561 47 3 $strTable->{'NAMESPACE'} || ''
736 3 0 $table->{'GROUPS'}{'0'} || 'XMP'
767 143 186 $tagInfo->{'Writable'} || ''
845 0 0 $tagInfo->{'Namespace'} || $tagInfo->{'Table'}{'NAMESPACE'} || ''
900 215 4 defined $_ or $_ = ""

or 3 conditions

line l !l&&r !l&&!r condition
99 13 0 0 $$obj =~ s/^\s*\}//s or $warn
120 5 0 0 $$obj =~ s/^\s*\]//s or $warn
251 48 3 0 $strTable->{'STRUCT_NAME'} || 'XMP ' . &RegisterNamespace($strTable)
308 0 10 0 $tagInfo->{'Namespace'} || $tagInfo->{'Table'}{'NAMESPACE'}
394 50 1 0 %copy or not $warn
461 0 0 0 not $delPath or $delPath gt $p
494 0 0 0 ref $cap ne "ARRAY" or $cap->[0]
577 1 36 0 $fieldInfo->{'Namespace'} || $ns
5 32 0 $fieldInfo->{'TagID'} || $tag
607 11 0 2 length $item or defined $item and $level == 1