Condition Coverage

blib/lib/Image/ExifTool/Geotag.pm
Criterion Covered Total %
condition 106 284 37.3


and 3 conditions

line !l l&&!r l&&r condition
227 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/
265 0 0 1 $trackFile and $trackFile =~ m[(\d{4})-(\d{2})-(\d{2})[^/]+(\d{2})-(\d{2})-(\d{2})[^/]*$]
344 0 0 0 defined $fix->{'alt'} and not $fix->{'alt'} =~ /^[+-]?\d+\.?\d*/
355 82 64 24 defined $tag and not $tag
357 0 0 12 $fix and $lastFix
0 1 11 $fix and $lastFix and %$fix
374 3 0 0 defined $fix->{'lon'} and defined $fix->{'lat'}
3 0 0 defined $fix->{'lon'} and defined $fix->{'lat'} and defined $fix->{'alt'}
381 26 3 0 $tok eq "when" and $fix->{'time'}
390 0 11 0 defined $fix->{'alt'} and not $fix->{'alt'} =~ /^[+-]?\d+\.?\d*/
402 67 2 38 defined $fix->{'lat'} and defined $fix->{'lon'}
407 0 0 14 $fix->{'lat'} =~ /^[+-]?\d+\.?\d*/ and $fix->{'lon'} =~ /^[+-]?\d+\.?\d*/
421 0 0 0 defined $begin and $begin < $time
431 0 0 0 not $i and $points->{$t}
446 177 0 0 $td and not $fix->{'time'}
177 0 0 $td and not $fix->{'time'} and /[\s>](\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2}:\d{2}(\.\d+)?)/
472 3 0 4 @parts == 12 and $parts[11] eq "ypr"
475 0 0 4 @d == 3 and @t == 3
501 1 0 460 defined $val and length $val
534 0 0 0 $scaleSpeed and $param eq "speed"
544 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'}
557 0 0 0 $time and $fix->{'lat'}
0 0 0 $time and $fix->{'lat'} and $fix->{'lon'}
688 3 25 0 defined $secs and not defined $date
28 0 0 defined $secs and not defined $date and defined $lastDate
717 3 0 0 defined $secs and !defined($fixSecs) || $secs >= $fixSecs && $secs - $fixSecs >= 10 || $secs < $fixSecs && $secs + $secPerDay - $fixSecs >= 10
742 3 0 0 defined $secs and not defined $fixSecs
747 0 0 0 @fixTimes and $fixTimes[-1] == $fixSecs
774 8 0 0 $noDate and not $geotag->{'NoDate'}
785 8 0 0 $isCut and $canCut
790 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
826 0 0 1 $numPoints and $verbose > 1
953 0 0 0 defined $p and $et->{'OPTIONS'}{'Verbose'} > 2
974 3 0 10 $val and $geotag
3 10 0 $val and $geotag and not $geotag->{'IsDate'}
999 0 1 9 $times and @$times
1034 9 0 1 $fs and $fs ne "."
1046 9 0 1 $et->Options("Verbose") > 1 and not $secondTry
1056 0 1 9 $times && @$times
1093 8 0 0 $p1->{'first'} && $geoMaxIntSecs
1096 8 0 0 $t1 - $t0 > $maxSecs and !($p1->{'span'} && $points->{$t0}{'span'}) || $p1->{'span'} != $points->{$t0}{'span'}
1134 6 0 30 defined $v0 and defined $v1
1139 0 0 0 defined $v0 and defined $v1
1164 14 16 0 $cyclical{$key} and abs $v1 - $v0 > 180
1180 1 0 0 $geotag->{'NoDate'} and not $noDate
1 0 0 $geotag->{'NoDate'} and not $noDate and $val =~ s/^\S+\s+//
1196 4 0 0 $has->{'alt'} and defined $iExt
1221 2 1 0 not defined $fix->{'track'} and defined $iExt
1231 1 0 0 $ref and defined $speedConv{$ref}
1243 2 1 0 not defined $fix->{'dir'} and defined $iExt
1256 0 0 0 not defined $fix->{'atemp'} and defined $iExt
1313 0 0 1 $val =~ /^\d/ && $val =~ /:/
1331 0 0 0 $gpsTime and not $info->{'GPSDateTime'}

or 2 conditions

line l !l condition
156 2 7 $et->GetNewValue('Geotag') || {}
422 0 0 $timeSpan || 0
602 3 0 $5 || 0
603 3 0 $8 || 0
617 0 0 $5 || 0
618 0 0 $8 || 0
629 0 0 $1 || 0
630 0 0 $4 || 0
865 3 0 $3 || 0
1310 2 3 $et->GetNewValue('Geosync') || {}

or 3 conditions

line l !l&&r !l&&!r condition
213 0 0 8 $maxHDOP || $maxPDOP || $minSats
227 0 1 2 /\b(GPS)?Date/i && /\b(GPS)?(Date)?Time/i || /\bTime\(seconds\)/i
233 1 1 0 $2 || $1
261 0 0 2 /^(Angle)?Pitch/i or /^Camera ?Elevation ?Angle/i
416 0 0 14 defined $fix->{'pdop'} or defined $fix->{'hdop'}
0 0 14 defined $fix->{'pdop'} or defined $fix->{'hdop'} or defined $fix->{'nsats'}
503 92 92 92 $param eq "lat" or $param eq "lon"
555 0 0 0 $1 eq "latitudeE7" or $1 eq "latE7"
571 3 15 0 $3 || $2
601 0 0 3 $13 > 31 or $14 > 12
0 0 3 $13 > 31 or $14 > 12 or $15 > 99
664 0 0 12 $13 > 31 or $14 > 12
0 0 12 $13 > 31 or $14 > 12 or $15 > 99
717 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
841 0 1 7 $nmea{'GGA'} or $nmea{'PMGNTRK'}
1 1 6 $nmea{'GGA'} or $nmea{'PMGNTRK'} or $nmea{'B'}
864 3 0 11 $tz =~ /^([-+])(\d+):(\d{2})\b/ or $tz =~ /^([-+])(\d{2})(\d{2})?\b/
917 0 0 0 $i < 0 or $i >= scalar @$times
999 9 1 0 $times and @$times or $geotag->{'DateTimeOnly'}
1096 0 0 0 !($p1->{'span'} && $points->{$t0}{'span'}) || $p1->{'span'} != $points->{$t0}{'span'}
1320 4 0 1 $gpsTime or defined $syncFile
1330 0 0 0 $info->{'GPSDateTime'} || $info->{'GPSTimeStamp'}
1374 0 0 4 $gpsDateTime ne $gpsTime or $imgDateTime ne $imgTime
1446 0 0 0 $_ eq "time" or not defined $fix->{$_}