Condition Coverage

blib/lib/Image/ExifTool/IPTC.pm
Criterion Covered Total %
condition 42 77 54.5


and 3 conditions

line !l l&&!r l&&r condition
1041 0 26 44 $path =~ /^(\w+)/ and defined $isStandardIPTC{$1}
1062 175 0 0 $verbose and $dirInfo
1067 44 0 106 defined $isStd and not $et->{'DIR_COUNT'}{'STD_IPTC'}
1086 40 0 4 $Image::ExifTool::MWG::strict || $et->Options('Validate') and $et->{'FILE_TYPE'} =~ /^(JPEG|TIFF|PSD)$/
1109 0 171 0 $dirLen >= 4 and substr($$dataPt, $pos, 1) ne "\34"
171 0 0 $dirLen >= 4 and substr($$dataPt, $pos, 1) ne "\34" and substr($$dataPt, $pos + 3, 1) eq "\34"
1120 136 0 34 $et->{'TAGS_FROM_FILE'} and not $et->{'EXCL_TAG_LOOKUP'}{'iptc'}
1162 174 0 0 $validate and defined $lastRec
174 0 0 $validate and defined $lastRec and $rec < $lastRec
1197 36 0 194 $len <= 4 and $len != 3
36 19 175 $len <= 4 and $len != 3 and $val =~ /[\0-\x08]/
1227 1885 0 0 $val =~ s/\0+$// and $validate
1230 23 0 1860 $xlat and $rec < 7
23 1858 2 $xlat and $rec < 7 and $val =~ /[\x80-\xff]/
1239 188 0 0 $val =~ s/\0+$// and $validate

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
1074 68 0 12 $pos or $dirLen != length $$dataPt
1086 4 0 40 $Image::ExifTool::MWG::strict || $et->Options('Validate')
1120 1 67 103 $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 171 3 2288 not defined $lastRec or $lastRec != $rec
1203 0 0 0 $4 || $2
1210 0 0 0 $len < $min or $len > $max