Branch Coverage

blib/lib/Image/ExifTool/PCAP.pm
Criterion Covered Total %
branch 16 40 40.0


line true false branch
335 0 1 unless $raf->Read($buff, 24) == 24
337 0 1 if ($buff =~ /^\xa1\xb2(\xc3\xd4|\x3c\x4d)\0.\0.|(\xd4\xc3|\x4d\x3c)\xb2\xa1.\0.\0/s) { }
1 0 elsif ($buff =~ /^\x0a\x0d\x0d\x0a.{4}(\x1a\x2b\x3c\x4d|\x4d\x3c\x2b\x1a)/s) { }
0 0 elsif ($buff =~ /^GMBU\0\x02/) { }
340 0 0 $tmp eq "\303\324" || $tmp eq "\324\303" ? :
341 0 0 $buff =~ /^\xa1/ ? :
345 0 1 $1 eq "\cZ+
359 0 0 if ($raf->Seek(40, 0) and $raf->Read($buff, 8) == 8)
362 0 0 if ($len < 1024 and $raf->Seek($off, 0) and $raf->Read($buff, $len) == $len)
377 0 1 if ($type eq "PCAP")
379 0 0 unless $raf->Read($buff, 8) == 8
387 0 8 unless $raf->Read($buff, 4) == 4
390 2 6 if ($opt == 0)
391 0 2 unless $raf->Read($buff, 20) == 20
393 1 1 if ($dirNum == 1) { }
1 0 elsif ($dirNum == 6) { }
399 0 1 unless $raf->Read(\$buff, 4) == 4
400 1 0 if ($et->{'TSResol'})
408 0 6 unless $raf->Read($buff, $n) == $n
409 0 6 $tagTablePtr->{$opt} ? :