Branch Coverage

blib/lib/Image/ExifTool/MPEG.pm
Criterion Covered Total %
branch 10 92 10.8


line true false branch
446 4 11 unless $tag =~ /^Bit(\d{2})-?(\d{2})?/
472 8 1 unless $$buffPt =~ /(\xff.{3})/gs
474 0 1 unless (($word & 4292870144) == 4292870144)
479 0 1 if (($word & 1572864) == 524288 or ($word & 393216) == 0 or ($word & 61440) == 0 or ($word & 61440) == 61440 or ($word & 3072) == 3072 or ($word & 3) == 2 or $mp3 and ($word & 393216) != 131072)
488 0 0 unless $ext eq "MP3"
505 0 1 $m == 3 ? :
0 0 $m == 3 ? :
1 0 $v == 3 ? :
506 0 1 if $pos + 8 > $len
508 1 0 unless $buff =~ /^(Xing|Info)/
514 0 0 if ($flags & 1)
515 0 0 if $pos + 4 > $len
516 0 0 if $isVBR
519 0 0 if ($flags & 2)
520 0 0 if $pos + 4 > $len
521 0 0 if $isVBR
524 0 0 if ($flags & 4)
525 0 0 if $pos + 100 > $len
529 0 0 if ($flags & 8)
530 0 0 if $pos + 4 > $len
532 0 0 if $isVBR
536 0 0 if ($flags & 16) { }
0 0 elsif ($pos + 4 <= $len) { }
537 0 0 if $pos + 348 > $len
540 0 0 unless ($lib eq "LAME" or $lib eq "GOGO")
543 0 0 if (index($$buffPt, 'RCA mp3PRO Encoder') >= 0) { }
0 0 elsif (($n = index($$buffPt, 'THOMSON mp3PRO Encoder')) >= 0) { }
0 0 elsif (index($$buffPt, 'MPGE') >= 0) { }
548 0 0 if length($$buffPt) - $n >= 6
559 0 0 if $lameLen < 9
561 0 0 if ($enc ge 'LAME3.90') { }
563 0 0 if ($vbrScale <= 100)
591 0 0 unless length $$buffPt >= 4
594 0 0 if (($w1 & 240) == 0 or ($w1 & 240) == 240 or ($w1 & 15) == 0 or ($w1 & 15) > 8)
602 0 0 unless $et->{'VALUE'}{'FileType'}
638 0 0 $1 eq "\263" ? :
639 0 0 unless ($didHdr)
644 0 0 if &ParseMPEGAudio($et, \$buff)
647 0 0 if $found{$type}
649 0 0 if $len < 4
650 0 0 if $len > 256
653 0 0 if (&{$proc{$type};}($et, \$dat))
657 0 0 if scalar keys %found == 2
673 0 0 unless $raf->Read($buff, 4) == 4
674 0 0 unless $buff =~ /^\0\0\x01[\xb0-\xbf]/
678 0 0 unless $raf->Read($buff, 262144)