Condition Coverage

blib/lib/Image/ExifTool/PNG.pm
Criterion Covered Total %
condition 96 222 43.2


and 3 conditions

line !l l&&!r l&&r condition
817 0 0 0 $et->Options("StrictDate") and not $et->{'TAGS_FROM_FILE'}
889 100 0 0 not $tagInfo and $lang
898 98 0 2 $compressed and $compressed > 1
904 0 0 2 $inflate and $stat == Compress::Zlib::Z_STREAM_END()
920 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'}
924 2 0 0 $deflateErr and not $outBuff
930 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'}
940 64 0 0 $et->{'OPTIONS'}{'Validate'} and $tagInfo->{'NonStandard'}
947 60 4 0 $verbose and $et->{'INDENT'} ne " "
948 0 0 0 $wasCompressed and $verbose > 2
960 44 15 5 $outBuff and not $subTable->{'WRITE_PROC'}
973 57 0 2 $wasCompressed and $processProc
57 1 1 $wasCompressed and $processProc and $processProc eq \&Image::ExifTool::PNG::ProcessPNG_Compressed
975 44 5 10 $outBuff and not $processProc
49 5 5 $outBuff and not $processProc and $subTable ne \%Image::ExifTool::PNG::TextualData
978 0 0 3 $tagName eq "XMP" and $$outBuff
988 0 0 0 $dirName eq "EXIF" and $et->{'DEL_GROUP'}{'IFD0'}
993 0 0 0 $dirName eq "EXIF" and $et->{'EDIT_DIRS'}{'IFD0'}
1004 15 0 8 $tagTablePtr->{'WRITABLE'} and not defined $writable
15 3 5 $tagTablePtr->{'WRITABLE'} and not defined $writable and not $tagInfo->{'SubDirectory'}
1043 13 4 6 defined $$outBuff and length $$outBuff
1067 0 0 0 $et->{'DEL_GROUP'}{'PNG'} and $tagTablePtr eq \%Image::ExifTool::PNG::TextualData
1100 26 0 0 $compressed and not defined $tagInfo->{'ValueConv'}
1160 0 1 0 $tagName eq "IPTC_Profile" and $buff =~ /^\x1c/
1176 0 0 0 $outBuff and not $editDirs->{'IFD0'}
1210 0 0 0 $outBuff and not $editDirs->{'IFD0'}
1229 1 0 0 $outBuff and defined $$outBuff
1 0 0 $outBuff and defined $$outBuff and length $$outBuff
1259 0 1 1 $tagInfo and $tagInfo->{'Name'} eq "ICC_Profile"
1262 0 0 1 length $tag and not $outBuff
1264 1 0 0 $outBuff and $$outBuff
1301 0 0 12 defined $dat and length $dat >= 4
1323 2 0 0 $outBuff && ($et->{'DEL_GROUP'}{'EXIF'} || $et->{'DEL_GROUP'}{'IFD0'})
1343 0 0 0 $del and lc $tag eq "zxif"
1382 0 0 12 $raf->Read($sig, 8) == 8 and $pngLookup{$sig}
1454 8 0 1 $datCount and $chunk ne $datChunk
1462 0 0 0 $hdrChunk eq "IHDR" and $chunk eq "CgBI"
1470 58 30 15 $outfile and $isDatChunk{$chunk} || $chunk eq $endChunk
30 10 5 $outfile and $isDatChunk{$chunk} || $chunk eq $endChunk and @txtOffset
1477 12 0 0 $fastScan and $fastScan >= 2
1527 5 0 0 $tot and $verbose
1533 59 15 0 $wasDat and $isTxtChunk{$chunk}
1564 0 0 79 $raf->Read($dbuf, $len) == $len and $raf->Read($cbuf, 4) == 4
1568 79 0 0 $md5 and $datChunk
1569 44 0 28 $outfile and not $fastScan
1582 0 20 10 $outfile and $wasDat
1583 0 0 10 $isTxtChunk{$chunk} and not defined $doTxt
1597 64 0 0 not $tagTablePtr->{$chunk} and $Image::ExifTool::PNG::stdCase{lc $chunk}
1599 0 0 0 $outfile and $et->{'EDIT_DIRS'}{'IFD0'} || !($stdChunk =~ /^[ez]xif$/i)
1610 0 0 0 $mngTablePtr and $mngTablePtr->{$chunk}
1633 7 5 0 $outfile and $err || !$wasEnd

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
817 0 0 0 $et->Options("StrictDate") and not $et->{'TAGS_FROM_FILE'} or $et->Options("Validate")
885 91 9 0 $et->GetTagInfo($tagTablePtr, $id) || $et->GetTagInfo($tagTablePtr, ucfirst $id)
890 0 0 0 $et->GetTagInfo($tagTablePtr, $tag) || $et->GetTagInfo($tagTablePtr, ucfirst $tag)
944 4 60 0 $subdir->{'DirName'} || $tagName
961 4 55 0 $subdir->{'DirName'} || $tagName
988 0 0 0 $et->{'DEL_GROUP'}{$dirName} or $dirName eq "EXIF" and $et->{'DEL_GROUP'}{'IFD0'}
993 0 0 0 $et->{'EDIT_DIRS'}{$dirName} or $dirName eq "EXIF" and $et->{'EDIT_DIRS'}{'IFD0'}
1004 0 15 8 $writable or $tagTablePtr->{'WRITABLE'} and not defined $writable and not $tagInfo->{'SubDirectory'}
1182 0 0 0 $et->{'DEL_GROUP'}{'EXIF'} or $et->{'DEL_GROUP'}{'IFD0'}
1213 0 0 0 $et->{'DEL_GROUP'}{'EXIF'} or $et->{'DEL_GROUP'}{'IFD0'}
1470 10 5 30 $isDatChunk{$chunk} || $chunk eq $endChunk
1490 5 5 30 $datChunk or $chunk eq $endChunk
1535 7 0 0 not $validate or $len > $chunkSizeLimit
1569 7 0 72 $verbose or $validate
7 63 9 $verbose or $validate or $outfile and not $fastScan
1599 0 0 0 $et->{'EDIT_DIRS'}{'IFD0'} || !($stdChunk =~ /^[ez]xif$/i)
1633 0 0 5 $err || !$wasEnd