Branch Coverage

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


line true false branch
1334 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') { }
1358 0 0 unless length $char == 4
1360 0 0 if $val < 128
1361 0 0 if $] >= "5.006001"
1376 0 0 if $dirLen < 12
1384 0 0 if ($tagTablePtr eq \%Image::ExifTool::FLIR::ParamInfo and $dat =~ /# (Generated) at (.*?)[\n\r]/)
1391 0 0 unless $dat =~ /.(\d+).(label|value|param) (unicode|text) "(.*)"/g
1393 0 0 if ($3 eq "unicode" and $val =~ /\\/)
1398 0 0 unless $tagTablePtr->{$tag}
1419 0 1 if $pos > $dirEnd
1420 1 0 if &Get16u($dataPt, $dirStart) >= 256
1423 0 1 if $pos + 2 > $dirEnd
1425 1 0 if $recLen < 40 or $pos + $recLen > $dirEnd
1433 0 0 if $tagTablePtr->{$tag}
1441 0 0 if $pos + 36 + $coordLen > $dirEnd
1451 0 0 if $ch < 32 or $ch > 127
1478 0 1 unless $raf->Read($hdr, 64) == 64 and $hdr =~ /^([AF]FF)\0/
1483 0 0 $type eq 'FFF' ? :
0 1 unless $tagTablePtr
1501 1 1 if $ver >= 100 and $ver < 200
1503 1 0 unless $i
1504 0 0 if $et->{'DOC_NUM'}
1512 0 1 unless ($raf->Seek($base + $pos) and $raf->Read($buff, $num * 32) == $num * 32)
1514 0 0 $et->{'DOC_NUM'} ? :
1517 0 1 unless ($tagTablePtr)
1545 10 4 if ($recType == 0)
1546 0 10 if $verbose
1553 0 4 if $verbose
1556 0 1 if ($recType == 1 and $et->{'DOC_NUM'} and $et->Options("ExtractEmbedded") < 2)
1557 0 0 unless $raf->Seek($base + $recPos + $recLen)
1560 0 4 unless ($raf->Seek($base + $recPos) and $raf->Read($rec, $recLen) == $recLen)
1561 0 0 if ($et->{'DOC_NUM'}) { }
1568 4 0 if ($tagTablePtr->{$recType}) { }
0 0 elsif ($verbose > 2) { }
1584 0 0 if ($dirInfo->{'RAF'} and $et->Options("ExtractEmbedded") and not $et->{'DOC_NUM'})
1587 0 0 unless &ProcessFLIR($et, $dirInfo, $tagTablePtr)
1605 0 1 unless $raf->Read($buff, 892) == 892 and $buff =~ /^FPF Public Image Format\0/
1609 0 1 unless &Get32u(\$buff, 32) & 65535