Branch Coverage

blib/lib/Image/ExifTool/Matroska.pm
Criterion Covered Total %
branch 42 92 45.6


line true false branch
692 1 131 if $_[1] >= length $_[0]
695 0 131 unless ($val)
696 0 0 if $_[1] >= length $_[0]
698 0 0 unless $val
708 0 131 if $_[1] + $num > length $_[0]
711 67 0 if $b != 255
715 0 131 $unknown ? :
728 0 1 unless $raf->Read($buff, 4) == 4
729 0 1 unless $buff =~ /^\x1a\x45\xdf\xa3/
732 0 1 unless $raf->Read($buff, 65532)
738 0 1 unless $hlen and $hlen > 0
739 0 1 if $pos + $hlen > $dataLen
756 2 9 if $trackIndent and $trackIndent eq $et->{'INDENT'}
761 0 66 if ($pos + 24 > $dataLen and $raf->Read($buf2, 65536))
769 1 65 unless defined $tag and $tag >= 0
771 0 65 unless defined $size
773 0 65 if $size < 0
774 0 65 if (@dirEnd and $pos + $dataPos + $size > $dirEnd[-1][0])
777 0 0 if ($pos < 0 or $pos > $dataLen)
782 0 0 unless $raf->Seek($dataPos, 0)
788 12 53 if ($tagInfo and $tagInfo->{'SubDirectory'})
790 0 12 if $tagInfo->{'Name'} eq "Cluster" and not $processAll
794 0 12 if ($tagInfo->{'Name'} eq "ChapterAtom")
800 0 53 if $unknownSize
801 0 53 if ($pos + $size > $dataLen)
805 0 0 if (not $tagInfo or $more > 10000000) { }
807 0 0 if $more >= 2147483648 and not $et->Options("LargeFileSupport")
808 0 0 unless $raf->Seek($more, 1)
817 0 0 if ($raf->Read($buf2, $more))
824 0 0 if $pos + $size > $dataLen
827 0 53 unless ($tagInfo)
833 47 6 if ($tagInfo->{'Format'})
835 7 40 if ($fmt eq 'string' or $fmt eq 'utf8') { }
4 36 elsif ($fmt eq 'float') { }
837 2 5 if $fmt eq "utf8"
839 4 0 if ($size == 4) { }
0 0 elsif ($size == 8) { }
849 1 35 if ($fmt eq 'signed' or $fmt eq 'date') { }
856 0 1 if $vals[0] & 128
858 1 0 if ($fmt eq "date")
871 2 45 if ($tagInfo->{'Name'} eq "TrackNumber")
882 0 53 if ($tagInfo->{'NoSave'}) { }
883 0 0 if $verbose
892 0 0 unless ($trackTypes{'1'} or $trackTypes{'3'})
893 0 0 if ($trackTypes{'2'}) { }
0 0 elsif ($trackTypes{'17'}) { }