Condition Coverage

blib/lib/Image/ExifTool/Geotag.pm
Criterion Covered Total %
condition 120 329 36.4


and 3 conditions

line !l l&&!r l&&r condition
153 0 0 0 $v =~ /("+)\s*$/ and length $1 & 1
283 4 0 0 $nmeaStart and /^B/
3 0 1 /^\s*\d+\s+.*\sypr\s*$/ and (@tmp = split(' ', $_, 0)) == 12
2 0 1 /\b(GPS)?Date/i && /\b(GPS)?(Date)?Time/i || /\bTime\(seconds\)/i and /\Q$csvDelim\E/
310 0 1 0 $csvHeadings[0] && $csvHeadings[0] eq 'INDEX'
322 0 0 1 $trackFile and $trackFile =~ m[(\d{4})-(\d{2})-(\d{2})[^/]+(\d{2})-(\d{2})-(\d{2})[^/]*$]
418 0 0 0 defined $fix->{'alt'} and not $fix->{'alt'} =~ /^[+-]?\d+\.?\d*/
431 92 100 42 defined $tag and not $tag
433 0 0 21 $fix and $lastFix
0 1 20 $fix and $lastFix and %$fix
450 3 0 0 defined $fix->{'lon'} and defined $fix->{'lat'}
3 0 0 defined $fix->{'lon'} and defined $fix->{'lat'} and defined $fix->{'alt'}
457 44 3 0 $tok eq "when" and $fix->{'time'}
466 0 20 0 defined $fix->{'alt'} and not $fix->{'alt'} =~ /^[+-]?\d+\.?\d*/
478 75 2 65 defined $fix->{'lat'} and defined $fix->{'lon'}
483 0 0 23 $fix->{'lat'} =~ /^[+-]?\d+\.?\d*/ and $fix->{'lon'} =~ /^[+-]?\d+\.?\d*/
497 0 0 0 defined $begin and $begin < $time
507 0 0 0 not $i and $points->{$t}
522 243 0 0 $td and not $fix->{'time'}
243 0 0 $td and not $fix->{'time'} and /[\s>](\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2}:\d{2}(\.\d+)?)/
548 3 0 4 @parts == 12 and $parts[11] eq "ypr"
551 0 0 4 @d == 3 and @t == 3
577 1 0 460 defined $val and length $val
616 0 0 0 $scaleSpeed and $param eq "speed"
626 1 0 92 $date and defined $secs
1 0 92 $date and defined $secs and defined $fix->{'lat'}
0 0 92 $date and defined $secs and defined $fix->{'lat'} and defined $fix->{'lon'}
637 0 0 0 $1 eq "durationMinutesOffsetFromStartTime" and defined $startTime
639 0 0 0 $time and $fix->{'lat'}
0 0 0 $time and $fix->{'lat'} and $fix->{'lon'}
653 0 0 0 $time and $fix->{'lat'}
0 0 0 $time and $fix->{'lat'} and $fix->{'lon'}
780 3 25 0 defined $secs and not defined $date
28 0 0 defined $secs and not defined $date and defined $lastDate
809 3 0 0 defined $secs and !defined($fixSecs) || $secs >= $fixSecs && $secs - $fixSecs >= 10 || $secs < $fixSecs && $secs + $secPerDay - $fixSecs >= 10
834 3 0 0 defined $secs and not defined $fixSecs
839 0 0 0 @fixTimes and $fixTimes[-1] == $fixSecs
866 9 0 0 $noDate and not $geotag->{'NoDate'}
877 9 0 0 $isCut and $canCut
882 0 0 0 $maxPDOP and $fix->{'pdop'}
0 0 0 $maxPDOP and $fix->{'pdop'} and $fix->{'pdop'} > $maxPDOP
0 0 0 $maxHDOP and $fix->{'hdop'}
0 0 0 $maxHDOP and $fix->{'hdop'} and $fix->{'hdop'} > $maxHDOP
0 0 0 $minSats and defined $fix->{'nsats'}
0 0 0 $minSats and defined $fix->{'nsats'} and $fix->{'nsats'} ne ""
0 0 0 $minSats and defined $fix->{'nsats'} and $fix->{'nsats'} ne "" and $fix->{'nsats'} < $minSats
918 0 0 1 $numPoints and $verbose > 1
1045 2 0 0 defined $p and $et->{'OPTIONS'}{'Verbose'} > 2
1066 3 0 11 $val and $geotag
3 11 0 $val and $geotag and not $geotag->{'IsDate'}
1091 0 1 10 $times and @$times
1126 10 0 1 $fs and $fs ne "."
1138 10 0 1 $et->Options("Verbose") > 1 and not $secondTry
1148 0 1 10 $times && @$times
1185 9 0 0 $p1->{'first'} && $geoMaxIntSecs
1196 9 0 0 $t1 - $t0 > $maxSecs and !($p1->{'span'} && $points->{$t0}{'span'}) || $p1->{'span'} != $points->{$t0}{'span'}
1229 6 0 33 defined $v0 and defined $v1
1234 0 0 0 defined $v0 and defined $v1
1259 16 17 0 $cyclical{$key} and abs $v1 - $v0 > 180
1275 1 0 0 $geotag->{'NoDate'} and not $noDate
1 0 0 $geotag->{'NoDate'} and not $noDate and $val =~ s/^\S+\s+//
1292 6 4 0 not defined $alt and $has->{'alt'}
4 0 0 not defined $alt and $has->{'alt'} and defined $iExt
1316 9 0 1 $geoloc and $geoloc =~ /\bgeotag\b/i
1334 2 0 1 not defined $fix->{$type} and defined $iExt
1344 1 0 0 $ref and defined $speedConv{$ref}
1356 2 0 1 not defined $fix->{'dir'} and defined $iExt
1369 0 0 0 not defined $fix->{'atemp'} and defined $iExt
1474 0 0 1 $val =~ /^\d/ && $val =~ /:/
1492 0 0 0 $gpsTime and not $info->{'GPSDateTime'}

or 2 conditions

line l !l condition
209 2 8 $et->GetNewValue('Geotag') || {}
498 0 0 $timeSpan || 0
694 3 0 $5 || 0
695 3 0 $8 || 0
709 0 0 $5 || 0
710 0 0 $8 || 0
721 0 0 $1 || 0
722 0 0 $4 || 0
957 3 0 $3 || 0
1471 2 3 $et->GetNewValue('Geosync') || {}

or 3 conditions

line l !l&&r !l&&!r condition
266 0 0 9 $maxHDOP || $maxPDOP || $minSats
283 0 1 2 /\b(GPS)?Date/i && /\b(GPS)?(Date)?Time/i || /\bTime\(seconds\)/i
289 1 1 0 $2 || $1
318 0 0 2 /^(Angle)?Pitch/i or /^Camera ?Elevation ?Angle/i
414 0 0 36 $tag eq "atemp" or $tag eq "speed"
0 0 36 $tag eq "atemp" or $tag eq "speed" or $tag eq "err"
462 0 0 27 $tag eq "atemp" or $tag eq "speed"
0 0 27 $tag eq "atemp" or $tag eq "speed" or $tag eq "err"
492 0 0 23 defined $fix->{'pdop'} or defined $fix->{'hdop'}
0 0 23 defined $fix->{'pdop'} or defined $fix->{'hdop'} or defined $fix->{'nsats'}
579 92 92 92 $param eq "lat" or $param eq "lon"
637 0 0 0 $1 eq "timestamp" or $1 eq "time"
0 0 0 $1 eq "latitudeE7" or $1 eq "latE7"
0 0 0 $1 eq "longitudeE7" or $1 eq "lngE7"
663 3 15 0 $3 || $2
693 0 0 3 $13 > 31 or $14 > 12
0 0 3 $13 > 31 or $14 > 12 or $15 > 99
756 0 0 12 $13 > 31 or $14 > 12
0 0 12 $13 > 31 or $14 > 12 or $15 > 99
809 0 0 0 !defined($fixSecs) || $secs >= $fixSecs && $secs - $fixSecs >= 10 || $secs < $fixSecs && $secs + $secPerDay - $fixSecs >= 10
25 0 3 $nmea eq $nmeaStart or defined $secs and !defined($fixSecs) || $secs >= $fixSecs && $secs - $fixSecs >= 10 || $secs < $fixSecs && $secs + $secPerDay - $fixSecs >= 10
933 0 1 8 $nmea{'GGA'} or $nmea{'PMGNTRK'}
1 1 7 $nmea{'GGA'} or $nmea{'PMGNTRK'} or $nmea{'B'}
956 3 0 20 $tz =~ /^([-+])(\d+):(\d{2})\b/ or $tz =~ /^([-+])(\d{2})(\d{2})?\b/
1009 0 2 6 $i < 0 or $i >= scalar @$times
1091 10 1 0 $times and @$times or $geotag->{'DateTimeOnly'}
1196 0 0 0 !($p1->{'span'} && $points->{$t0}{'span'}) || $p1->{'span'} != $points->{$t0}{'span'}
1331 3 0 7 $has->{'track'} or $has->{'speed'}
1405 0 0 0 &Image::ExifTool::GetWarning() || $@
1481 4 0 1 $gpsTime or defined $syncFile
1491 0 0 0 $info->{'GPSDateTime'} || $info->{'GPSTimeStamp'}
1535 0 0 4 $gpsDateTime ne $gpsTime or $imgDateTime ne $imgTime
1606 0 0 0 $_ eq "time" or not defined $fix->{$_}