Condition Coverage

blib/lib/Image/ExifTool/Jpeg2000.pm
Criterion Covered Total %
condition 90 199 45.2


and 3 conditions

line !l l&&!r l&&r condition
918 0 2 0 $et->{'IsJXL'} and $compress
920 0 0 2 defined $newdir and length $newdir
923 0 2 0 $et->{'IsJXL'} and $compress
959 0 0 2 defined $newdir and length $newdir
1032 124 20 0 $dirName eq "JUMBF" and $et->{'REQ_TAG_LOOKUP'}{'jumbf'}
20 0 0 $dirName eq "JUMBF" and $et->{'REQ_TAG_LOOKUP'}{'jumbf'} and not $dirInfo->{'NoBlockSave'}
1086 336 10 0 $outfile and $boxID eq "ftbl"
1091 344 1 1 $doColour and $boxID eq "colr"
1131 0 0 0 $hash and $isImageData{$boxID}
1146 0 0 0 $hash and $isImageData{$boxID}
1164 38 0 0 $hash and $isImageData{$boxID}
1176 0 333 12 defined $tagInfo and not $tagInfo
1182 336 0 9 $outfile and $tagInfo
1183 7 2 0 $boxID eq "uuid" and $et->{'DEL_GROUP'}{'*'}
1206 0 163 180 $tagInfo and $et->{'JUMBFLabel'}
163 120 60 $tagInfo and $et->{'JUMBFLabel'} and !$tagInfo->{'SubDirectory'} || $tagInfo->{'BlockExtract'}
1223 4 0 2 $tagInfo->{'Format'} and not $outfile
1261 5 0 0 $fakeID eq "xml " and $et->{'IsJXL'}
4 0 1 $boxID eq "jp2h" and $et->{'EDIT_DIRS'}{'jp2h'}
1266 2 0 0 $compress and $et->{'IsJXL'}
1268 0 2 0 defined $newdir and not length $newdir
1270 0 2 0 defined $newdir and $et->{'IsJXL'}
2 0 0 defined $newdir and $et->{'IsJXL'} and defined $compress
2 0 0 defined $newdir and $et->{'IsJXL'} and defined $compress and $fakeID eq 'Exif' || $fakeID eq 'xml '
1273 0 0 0 $compress and $boxID ne "brob"
0 0 0 not $compress and $boxID eq "brob"
1319 5 0 1 $doColour and $boxID eq "ihdr"
1326 326 5 0 defined $uuid and $uuid eq 0
1342 2 0 0 defined $rational and defined $key
1357 149 2 1 $outfile and not $raf
1413 2 0 0 $isWriting and not eval { do { require IO::Compress::Brotli } }
1441 0 0 0 defined $dat and length $dat
1452 0 0 0 defined $compress and not $compress
1523 0 0 0 $raf->Read($hdr, 20) == 20 and $raf->Seek(0, 0)
1580 0 0 5 $raf->Read($buff, 12) == 12 and $buff =~ /^.{4}ftyp(.{4})/s
1629 1 0 0 $et->{'ImageDataHash'} and $raf->Seek(0, 0)
1641 2 0 1 $outfile and $success > 0
2 0 1 $outfile and $success > 0 and $et->{'IsJXL'} == 2

or 2 conditions

line l !l condition
977 1 0 $et->GetNewValue('Jpeg2000:ColorSpecPrecedence') || 0
978 0 1 $et->GetNewValue('Jpeg2000:ColorSpecApproximation') || 0
1021 139 13 $dirInfo->{'DataPos'} || 0
1022 144 8 $dirInfo->{'DirLen'} || 0
1023 120 32 $dirInfo->{'DirStart'} || 0
1024 124 28 $dirInfo->{'Base'} || 0
1026 151 1 $dirInfo->{'DirName'} || ''
1207 0 60 $tagInfo->{'JUMBF_Suffix'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
892 1 0 0 $tagInfo->{'List'} or $et->IsOverwriting($nvHash) > 0
906 1 1 11 $dirName eq "xml " or $dirName eq "Exif"
928 0 0 0 $@ or not $compressed
952 0 2 0 $subdir->{'DirName'} || $dirName
993 0 0 0 $meth eq 2 or $meth eq 3
1033 0 0 0 $dirStart or $dirLen ne length $$dataPt
1052 0 0 1 defined $et->GetNewValue("ColorSpecMethod") or $et->GetNewValue("ICC_Profile")
0 1 0 defined $et->GetNewValue("ColorSpecMethod") or $et->GetNewValue("ICC_Profile") or defined $et->GetNewValue("ColorSpecPrecedence")
1 0 0 defined $et->GetNewValue("ColorSpecMethod") or $et->GetNewValue("ICC_Profile") or defined $et->GetNewValue("ColorSpecPrecedence") or defined $et->GetNewValue("ColorSpace")
1 0 0 defined $et->GetNewValue("ColorSpecMethod") or $et->GetNewValue("ICC_Profile") or defined $et->GetNewValue("ColorSpecPrecedence") or defined $et->GetNewValue("ColorSpace") or defined $et->GetNewValue("ColorSpecApproximation")
0 0 0 defined $et->GetNewValue("ColorSpecMethod") or $et->GetNewValue("ICC_Profile") or defined $et->GetNewValue("ColorSpecPrecedence") or defined $et->GetNewValue("ColorSpace") or defined $et->GetNewValue("ColorSpecApproximation") or defined $et->GetNewValue("ColorSpecData")
1073 2 0 0 &CreateNewBoxes($et, $outfile) or $err = 1
1143 345 0 0 defined $tagInfo or $verbose
1206 0 60 120 !$tagInfo->{'SubDirectory'} || $tagInfo->{'BlockExtract'}
1244 5 332 0 $subdir->{'DirName'} || $tagInfo->{'Name'}
1250 333 4 0 &GetTagTable($subdir->{'TagTable'}) || $tagTablePtr
1261 1 0 5 $uuid or $fakeID eq "Exif"
1 0 5 $uuid or $fakeID eq "Exif" or $fakeID eq "xml " and $et->{'IsJXL'}
0 1 4 $uuid or $fakeID eq "Exif" or $fakeID eq "xml " and $et->{'IsJXL'} or $boxID eq "jp2h" and $et->{'EDIT_DIRS'}{'jp2h'}
1270 0 0 0 $fakeID eq 'Exif' || $fakeID eq 'xml '
1279 0 0 0 $@ or not $compressed
1548 4 0 4 $hdr eq "\0\0\0\fjP \r\n\207\n" or $hdr eq "\0\0\0\fjP\32\32\r\n\207\n"
4 3 1 $hdr eq "\0\0\0\fjP \r\n\207\n" or $hdr eq "\0\0\0\fjP\32\32\r\n\207\n" or $et->{'IsJXL'}