Branch Coverage

blib/lib/Image/ExifTool/LNK.pm
Criterion Covered Total %
branch 39 92 42.3


line true false branch
451 0 2 if $pos >= length $$dataPt
453 0 2 $unicode ? :
2 0 if $unicode ? $$dataPt =~ /\G((?:..)*?)\0\0/gs : $$dataPt =~ /\G(.*?)\0/gs
473 1 1 if $pos + 4 >= $dataLen
475 0 1 if $size < 2 or $pos + $size > $dataLen
480 0 1 unless $tagTablePtr->{$tag}
495 0 1 if $dataLen < 32
505 1 0 if ($lif & 1)
508 1 0 if ($off + 32 <= $dataLen)
512 0 1 if ($pos == 20)
519 1 0 if (defined $val)
521 0 1 if $unicode
526 0 1 if ($hdrLen >= 36) { }
534 1 0 if (defined $val)
536 0 1 if $unicode
540 0 1 if ($lif & 2)
543 0 0 if ($off and $off + 20 <= $dataLen)
546 0 0 if ($pos > 20 and $siz >= 24) { }
553 0 0 if (defined $val)
555 0 0 if $unicode
559 0 0 if ($flg & 1)
561 0 0 if ($pos > 20 and $siz >= 28) { }
568 0 0 if (defined $val)
570 0 0 if $unicode
574 0 0 if ($flg & 2)
594 0 1 unless $raf->Read($buff, 76) == 76
595 0 1 unless $buff =~ /^.{4}\x01\x14\x02\0{5}\xc0\0{6}\x46/s
597 0 1 unless $len >= 76
598 0 1 if ($len > 76)
599 0 0 unless $raf->Read($buf2, $len - 76) == $len - 76
617 1 0 if ($flags & 1)
618 0 1 unless $raf->Read($buff, 2)
620 0 1 unless $raf->Read($buff, $len) == $len
629 1 0 if ($flags & 2)
630 0 1 unless $raf->Read($buff, 4)
632 0 1 if $len < 4
633 0 1 unless $raf->Read($buf2, $len - 4) == $len - 4
647 1 4 unless $flags & $mask
648 0 4 unless $raf->Read($buff, 2)
650 4 0 if $flags & 128
651 0 4 unless $raf->Read($buff, $len)
653 4 0 if $flags & 128
664 1 2 if $len < 4
666 0 2 unless $raf->Read($buf2, $len) == $len
667 0 2 unless $len > 4
671 0 2 unless (ref $tagInfo eq "HASH" and $tagInfo->{'SubDirectory'})