Condition Coverage

blib/lib/Image/ExifTool/IPTC.pm
Criterion Covered Total %
condition 44 83 53.0


and 3 conditions

line !l l&&!r l&&r condition
1041 0 26 44 $path =~ /^(\w+)/ and defined $isStandardIPTC{$1}
1062 178 0 0 $verbose and $dirInfo
1067 44 0 109 defined $isStd and not $et->{'DIR_COUNT'}{'STD_IPTC'}
1086 40 0 4 $Image::ExifTool::MWG::strict || $validate and $et->{'FILE_TYPE'} =~ /^(JPEG|TIFF|PSD)$/
1109 0 174 0 $dirLen >= 4 and substr($$dataPt, $pos, 1) ne "\34"
174 0 0 $dirLen >= 4 and substr($$dataPt, $pos, 1) ne "\34" and substr($$dataPt, $pos + 3, 1) eq "\34"
1120 139 0 34 $et->{'TAGS_FROM_FILE'} and not $et->{'EXCL_TAG_LOOKUP'}{'iptc'}
1162 177 0 0 $validate and defined $lastRec
177 0 0 $validate and defined $lastRec and $rec < $lastRec
1190 2490 0 0 $validate and not $tagInfo->{'List'}
2490 0 0 $validate and not $tagInfo->{'List'} and not $tagInfo->{'Unknown'}
1200 36 0 194 $len <= 4 and $len != 3
36 19 175 $len <= 4 and $len != 3 and $val =~ /[\0-\x08]/
1230 1908 0 0 $val =~ s/\0+$// and $validate
1233 23 0 1883 $xlat and $rec < 7
23 1880 3 $xlat and $rec < 7 and $val =~ /[\x80-\xff]/
1242 190 0 0 $val =~ s/\0+$// and $validate

or 2 conditions

line l !l condition
1054 99 79 $dirInfo->{'DirStart'} || 0
1055 178 0 $dirInfo->{'DirLen'} || 0
1098 17 23 $et->{'DIR_COUNT'}{'IPTC'} || 0
1211 0 0 &Image::ExifTool::FormatSize($fmt) || 1

or 3 conditions

line l !l&&r !l&&!r condition
1074 71 0 12 $pos or $dirLen != length $$dataPt
1086 4 0 40 $Image::ExifTool::MWG::strict || $validate
1120 1 67 106 $et->{'REQ_TAG_LOOKUP'}{'iptc'} or $et->{'TAGS_FROM_FILE'} and not $et->{'EXCL_TAG_LOOKUP'}{'iptc'}
1123 17 0 18 $pos or $dirLen != length $$dataPt
1146 0 0 0 $pos + $n > $dirEnd or $n > 8
1161 174 3 2313 not defined $lastRec or $lastRec != $rec
1206 0 0 0 $4 || $2
1213 0 0 0 $len < $min or $len > $max