Condition Coverage

blib/lib/Image/ExifTool/PNG.pm
Criterion Covered Total %
condition 95 219 43.3


and 3 conditions

line !l l&&!r l&&r condition
732 0 0 0 $et->Options("StrictDate") and not $et->{'TAGS_FROM_FILE'}
804 100 0 0 not $tagInfo and $lang
813 98 0 2 $compressed and $compressed > 1
819 0 0 2 $inflate and $stat == Compress::Zlib::Z_STREAM_END()
835 2 0 0 $compressed and $verbose
2 0 0 $compressed and $verbose and $tagInfo
0 0 0 $compressed and $verbose and $tagInfo and $tagInfo->{'SubDirectory'}
839 2 0 0 $deflateErr and not $outBuff
845 66 0 34 $enc and not $compressed
0 22 12 $tagInfo && $tagInfo->{'SubDirectory'}
66 12 22 $enc and not $compressed and not $tagInfo && $tagInfo->{'SubDirectory'}
855 64 0 0 $et->{'OPTIONS'}{'Validate'} and $tagInfo->{'NonStandard'}
862 60 4 0 $verbose and $et->{'INDENT'} ne " "
863 0 0 0 $wasCompressed and $verbose > 2
875 44 15 5 $outBuff and not $subTable->{'WRITE_PROC'}
888 57 0 2 $wasCompressed and $processProc
57 1 1 $wasCompressed and $processProc and $processProc eq \&Image::ExifTool::PNG::ProcessPNG_Compressed
890 44 5 10 $outBuff and not $processProc
49 5 5 $outBuff and not $processProc and $subTable ne \%Image::ExifTool::PNG::TextualData
893 0 0 3 $tagName eq "XMP" and $$outBuff
903 0 0 0 $dirName eq "EXIF" and $et->{'DEL_GROUP'}{'IFD0'}
908 0 0 0 $dirName eq "EXIF" and $et->{'EDIT_DIRS'}{'IFD0'}
919 15 0 8 $tagTablePtr->{'WRITABLE'} and not defined $writable
15 3 5 $tagTablePtr->{'WRITABLE'} and not defined $writable and not $tagInfo->{'SubDirectory'}
958 13 4 6 defined $$outBuff and length $$outBuff
982 0 0 0 $et->{'DEL_GROUP'}{'PNG'} and $tagTablePtr eq \%Image::ExifTool::PNG::TextualData
1015 26 0 0 $compressed and not defined $tagInfo->{'ValueConv'}
1075 0 1 0 $tagName eq "IPTC_Profile" and $buff =~ /^\x1c/
1091 0 0 0 $outBuff and not $editDirs->{'IFD0'}
1125 0 0 0 $outBuff and not $editDirs->{'IFD0'}
1144 1 0 0 $outBuff and defined $$outBuff
1 0 0 $outBuff and defined $$outBuff and length $$outBuff
1174 0 1 1 $tagInfo and $tagInfo->{'Name'} eq "ICC_Profile"
1177 0 0 1 length $tag and not $outBuff
1179 1 0 0 $outBuff and $$outBuff
1216 0 0 12 defined $dat and length $dat >= 4
1238 2 0 0 $outBuff && ($et->{'DEL_GROUP'}{'EXIF'} || $et->{'DEL_GROUP'}{'IFD0'})
1258 0 0 0 $del and lc $tag eq "zxif"
1296 0 0 12 $raf->Read($sig, 8) == 8 and $pngLookup{$sig}
1368 8 0 1 $datCount and $chunk ne $datChunk
1375 0 0 0 $hdrChunk eq "IHDR" and $chunk eq "CgBI"
1383 58 30 15 $outfile and $isDatChunk{$chunk} || $chunk eq $endChunk
30 10 5 $outfile and $isDatChunk{$chunk} || $chunk eq $endChunk and @txtOffset
1390 12 0 0 $fastScan and $fastScan >= 2
1440 5 0 0 $tot and $verbose
1446 59 15 0 $wasDat and $isTxtChunk{$chunk}
1472 0 0 79 $raf->Read($dbuf, $len) == $len and $raf->Read($cbuf, 4) == 4
1476 44 0 28 $outfile and not $fastScan
1489 0 20 10 $outfile and $wasDat
1490 0 0 10 $isTxtChunk{$chunk} and not defined $doTxt
1504 64 0 0 not $tagTablePtr->{$chunk} and $Image::ExifTool::PNG::stdCase{lc $chunk}
1506 0 0 0 $outfile and $et->{'EDIT_DIRS'}{'IFD0'} || !($stdChunk =~ /^[ez]xif$/i)
1517 0 0 0 $mngTablePtr and $mngTablePtr->{$chunk}
1540 7 5 0 $outfile and $err || !$wasEnd

or 2 conditions

line l !l condition
730 0 0 $sec || ':00'
1300 5 0 &Write($outfile, $sig) or $err = 1
1485 5 0 &Write($outfile, $hbuf, $dbuf, $cbuf) or $err = 1

or 3 conditions

line l !l&&r !l&&!r condition
732 0 0 0 $et->Options("StrictDate") and not $et->{'TAGS_FROM_FILE'} or $et->Options("Validate")
800 91 9 0 $et->GetTagInfo($tagTablePtr, $id) || $et->GetTagInfo($tagTablePtr, ucfirst $id)
805 0 0 0 $et->GetTagInfo($tagTablePtr, $tag) || $et->GetTagInfo($tagTablePtr, ucfirst $tag)
859 4 60 0 $subdir->{'DirName'} || $tagName
876 4 55 0 $subdir->{'DirName'} || $tagName
903 0 0 0 $et->{'DEL_GROUP'}{$dirName} or $dirName eq "EXIF" and $et->{'DEL_GROUP'}{'IFD0'}
908 0 0 0 $et->{'EDIT_DIRS'}{$dirName} or $dirName eq "EXIF" and $et->{'EDIT_DIRS'}{'IFD0'}
919 0 15 8 $writable or $tagTablePtr->{'WRITABLE'} and not defined $writable and not $tagInfo->{'SubDirectory'}
1097 0 0 0 $et->{'DEL_GROUP'}{'EXIF'} or $et->{'DEL_GROUP'}{'IFD0'}
1128 0 0 0 $et->{'DEL_GROUP'}{'EXIF'} or $et->{'DEL_GROUP'}{'IFD0'}
1383 10 5 30 $isDatChunk{$chunk} || $chunk eq $endChunk
1403 5 5 30 $datChunk or $chunk eq $endChunk
1448 7 0 0 not $validate or $len > $chunkSizeLimit
1476 7 0 72 $verbose or $validate
7 63 9 $verbose or $validate or $outfile and not $fastScan
1506 0 0 0 $et->{'EDIT_DIRS'}{'IFD0'} || !($stdChunk =~ /^[ez]xif$/i)
1540 0 0 5 $err || !$wasEnd