Branch Coverage

blib/lib/Image/ExifTool/FLIR.pm
Criterion Covered Total %
branch 21 82 25.6


line true false branch
1332 1 0 if ($val =~ /^\x89PNG\r\n\x1a\n/) { }
0 0 elsif ($val =~ /^\xff\xd8\xff/) { }
0 0 elsif (length $val != $w * $h * 2) { }
0 0 elsif (&GetByteOrder() eq 'II') { }
1356 0 0 unless length $char == 4
1358 0 0 if $val < 128
1359 0 0 if $] >= "5.006001"
1374 0 0 if $dirLen < 12
1382 0 0 if ($tagTablePtr eq \%Image::ExifTool::FLIR::ParamInfo and $dat =~ /# (Generated) at (.*?)[\n\r]/)
1389 0 0 unless $dat =~ /.(\d+).(label|value|param) (unicode|text) "(.*)"/g
1391 0 0 if ($3 eq "unicode" and $val =~ /\\/)
1396 0 0 unless $tagTablePtr->{$tag}
1417 0 1 if $pos > $dirEnd
1418 1 0 if &Get16u($dataPt, $dirStart) >= 256
1421 0 1 if $pos + 2 > $dirEnd
1423 1 0 if $recLen < 40 or $pos + $recLen > $dirEnd
1431 0 0 if $tagTablePtr->{$tag}
1439 0 0 if $pos + 36 + $coordLen > $dirEnd
1449 0 0 if $ch < 32 or $ch > 127
1476 0 1 unless $raf->Read($hdr, 64) == 64 and $hdr =~ /^([AF]FF)\0/
1481 0 0 $type eq 'FFF' ? :
0 1 unless $tagTablePtr
1499 1 1 if $ver >= 100 and $ver < 200
1501 1 0 unless $i
1502 0 0 if $et->{'DOC_NUM'}
1510 0 1 unless ($raf->Seek($base + $pos) and $raf->Read($buff, $num * 32) == $num * 32)
1512 0 0 $et->{'DOC_NUM'} ? :
1515 0 1 unless ($tagTablePtr)
1543 10 4 if ($recType == 0)
1544 0 10 if $verbose
1551 0 4 if $verbose
1554 0 1 if ($recType == 1 and $et->{'DOC_NUM'})
1555 0 0 unless $raf->Seek($base + $recPos + $recLen)
1558 0 4 unless ($raf->Seek($base + $recPos) and $raf->Read($rec, $recLen) == $recLen)
1559 0 0 if ($et->{'DOC_NUM'}) { }
1566 4 0 if ($tagTablePtr->{$recType}) { }
0 0 elsif ($verbose > 2) { }
1582 0 0 if ($dirInfo->{'RAF'} and $et->Options("ExtractEmbedded") and not $et->{'DOC_NUM'})
1585 0 0 unless &ProcessFLIR($et, $dirInfo, $tagTablePtr)
1603 0 1 unless $raf->Read($buff, 892) == 892 and $buff =~ /^FPF Public Image Format\0/
1607 0 1 unless &Get32u(\$buff, 32) & 65535