Condition Coverage

blib/lib/Image/ExifTool/Jpeg2000.pm
Criterion Covered Total %
condition 76 130 58.4


and 3 conditions

line !l l&&!r l&&r condition
842 0 0 2 defined $newdir and length $newdir
864 0 0 2 defined $newdir and length $newdir
942 0 2 1 $dirInfo->{'DirName'} and $dirInfo->{'DirName'} eq "JP2Header"
975 325 1 1 $doColour and $boxID eq "colr"
1049 0 316 10 defined $tagInfo and not $tagInfo
1055 317 0 9 $outfile and $tagInfo
1056 7 2 0 $boxID eq "uuid" and $et->{'DEL_GROUP'}{'*'}
1079 0 153 171 $tagInfo and $et->{'JUMBFLabel'}
153 114 57 $tagInfo and $et->{'JUMBFLabel'} and !$tagInfo->{'SubDirectory'} || $tagInfo->{'BlockExtract'}
1096 4 0 1 $tagInfo->{'Format'} and not $outfile
1130 5 0 0 $boxID eq "xml " and $et->{'IsJXL'}
4 0 1 $boxID eq "jp2h" and $et->{'EDIT_DIRS'}{'jp2h'}
1134 0 2 0 defined $newdir and not length $newdir
1145 5 0 1 $doColour and $boxID eq "ihdr"
1152 308 5 0 defined $uuid and $uuid eq 0
1168 1 0 0 defined $rational and defined $key
1183 141 2 1 $outfile and not $raf
1295 0 0 4 $raf->Read($buff, 12) == 12 and $buff =~ /^.{4}ftyp(.{4})/s
1352 1 0 1 $outfile and $success > 0
1 0 1 $outfile and $success > 0 and $et->{'IsJXL'} == 2

or 2 conditions

line l !l condition
882 1 0 $et->GetNewValue('Jpeg2000:ColorSpecPrecedence') || 0
883 0 1 $et->GetNewValue('Jpeg2000:ColorSpecApproximation') || 0
926 133 11 $dirInfo->{'DataPos'} || 0
927 137 7 $dirInfo->{'DirLen'} || 0
928 114 30 $dirInfo->{'DirStart'} || 0
929 118 26 $dirInfo->{'Base'} || 0
962 2 0 &CreateNewBoxes($et, $outfile) or $err = 1
1080 0 57 $tagInfo->{'JUMBF_Suffix'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
816 1 0 0 $tagInfo->{'List'} or $et->IsOverwriting($nvHash) > 0
830 1 1 11 $dirName eq "xml " or $dirName eq "Exif"
857 0 2 0 $subdir->{'DirName'} || $dirName
898 0 0 0 $meth eq 2 or $meth eq 3
943 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")
1022 326 0 0 defined $tagInfo or $verbose
1079 0 57 114 !$tagInfo->{'SubDirectory'} || $tagInfo->{'BlockExtract'}
1117 5 314 0 $subdir->{'DirName'} || $tagInfo->{'Name'}
1123 315 4 0 &GetTagTable($subdir->{'TagTable'}) || $tagTablePtr
1130 1 0 5 $uuid or $boxID eq "Exif"
1 0 5 $uuid or $boxID eq "Exif" or $boxID eq "xml " and $et->{'IsJXL'}
0 1 4 $uuid or $boxID eq "Exif" or $boxID eq "xml " and $et->{'IsJXL'} or $boxID eq "jp2h" and $et->{'EDIT_DIRS'}{'jp2h'}
1263 4 0 3 $hdr eq "\0\0\0\fjP \r\n\207\n" or $hdr eq "\0\0\0\fjP\32\32\r\n\207\n"
4 2 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'}