Condition Coverage

blib/lib/Image/ExifTool/Validate.pm
Criterion Covered Total %
condition 59 184 32.0


and 3 conditions

line !l l&&!r l&&r condition
333 144 2 67 ref $tagInfo->{'PrintConv'} eq "HASH" and $tagInfo->{'Table'}{'SHORT_NAME'} eq 'GPS::Main' || $tagInfo->{'Table'} eq \%Image::ExifTool::Exif::Main && $Image::ExifTool::Validate::exifSpec{$tagInfo->{'TagID'}}
337 0 18 0 $prt and $prt =~ /^Unknown \(/
353 0 0 0 $val ne " : : : : " and $val ne " "
357 0 0 15 $a[$i] >= $validDateField[$i][1] and $a[$i] <= $validDateField[$i][2]
386 0 0 0 $a[$i] >= $validDateField[$i][1] and $a[$i] <= $validDateField[$i][2]
408 61 2 0 not defined $tagInfo and $tagTablePtr->{$tag}
2 0 0 not defined $tagInfo and $tagTablePtr->{$tag} and ref $tagTablePtr->{$tag} eq "HASH"
411 0 0 2 $otherSpec{$et->{'FileType'}} && ($otherSpec{$et->{'FileType'}}{$tag} || $otherSpec{$et->{'FileType'}}{'All'})
415 0 61 0 $tagTablePtr eq \%Image::ExifTool::Exif::Main and $Image::ExifTool::Validate::exifSpec{$tag} || $stdFmt->{$tag} || $tag >= 50706 && $tag <= 51125 && !defined($stdFmt->{$tag})
0 0 2 $otherSpec{$et->{'FileType'}} && ($otherSpec{$et->{'FileType'}}{$tag} || $otherSpec{$et->{'FileType'}}{'All'})
421 0 46 13 $wgp and $wgp ne $ifd
46 0 13 $wgp and $wgp ne $ifd and $wgp ne "All"
46 4 9 $wgp and $wgp ne $ifd and $wgp ne "All" and not $ti->{'OffsetPair'}
4 9 0 $wgp and $wgp ne $ifd and $wgp ne "All" and not $ti->{'OffsetPair'} and ($ifd =~ /^(Sub|Profile)?IFD\d*$/ xor $wgp =~ /^(Sub)?IFD\d*$/)
13 0 0 $wgp and $wgp ne $ifd and $wgp ne "All" and not $ti->{'OffsetPair'} and ($ifd =~ /^(Sub|Profile)?IFD\d*$/ xor $wgp =~ /^(Sub)?IFD\d*$/) and $ti->{'Writable'} || $ti->{'WriteGroup'}
0 0 0 $wgp and $wgp ne $ifd and $wgp ne "All" and not $ti->{'OffsetPair'} and ($ifd =~ /^(Sub|Profile)?IFD\d*$/ xor $wgp =~ /^(Sub)?IFD\d*$/) and $ti->{'Writable'} || $ti->{'WriteGroup'} and not $ifd =~ /^SRF\d+$/
428 2 57 0 $fmt and not $formatStr =~ /^$fmt$/
59 0 0 $fmt and not $formatStr =~ /^$fmt$/ and !($tagInfo && $tagInfo->{'IsOffset'}) || $Image::ExifTool::Exif::intFormat{$formatStr}
436 0 0 0 $wgp and $wgp ne $ifd
450 3 0 1 $ti->{'Format'} and $ti->{'Writable'}
0 0 1 $ti->{'Format'} and $ti->{'Writable'} and $Image::ExifTool::Exif::formatNumber{$ti->{'Format'}}
0 0 1 $ti->{'Format'} and $ti->{'Writable'} and $Image::ExifTool::Exif::formatNumber{$ti->{'Format'}} and $Image::ExifTool::Exif::formatNumber{$ti->{'Writable'}}
458 3 1 0 $tiCount > 0 and $count != $tiCount
483 5 0 0 $et->{'TIFF_TYPE'} eq "MRW" and $dirName eq "IFD0"
5 0 0 $et->{'TIFF_TYPE'} eq "MRW" and $dirName eq "IFD0" and $et->{'Model'} =~ /^DiMAGE A200/
496 0 2 4 defined $id2 and $offsetInfo->{$id2}
497 0 2 0 defined $id2 and $id2 == -1
559 0 0 0 $et->{'TAG_EXTRA'}{$key} and $et->{'TAG_EXTRA'}{$key}{'G3'}
606 0 0 0 $et->{'WrongFormat'} and $et->{'WrongFormat'}{"${grp}:$name"}
617 0 0 1 $extFileType and $extFileType ne $fileType
619 0 1 0 $normExt and $normExt ne $fileExt
636 1 0 0 $et->{'VALUE'}{$key} and $et->{'VALUE'}{$key} =~ /^\[minor\]/i

or 2 conditions

line l !l condition
541 1 0 $et->{'FILE_TYPE'} || ''
634 0 0 $et->{'DUPL_TAG'}{'Error'} || 0
0 0 $et->{'DUPL_TAG'}{'Warning'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
325 0 0 3 $Image::ExifTool::evalWarning || $@
326 0 0 3 $wrn or $err
333 0 67 2 $tagInfo->{'Table'}{'SHORT_NAME'} eq 'GPS::Main' || $tagInfo->{'Table'} eq \%Image::ExifTool::Exif::Main && $Image::ExifTool::Validate::exifSpec{$tagInfo->{'TagID'}}
357 0 15 0 $a[$i] eq " " or $a[$i] >= $validDateField[$i][1] and $a[$i] <= $validDateField[$i][2]
375 0 0 0 $val =~ /^\d{4}$/ or $val =~ /^\d{4}:(\d{2})$/
0 0 0 $val =~ /^\d{4}$/ or $val =~ /^\d{4}:(\d{2})$/ or $val =~ /^\d{4}:(\d{2}):(\d{2})$/
0 0 0 $val =~ /^\d{4}$/ or $val =~ /^\d{4}:(\d{2})$/ or $val =~ /^\d{4}:(\d{2}):(\d{2})$/ or $val =~ /^\d{4}:(\d{2}):(\d{2}) (\d{2}):(\d{2})()(Z|[-+](\d{2}):(\d{2}))?$/
0 0 0 $val =~ /^\d{4}$/ or $val =~ /^\d{4}:(\d{2})$/ or $val =~ /^\d{4}:(\d{2}):(\d{2})$/ or $val =~ /^\d{4}:(\d{2}):(\d{2}) (\d{2}):(\d{2})()(Z|[-+](\d{2}):(\d{2}))?$/ or $val =~ /^\d{4}:(\d{2}):(\d{2}) (\d{2}):(\d{2}):(\d{2})(Z|[-+](\d{2}):(\d{2}))?$/
0 0 0 $val =~ /^\d{4}$/ or $val =~ /^\d{4}:(\d{2})$/ or $val =~ /^\d{4}:(\d{2}):(\d{2})$/ or $val =~ /^\d{4}:(\d{2}):(\d{2}) (\d{2}):(\d{2})()(Z|[-+](\d{2}):(\d{2}))?$/ or $val =~ /^\d{4}:(\d{2}):(\d{2}) (\d{2}):(\d{2}):(\d{2})(Z|[-+](\d{2}):(\d{2}))?$/ or $val =~ /^\d{4}:(\d{2}):(\d{2}) (\d{2}):(\d{2}):(\d{2})\.?\d*(Z|[-+](\d{2}):(\d{2}))?$/
386 0 0 0 $a[$i] eq "" or $a[$i] >= $validDateField[$i][1] and $a[$i] <= $validDateField[$i][2]
412 60 1 0 $tagInfo || $tagTablePtr->{$tag}
414 30 31 0 $stdFormat{$ifd} || $stdFormat{'IFD'}
415 1 0 2 $Image::ExifTool::Validate::exifSpec{$tag} || $stdFmt->{$tag} || $tag >= 50706 && $tag <= 51125 && !defined($stdFmt->{$tag})
0 0 61 defined $stdFmt->{'All'} or $tagTablePtr eq \%Image::ExifTool::Exif::Main and $Image::ExifTool::Validate::exifSpec{$tag} || $stdFmt->{$tag} || $tag >= 50706 && $tag <= 51125 && !defined($stdFmt->{$tag})
0 0 2 defined $stdFmt->{'All'} or $tagTablePtr eq \%Image::ExifTool::Exif::Main and $Image::ExifTool::Validate::exifSpec{$tag} || $stdFmt->{$tag} || $tag >= 50706 && $tag <= 51125 && !defined($stdFmt->{$tag}) or $tagTablePtr->{'SHORT_NAME'} eq "GPS::Main"
420 28 31 0 $ti->{'WriteGroup'} || $tagTablePtr->{'WRITE_GROUP'}
421 0 0 0 $ti->{'Writable'} || $ti->{'WriteGroup'}
427 17 40 2 $stdFmt->{$tag} || $ti->{'Writable'}
428 0 0 0 !($tagInfo && $tagInfo->{'IsOffset'}) || $Image::ExifTool::Exif::intFormat{$formatStr}
434 0 0 0 $ti->{'Writable'} or $ti->{'WriteGroup'}
435 0 0 0 $ti->{'WriteGroup'} || $tagTablePtr->{'WRITE_GROUP'}
443 0 0 0 $tagTablePtr eq \%Image::ExifTool::Exif::Main or $tagInfo->{'Unknown'}
497 0 0 2 $offsets->[0]{'NotRealPair'} or defined $id2 and $id2 == -1
567 0 0 0 not defined $chk->{$tag} or $chk->{$tag} == 1
0 0 0 not defined $chk->{$tag} or $chk->{$tag} == 1 or $ver >= $chk->{$tag}
621 0 0 0 ref $lkup or $lkup ne $normExt

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
421 9 0 0 0 $ifd =~ /^(Sub|Profile)?IFD\d*$/ xor $wgp =~ /^(Sub)?IFD\d*$/