Condition Coverage

blib/lib/Image/ExifTool/QuickTime.pm
Criterion Covered Total %
condition 172 368 46.7


and 3 conditions

line !l l&&!r l&&r condition
8019 4 1 0 $a[0] == 0 and $a[1] == 0
8067 0 0 2 $a[6] == 0 and $a[7] == 0
8070 1 0 1 $w and $h
8099 0 0 21 $num and $dur
0 0 21 $num and $dur and $et->{'MediaTS'}
8219 1 9 0 $lang eq 'und' || $lang eq 'eng' and not $noDef
8235 5 1 0 $ctry and $ctry <= 255
8236 0 6 0 $lang and $lang <= 255
8243 0 0 1 $ctry and $ctry =~ /^[A-Z]{2}$/
8315 22 0 0 $n and $_[1]
8316 0 0 0 $n > 2 and $_[1] & 1
8568 42 0 3 $items and $raf
8580 0 0 0 $item->{'Extents'} and @{$item->{'Extents'};}
8591 11 0 0 $warn and $name
8593 0 0 11 $item->{'Extents'} and @{$item->{'Extents'};}
8611 0 0 0 $more > 0 and $n
8640 2 0 2 $name eq "EXIF" and length $buff >= 4
8676 0 0 4 defined $primary and $item->{'RefersTo'}
0 4 0 defined $primary and $item->{'RefersTo'} and not $item->{'RefersTo'}{$primary}
8771 0 0 0 $enc == 0 and $tagInfo->{'Unknown'}
8808 38 0 0 $err and $et->{'HandlerType'}
9079 9 0 11 $tag eq "ftyp" and $size >= 12
9087 0 0 11 $ftypLookup{$type} and $ftypLookup{$type} =~ /\(\.(\w+)/
9121 1253 0 0 defined $atomCount and --$atomCount < 0
9166 0 0 0 $et->{'ValidatePath'}{$path} and not $dupTagOK{$tag}
0 0 0 $et->{'ValidatePath'}{$path} and not $dupTagOK{$tag} and not $dupDirOK{$dirID}
9174 1176 77 0 $isUserData and $et->{'SET_GROUP1'}
9178 0 0 0 not $tagTablePtr->{$tag} and $tagInfo
9190 517 632 104 $eeBox{$handlerType} and $eeBox{$handlerType}{$tag}
825 324 0 $ee and $ee > 1
1149 0 0 $ee and $ee > 1 and $eeBox2{$handlerType}
0 0 0 $ee and $ee > 1 and $eeBox2{$handlerType} and $eeBox2{$handlerType}{$tag}
9191 36 0 0 $handlerType ne "vide" and not $et->{'OPTIONS'}{'Validate'}
9217 1152 101 0 not defined $tagInfo and $et->{'OPTIONS'}{'Unknown'} || $verbose || $tag =~ /^\xa9/
9255 0 0 0 $tagInfo and not $tagInfo->{'Unknown'}
0 0 0 $tagInfo and not $tagInfo->{'Unknown'} and not $eeTag
9264 88 0 1165 defined $tagInfo and not $ignore
9275 6 0 0 not $dontInherit{$tag} and !$item->{'RefersTo'} || $item->{'RefersTo'}{$primary}
9293 3 6 3 not defined $docNum and defined $lowest
9310 1005 0 160 $dirInfo->{'HasData'} && $val =~ /\0...data\0/s
9311 1165 0 0 $verbose and not $hasData
9313 0 0 0 $tagInfo and $tagInfo->{'Format'}
9336 0 0 0 $to[$i - 1] =~ /(\d+)$/ and $to[$i] == $1 + 1
9347 0 12 56 $tagInfo and $tagInfo->{'Unknown'}
12 28 28 $tagInfo and $tagInfo->{'Unknown'} and not $unkOpt
9351 28 1128 9 $tagInfo and $tagInfo->{'Triplet'}
9352 6 0 3 $tag eq "data" and $triplet{'mean'}
0 0 3 $tag eq "data" and $triplet{'mean'} and $triplet{'name'}
9408 668 0 6 $subdir->{'ByteOrder'} and $subdir->{'ByteOrder'} =~ /^Little/
9412 0 0 674 $tagInfo->{'SubDirectory'} and $tagInfo->{'SubDirectory'}{'TagTable'}
0 636 38 $tagInfo->{'SubDirectory'} and $tagInfo->{'SubDirectory'}{'TagTable'} and $tagInfo->{'SubDirectory'}{'TagTable'} eq "Image::ExifTool::QuickTime::Track"
9424 671 0 3 $tag eq "ipco" and not $et->{'IsItemProperty'}
9449 0 0 161 $type eq "data" and $len >= 16
9504 3 122 22 $tagInfo->{'Groups'} && $tagInfo->{'Groups'}{'1'} && $tagInfo->{'Groups'}{'1'} eq 'Keys'
9522 94 0 4 $tagInfo->{'IText'} and $tagInfo->{'IText'} >= 6
9542 49 0 0 not $len and $pos
9545 0 0 49 $lang < 1024 || $lang == 32767 and not $str =~ /^\xfe\xff/
9572 47 1 1 $tagInfo->{'IText'} and $tagInfo->{'IText'} > 6
9594 45 48 158 defined $key and !$format || $format =~ /^string/
48 134 24 defined $key and !$format || $format =~ /^string/ and not $tagInfo->{'Unknown'}
182 0 24 defined $key and !$format || $format =~ /^string/ and not $tagInfo->{'Unknown'} and not $tagInfo->{'ValueConv'}
134 4 20 defined $key and !$format || $format =~ /^string/ and not $tagInfo->{'Unknown'} and not $tagInfo->{'ValueConv'} and not $tagInfo->{'Binary'}
4 0 20 defined $key and !$format || $format =~ /^string/ and not $tagInfo->{'Unknown'} and not $tagInfo->{'ValueConv'} and not $tagInfo->{'Binary'} and defined $et->{'VALUE'}{$key}
4 0 20 defined $key and !$format || $format =~ /^string/ and not $tagInfo->{'Unknown'} and not $tagInfo->{'ValueConv'} and not $tagInfo->{'Binary'} and defined $et->{'VALUE'}{$key} and not ref $val
9599 4 0 16 not ref $$vp and length $$vp <= 65536
4 16 0 not ref $$vp and length $$vp <= 65536 and $$vp =~ /[\x80-\xff]/
9614 6 82 0 $size and !$raf->Seek($size - 1, 1) || $raf->Read($buff, 1) != 1
9621 66 824 363 $dirEnd and $dataPos >= $dirEnd
9627 363 0 20 $topLevel and $et->{'VALUE'}{'FileType'}
0 20 0 $topLevel and $et->{'VALUE'}{'FileType'} and $et->{'VALUE'}{'FileType'} eq "MP4"
20 0 0 $topLevel and $et->{'VALUE'}{'FileType'} and $et->{'VALUE'}{'FileType'} eq "MP4" and $et->{'save_ftyp'}
0 0 0 $topLevel and $et->{'VALUE'}{'FileType'} and $et->{'VALUE'}{'FileType'} eq "MP4" and $et->{'save_ftyp'} and $et->{'HasHandler'}
0 0 0 $topLevel and $et->{'VALUE'}{'FileType'} and $et->{'VALUE'}{'FileType'} eq "MP4" and $et->{'save_ftyp'} and $et->{'HasHandler'} and $et->{'save_ftyp'} =~ /^(iso|dash)/
0 0 0 $topLevel and $et->{'VALUE'}{'FileType'} and $et->{'VALUE'}{'FileType'} eq "MP4" and $et->{'save_ftyp'} and $et->{'HasHandler'} and $et->{'save_ftyp'} =~ /^(iso|dash)/ and $et->{'HasHandler'}{'soun'}
0 0 0 $topLevel and $et->{'VALUE'}{'FileType'} and $et->{'VALUE'}{'FileType'} eq "MP4" and $et->{'save_ftyp'} and $et->{'HasHandler'} and $et->{'save_ftyp'} =~ /^(iso|dash)/ and $et->{'HasHandler'}{'soun'} and not $et->{'HasHandler'}{'vide'}
9635 363 19 1 $doDefaultLang and $et->{'QTLang'}
9655 249 130 4 $ee and $topLevel

or 2 conditions

line l !l condition
8278 0 0 $default || 0
8366 0 6 $et->{'ItemInfo'} || ($et->{'ItemInfo'} = {})
8462 20 0 $et->{'ItemInfo'} || ($et->{'ItemInfo'} = {})
8498 0 0 $items->{$id}{'Type'} || ''
0 0 $items->{$id}{'Name'} || ''
0 0 $items->{$id}{'ContentType'} || ''
8513 6 0 $et->{'ItemInfo'} || ($et->{'ItemInfo'} = {})
8576 8 0 $item->{'ContentType'} || $item->{'Type'} || (next)
8586 5 6 {'Exif', 'EXIF', 'application/rdf+xml', 'XMP'}->{$type} || ''
8601 6 5 $item->{'BaseOffset'} || 0
8792 0 38 $dirInfo->{'DirStart'} || 0
8809 0 0 $et->{'SET_GROUP1'} || $dirInfo->{'Parent'} || 'unknown'
8824 38 0 $dirInfo->{'DirStart'} || 0
9041 363 20 $dirInfo->{'Base'} || 0
9042 363 20 $dirInfo->{'DirID'} || ''
9058 94 269 $dirInfo->{'DirStart'} || 0
9099 11 0 $mimeLookup{$fileType} || 'video/mp4'
9269 12 0 $et->{'PrimaryItem'} || 0
9388 84 590 $subdir->{'Start'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
8219 9 0 1 $lang eq 'und' || $lang eq 'eng'
8393 0 0 20 $ver == 1 or $ver == 2
8407 0 0 20 $ver == 1 or $ver == 2
8468 0 0 20 $ver == 0 or $ver == 1
8593 11 0 0 $item->{'Extents'} and @{$item->{'Extents'};} or $warn
8718 0 0 12 $flags == 21 or $flags == 22
8749 0 0 0 $size < 10 or $size + $pos > $dirLen
8793 38 0 0 $dirInfo->{'DirLen'} || length($$dataPt) - $pos
8825 38 0 0 $dirInfo->{'DirLen'} || length($$dataPt) - $dirStart
8842 4 54 20 $size < 8 or $size + $try > $end - 8
8870 0 0 0 $et->{'OPTIONS'}{'Unknown'} || $et->{'OPTIONS'}{'Verbose'}
8939 0 0 22 $len < 8 or $pos + $len > $dirLen
8968 0 0 0 $tag =~ /^[-\w. ]+$/ or $tag =~ /\w{4}/
8982 30 36 0 $newInfo->{'Groups'}{$_} or $newInfo->{'Groups'}{$_} = $tagTablePtr->{'GROUPS'}{$_}
9148 0 0 4 $hi or $lo > 2147483647
9193 68 0 0 $tag ne "gps " or $eeBox{$handlerType}{$tag} eq $dirID
9217 13 0 88 $et->{'OPTIONS'}{'Unknown'} || $verbose || $tag =~ /^\xa9/
9275 0 0 0 !$item->{'RefersTo'} || $item->{'RefersTo'}{$primary}
6 0 6 $id == $primary or not $dontInherit{$tag} and !$item->{'RefersTo'} || $item->{'RefersTo'}{$primary}
3 0 0 not defined $lowest or $lowest > $id
9286 3 0 0 not defined $docNum or $docNum > $item->{'DocNum'}
9371 0 0 3 $tagInfo->{'Format'} or $tagInfo->{'SubDirectory'}
9387 47 0 253 $tag =~ /^\xa9/ or $tagInfo->{'IText'}
9404 175 499 0 $subdir->{'DirName'} || $tagInfo->{'Name'}
9421 54 602 18 $proc or $subTable->{'PROCESS_PROC'}
9446 0 0 161 $pos + $len > $size or not $len
9480 1 0 160 $ctry or $lang
9538 0 0 0 $pos + $len > $size or $len < 0
9545 49 0 0 $lang < 1024 || $lang == 32767
9578 0 49 0 $langInfo || $tagInfo
9594 158 0 48 !$format || $format =~ /^string/
9614 0 0 82 !$raf->Seek($size - 1, 1) || $raf->Read($buff, 1) != 1
9653 20 25 338 $topLevel or $dirID eq "meta"