Condition Coverage

blib/lib/Image/ExifTool/Geotag.pm
Criterion Covered Total %
condition 106 272 38.9


and 3 conditions

line !l l&&!r l&&r condition
214 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/
250 0 0 1 $trackFile and $trackFile =~ m[(\d{4})-(\d{2})-(\d{2})[^/]+(\d{2})-(\d{2})-(\d{2})[^/]*$]
314 0 0 0 defined $fix->{'alt'} and not $fix->{'alt'} =~ /^[+-]?\d+\.?\d*/
325 82 64 24 defined $tag and not $tag
327 0 0 12 $fix and $lastFix
0 1 11 $fix and $lastFix and %$fix
344 3 0 0 defined $fix->{'lon'} and defined $fix->{'lat'}
3 0 0 defined $fix->{'lon'} and defined $fix->{'lat'} and defined $fix->{'alt'}
355 0 11 0 defined $fix->{'alt'} and not $fix->{'alt'} =~ /^[+-]?\d+\.?\d*/
367 67 2 38 defined $fix->{'lat'} and defined $fix->{'lon'}
69 24 14 defined $fix->{'lat'} and defined $fix->{'lon'} and $fix->{'time'}
368 0 0 14 $fix->{'lat'} =~ /^[+-]?\d+\.?\d*/ and $fix->{'lon'} =~ /^[+-]?\d+\.?\d*/
382 0 0 0 defined $begin and $begin < $time
392 0 0 0 not $i and $points->{$t}
407 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+)?)/
433 3 0 4 @parts == 12 and $parts[11] eq "ypr"
436 0 0 4 @d == 3 and @t == 3
501 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'}
632 3 25 0 defined $secs and not defined $date
28 0 0 defined $secs and not defined $date and defined $lastDate
661 3 0 0 defined $secs and !defined($fixSecs) || $secs >= $fixSecs && $secs - $fixSecs >= 10 || $secs < $fixSecs && $secs + $secPerDay - $fixSecs >= 10
686 3 0 0 defined $secs and not defined $fixSecs
691 0 0 0 @fixTimes and $fixTimes[-1] == $fixSecs
718 8 0 0 $noDate and not $geotag->{'NoDate'}
729 8 0 0 $isCut and $canCut
734 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
768 0 0 1 $numPoints and $verbose > 1
895 0 0 0 defined $p and $et->{'OPTIONS'}{'Verbose'} > 2
916 3 0 10 $val and $geotag
3 10 0 $val and $geotag and not $geotag->{'IsDate'}
941 0 1 9 $times and @$times
976 9 0 1 $fs and $fs ne "."
988 9 0 1 $et->Options("Verbose") > 1 and not $secondTry
998 0 1 9 $times && @$times
1035 8 0 0 $p1->{'first'} && $geoMaxIntSecs
1038 8 0 0 $t1 - $t0 > $maxSecs and !($p1->{'span'} && $points->{$t0}{'span'}) || $p1->{'span'} != $points->{$t0}{'span'}
1076 3 0 30 defined $v0 and defined $v1
1081 0 0 0 defined $v0 and defined $v1
1105 16 14 0 $cyclical{$key} and abs $v1 - $v0 > 180
1121 1 0 0 $geotag->{'NoDate'} and not $noDate
1 0 0 $geotag->{'NoDate'} and not $noDate and $val =~ s/^\S+\s+//
1137 4 0 0 $has->{'alt'} and defined $iExt
1162 2 1 0 not defined $fix->{'track'} and defined $iExt
1171 1 0 0 $ref and defined $speedConv{$ref}
1183 2 1 0 not defined $fix->{'dir'} and defined $iExt
1196 0 0 0 not defined $fix->{'atemp'} and defined $iExt
1253 0 0 1 $val =~ /^\d/ && $val =~ /:/
1271 0 0 0 $gpsTime and not $info->{'GPSDateTime'}

or 2 conditions

line l !l condition
143 2 7 $et->GetNewValue('Geotag') || {}
383 0 0 $timeSpan || 0
546 3 0 $5 || 0
547 3 0 $8 || 0
561 0 0 $5 || 0
562 0 0 $8 || 0
573 0 0 $1 || 0
574 0 0 $4 || 0
807 3 0 $3 || 0
1250 2 3 $et->GetNewValue('Geosync') || {}

or 3 conditions

line l !l&&r !l&&!r condition
200 0 0 8 $maxHDOP || $maxPDOP || $minSats
214 0 1 2 /\b(GPS)?Date/i && /\b(GPS)?(Date)?Time/i || /\bTime\(seconds\)/i
220 1 1 0 $2 || $1
246 0 0 2 /^(Angle)?Pitch/i or /^Camera ?Elevation ?Angle/i
377 0 0 14 defined $fix->{'pdop'} or defined $fix->{'hdop'}
0 0 14 defined $fix->{'pdop'} or defined $fix->{'hdop'} or defined $fix->{'nsats'}
464 92 92 92 $param eq "lat" or $param eq "lon"
515 3 15 0 $3 || $2
545 0 0 3 $13 > 31 or $14 > 12
0 0 3 $13 > 31 or $14 > 12 or $15 > 99
608 0 0 12 $13 > 31 or $14 > 12
0 0 12 $13 > 31 or $14 > 12 or $15 > 99
661 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
783 0 1 7 $nmea{'GGA'} or $nmea{'PMGNTRK'}
1 1 6 $nmea{'GGA'} or $nmea{'PMGNTRK'} or $nmea{'B'}
806 3 0 11 $tz =~ /^([-+])(\d+):(\d{2})\b/ or $tz =~ /^([-+])(\d{2})(\d{2})?\b/
859 0 0 4 $i < 0 or $i >= scalar @$times
941 9 1 0 $times and @$times or $geotag->{'DateTimeOnly'}
1038 0 0 0 !($p1->{'span'} && $points->{$t0}{'span'}) || $p1->{'span'} != $points->{$t0}{'span'}
1111 0 0 0 $key eq 'lon' || $key eq 'roll'
1260 4 0 1 $gpsTime or defined $syncFile
1270 0 0 0 $info->{'GPSDateTime'} || $info->{'GPSTimeStamp'}
1314 0 0 4 $gpsDateTime ne $gpsTime or $imgDateTime ne $imgTime
1386 0 0 0 $_ eq "time" or not defined $fix->{$_}