Condition Coverage

blib/lib/Image/ExifTool/Validate.pm
Criterion Covered Total %
condition 59 181 32.6


and 3 conditions

line !l l&&!r l&&r condition
353 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'}}
357 0 18 0 $prt and $prt =~ /^Unknown \(/
373 0 0 0 $val ne " : : : : " and $val ne " "
377 0 0 15 $a[$i] >= $validDateField[$i][1] and $a[$i] <= $validDateField[$i][2]
406 0 0 0 $a[$i] >= $validDateField[$i][1] and $a[$i] <= $validDateField[$i][2]
428 61 2 0 not defined $tagInfo and $tagTablePtr->{$tag}
2 0 0 not defined $tagInfo and $tagTablePtr->{$tag} and ref $tagTablePtr->{$tag} eq "HASH"
431 0 0 2 $otherSpec{$et->{'FileType'}} && ($otherSpec{$et->{'FileType'}}{$tag} || $otherSpec{$et->{'FileType'}}{'All'})
435 0 61 0 $tagTablePtr eq \%Image::ExifTool::Exif::Main and $Image::ExifTool::Validate::exifSpec{$tag} || $stdFmt->{$tag} || $tag >= 50706 && $tag <= 52552 && !defined($stdFmt->{$tag})
0 0 2 $otherSpec{$et->{'FileType'}} && ($otherSpec{$et->{'FileType'}}{$tag} || $otherSpec{$et->{'FileType'}}{'All'})
441 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*$/ ^^ $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*$/ ^^ $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*$/ ^^ $wgp =~ /^(Sub)?IFD\d*$/ and $ti->{'Writable'} || $ti->{'WriteGroup'} and not $ifd =~ /^SRF\d+$/
448 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}
456 0 0 0 $wgp and $wgp ne $ifd
470 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'}}
478 3 1 0 $tiCount > 0 and $count != $tiCount
503 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/
516 0 2 4 defined $id2 and $offsetInfo->{$id2}
517 0 2 0 defined $id2 and $id2 == -1
626 0 0 0 $et->{'WrongFormat'} and $et->{'WrongFormat'}{"${grp}:$name"}
637 0 0 1 $extFileType and $extFileType ne $fileType
639 0 1 0 $normExt and $normExt ne $fileExt
656 1 0 0 $et->{'VALUE'}{$key} and $et->{'VALUE'}{$key} =~ /^\[minor\]/i

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
345 0 0 3 $Image::ExifTool::evalWarning || $@
346 0 0 3 $wrn or $err
353 0 67 2 $tagInfo->{'Table'}{'SHORT_NAME'} eq 'GPS::Main' || $tagInfo->{'Table'} eq \%Image::ExifTool::Exif::Main && $Image::ExifTool::Validate::exifSpec{$tagInfo->{'TagID'}}
377 0 15 0 $a[$i] eq " " or $a[$i] >= $validDateField[$i][1] and $a[$i] <= $validDateField[$i][2]
395 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}))?$/
406 0 0 0 $a[$i] eq "" or $a[$i] >= $validDateField[$i][1] and $a[$i] <= $validDateField[$i][2]
432 60 1 0 $tagInfo || $tagTablePtr->{$tag}
434 30 31 0 $stdFormat{$ifd} || $stdFormat{'IFD'}
435 1 0 2 $Image::ExifTool::Validate::exifSpec{$tag} || $stdFmt->{$tag} || $tag >= 50706 && $tag <= 52552 && !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 <= 52552 && !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 <= 52552 && !defined($stdFmt->{$tag}) or $tagTablePtr->{'SHORT_NAME'} eq "GPS::Main"
440 28 31 0 $ti->{'WriteGroup'} || $tagTablePtr->{'WRITE_GROUP'}
441 0 0 0 $ti->{'Writable'} || $ti->{'WriteGroup'}
447 19 38 2 $stdFmt->{$tag} || $ti->{'Writable'}
448 0 0 0 !($tagInfo && $tagInfo->{'IsOffset'}) || $Image::ExifTool::Exif::intFormat{$formatStr}
454 0 0 0 $ti->{'Writable'} or $ti->{'WriteGroup'}
455 0 0 0 $ti->{'WriteGroup'} || $tagTablePtr->{'WRITE_GROUP'}
463 0 0 0 $tagTablePtr eq \%Image::ExifTool::Exif::Main or $ti->{'Unknown'}
517 0 0 2 $offsets->[0]{'NotRealPair'} or defined $id2 and $id2 == -1
587 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}
641 0 0 0 ref $lkup or $lkup ne $normExt

xor 4 conditions

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