Condition Coverage

blib/lib/Image/ExifTool/PNG.pm
Criterion Covered Total %
condition 96 233 41.2


and 3 conditions

line !l l&&!r l&&r condition
851 0 0 0 $et->Options("StrictDate") and not $et->{'TAGS_FROM_FILE'}
923 100 0 0 not $tagInfo and $lang
932 98 0 2 $compressed and $compressed > 1
938 0 0 2 $inflate and $stat == Compress::Zlib::Z_STREAM_END()
954 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'}
958 2 0 0 $deflateErr and not $outBuff
964 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'}
974 64 0 0 $et->{'OPTIONS'}{'Validate'} and $tagInfo->{'NonStandard'}
981 60 4 0 $verbose and $et->{'INDENT'} ne " "
982 0 0 0 $wasCompressed and $verbose > 2
994 44 15 5 $outBuff and not $subTable->{'WRITE_PROC'}
1015 57 0 2 $wasCompressed and $processProc
57 1 1 $wasCompressed and $processProc and $processProc eq \&Image::ExifTool::PNG::ProcessPNG_Compressed
1017 44 5 10 $outBuff and not $processProc
49 5 5 $outBuff and not $processProc and $subTable ne \%Image::ExifTool::PNG::TextualData
1020 0 0 3 $tagName eq "XMP" and $$outBuff
1030 0 0 0 $dirName eq "EXIF" and $et->{'DEL_GROUP'}{'IFD0'}
1035 0 0 0 $dirName eq "EXIF" and $et->{'EDIT_DIRS'}{'IFD0'}
1046 15 0 8 $tagTablePtr->{'WRITABLE'} and not defined $writable
15 3 5 $tagTablePtr->{'WRITABLE'} and not defined $writable and not $tagInfo->{'SubDirectory'}
1085 13 4 6 defined $$outBuff and length $$outBuff
1109 0 0 0 $et->{'DEL_GROUP'}{'PNG'} and $tagTablePtr eq \%Image::ExifTool::PNG::TextualData
1142 26 0 0 $compressed and not defined $tagInfo->{'ValueConv'}
1202 0 1 0 $tagName eq "IPTC_Profile" and $buff =~ /^\x1c/
1218 0 0 0 $outBuff and not $editDirs->{'IFD0'}
1252 0 0 0 $outBuff and not $editDirs->{'IFD0'}
1271 1 0 0 $outBuff and defined $$outBuff
1 0 0 $outBuff and defined $$outBuff and length $$outBuff
1301 0 1 1 $tagInfo and $tagInfo->{'Name'} eq "ICC_Profile"
1304 0 0 1 length $tag and not $outBuff
1306 1 0 0 $outBuff and $$outBuff
1343 0 0 12 defined $dat and length $dat >= 4
1365 2 0 0 $outBuff && ($et->{'DEL_GROUP'}{'EXIF'} || $et->{'DEL_GROUP'}{'IFD0'})
1385 0 0 0 $del and lc $tag eq "zxif"
1424 0 0 12 $raf->Read($sig, 8) == 8 and $pngLookup{$sig}
1497 8 0 1 $datCount and $chunk ne $datChunk
1505 0 0 0 $hdrChunk eq "IHDR" and $chunk eq "CgBI"
1513 58 30 15 $outfile and $isDatChunk{$chunk} || $chunk eq $endChunk
30 10 5 $outfile and $isDatChunk{$chunk} || $chunk eq $endChunk and @txtOffset
1520 12 0 0 $fastScan and $fastScan >= 2
1570 5 0 0 $tot and $verbose
1576 59 15 0 $wasDat and $isTxtChunk{$chunk}
1607 0 0 79 $raf->Read($dbuf, $len) == $len and $raf->Read($cbuf, 4) == 4
1611 79 0 0 $hash and $datChunk
1612 44 0 28 $outfile and not $fastScan
1625 0 20 10 $outfile and $wasDat
1626 0 0 10 $isTxtChunk{$chunk} and not defined $doTxt
1640 64 0 0 not $tagTablePtr->{$chunk} and $Image::ExifTool::PNG::stdCase{lc $chunk}
1642 0 0 0 $outfile and $et->{'EDIT_DIRS'}{'IFD0'} || !($stdChunk =~ /^[ez]xif$/i)
1653 0 0 0 $mngTablePtr and $mngTablePtr->{$chunk}
1677 12 0 0 $wasTrailer and not $outfile
12 0 0 $wasTrailer and not $outfile and $raf->Seek(-8, 2)
0 0 0 $wasTrailer and not $outfile and $raf->Seek(-8, 2) and $raf->Read($dbuf, 8)
0 0 0 $wasTrailer and not $outfile and $raf->Seek(-8, 2) and $raf->Read($dbuf, 8) and $dbuf =~ /\0\0(QDIOBS|SEFT)$/
1683 7 5 0 $outfile and $err || !$wasEnd

or 2 conditions

line l !l condition
849 0 0 $sec || ':00'

or 3 conditions

line l !l&&r !l&&!r condition
851 0 0 0 $et->Options("StrictDate") and not $et->{'TAGS_FROM_FILE'} or $et->Options("Validate")
919 91 9 0 $et->GetTagInfo($tagTablePtr, $id) || $et->GetTagInfo($tagTablePtr, ucfirst $id)
924 0 0 0 $et->GetTagInfo($tagTablePtr, $tag) || $et->GetTagInfo($tagTablePtr, ucfirst $tag)
978 4 60 0 $subdir->{'DirName'} || $tagName
1030 0 0 0 $et->{'DEL_GROUP'}{$dirName} or $dirName eq "EXIF" and $et->{'DEL_GROUP'}{'IFD0'}
1035 0 0 0 $et->{'EDIT_DIRS'}{$dirName} or $dirName eq "EXIF" and $et->{'EDIT_DIRS'}{'IFD0'}
1046 0 15 8 $writable or $tagTablePtr->{'WRITABLE'} and not defined $writable and not $tagInfo->{'SubDirectory'}
1224 0 0 0 $et->{'DEL_GROUP'}{'EXIF'} or $et->{'DEL_GROUP'}{'IFD0'}
1255 0 0 0 $et->{'DEL_GROUP'}{'EXIF'} or $et->{'DEL_GROUP'}{'IFD0'}
1428 5 0 0 &Write($outfile, $sig) or $err = 1
1513 10 5 30 $isDatChunk{$chunk} || $chunk eq $endChunk
1533 5 5 30 $datChunk or $chunk eq $endChunk
1578 7 0 0 not $validate or $len > $chunkSizeLimit
1612 7 0 72 $verbose or $validate
7 63 9 $verbose or $validate or $outfile and not $fastScan
1621 5 0 0 &Write($outfile, $hbuf, $dbuf, $cbuf) or $err = 1
1642 0 0 0 $et->{'EDIT_DIRS'}{'IFD0'} || !($stdChunk =~ /^[ez]xif$/i)
1683 0 0 5 $err || !$wasEnd