Branch Coverage

blib/lib/Image/ExifTool/Matroska.pm
Criterion Covered Total %
branch 44 98 44.9


line true false branch
695 1 131 if $_[1] >= length $_[0]
698 0 131 unless ($val)
699 0 0 if $_[1] >= length $_[0]
701 0 0 unless $val
711 0 131 if $_[1] + $num > length $_[0]
714 67 0 if $b != 255
718 0 131 $unknown ? :
731 0 1 unless $raf->Read($buff, 4) == 4
732 0 1 unless $buff =~ /^\x1a\x45\xdf\xa3/
735 0 1 unless $raf->Read($buff, 65532)
741 0 1 unless $hlen and $hlen > 0
742 0 1 if $pos + $hlen > $dataLen
749 0 1 $verbose || $et->Options('Unknown') > 1 ? :
750 0 1 if $et->Options("ExtractEmbedded")
760 2 9 if $trackIndent and $trackIndent eq $et->{'INDENT'}
765 0 66 if ($pos + 24 > $dataLen and $raf->Read($buf2, 65536))
773 1 65 unless defined $tag and $tag >= 0
775 0 65 unless defined $size
777 0 65 if $size < 0
778 0 65 if (@dirEnd and $pos + $dataPos + $size > $dirEnd[-1][0])
781 0 0 if ($pos < 0 or $pos > $dataLen)
786 0 0 unless $raf->Seek($dataPos, 0)
792 12 53 if ($tagInfo and $tagInfo->{'SubDirectory'})
794 0 12 if ($tagInfo->{'Name'} eq 'Cluster' and $processAll < 2) { }
795 0 0 unless $processAll
801 0 12 if ($tagInfo->{'Name'} eq "ChapterAtom")
808 0 53 if $unknownSize
809 0 53 if ($pos + $size > $dataLen)
813 0 0 if (not $tagInfo or $more > 10000000) { }
815 0 0 if $more >= 2147483648 and not $et->Options("LargeFileSupport")
816 0 0 unless $raf->Seek($more, 1)
825 0 0 if ($raf->Read($buf2, $more))
832 0 0 if $pos + $size > $dataLen
835 0 53 unless ($tagInfo)
841 47 6 if ($tagInfo->{'Format'})
843 7 40 if ($fmt eq 'string' or $fmt eq 'utf8') { }
4 36 elsif ($fmt eq 'float') { }
845 2 5 if $fmt eq "utf8"
847 4 0 if ($size == 4) { }
0 0 elsif ($size == 8) { }
857 1 35 if ($fmt eq 'signed' or $fmt eq 'date') { }
864 0 1 if $vals[0] & 128
866 1 0 if ($fmt eq "date")
879 2 45 if ($tagInfo->{'Name'} eq "TrackNumber")
890 0 53 if ($tagInfo->{'NoSave'}) { }
891 0 0 if $verbose
900 0 0 unless ($trackTypes{'1'} or $trackTypes{'3'})
901 0 0 if ($trackTypes{'2'}) { }
0 0 elsif ($trackTypes{'17'}) { }