Condition Coverage

blib/lib/Image/ExifTool/Jpeg2000.pm
Criterion Covered Total %
condition 74 128 57.8


and 3 conditions

line !l l&&!r l&&r condition
821 0 0 2 defined $newdir and length $newdir
843 0 0 2 defined $newdir and length $newdir
921 0 2 1 $dirInfo->{'DirName'} and $dirInfo->{'DirName'} eq "JP2Header"
954 325 1 1 $doColour and $boxID eq "colr"
1028 0 316 10 defined $tagInfo and not $tagInfo
1034 317 0 9 $outfile and $tagInfo
1035 7 2 0 $boxID eq "uuid" and $et->{'DEL_GROUP'}{'*'}
1058 0 153 171 $tagInfo and $et->{'JUMBFLabel'}
153 114 57 $tagInfo and $et->{'JUMBFLabel'} and !$tagInfo->{'SubDirectory'} || $tagInfo->{'BlockExtract'}
1075 4 0 1 $tagInfo->{'Format'} and not $outfile
1103 5 0 0 $boxID eq "xml " and $et->{'IsJXL'}
4 0 1 $boxID eq "jp2h" and $et->{'EDIT_DIRS'}{'jp2h'}
1107 0 2 0 defined $newdir and not length $newdir
1118 5 0 1 $doColour and $boxID eq "ihdr"
1125 308 5 0 defined $uuid and $uuid eq 0
1141 1 0 0 defined $rational and defined $key
1156 141 2 1 $outfile and not $raf
1268 0 0 4 $raf->Read($buff, 12) == 12 and $buff =~ /^.{4}ftyp(.{4})/s
1325 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
861 1 0 $et->GetNewValue('Jpeg2000:ColorSpecPrecedence') || 0
862 0 1 $et->GetNewValue('Jpeg2000:ColorSpecApproximation') || 0
906 137 7 $dirInfo->{'DirLen'} || 0
907 114 30 $dirInfo->{'DirStart'} || 0
908 118 26 $dirInfo->{'Base'} || 0
941 2 0 &CreateNewBoxes($et, $outfile) or $err = 1
1059 0 57 $tagInfo->{'JUMBF_Suffix'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
795 1 0 0 $tagInfo->{'List'} or $et->IsOverwriting($nvHash) > 0
809 1 1 12 $dirName eq "XML" or $dirName eq "Exif"
836 0 2 0 $subdir->{'DirName'} || $dirName
877 0 0 0 $meth eq 2 or $meth eq 3
922 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")
1001 326 0 0 defined $tagInfo or $verbose
1058 0 57 114 !$tagInfo->{'SubDirectory'} || $tagInfo->{'BlockExtract'}
1091 5 314 0 $subdir->{'DirName'} || $tagInfo->{'Name'}
1097 315 4 0 &GetTagTable($subdir->{'TagTable'}) || $tagTablePtr
1103 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'}
1236 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'}