Condition Coverage

blib/lib/Image/ExifTool/Geotag.pm
Criterion Covered Total %
condition 106 281 37.7


and 3 conditions

line !l l&&!r l&&r condition
215 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/
251 0 0 1 $trackFile and $trackFile =~ m[(\d{4})-(\d{2})-(\d{2})[^/]+(\d{2})-(\d{2})-(\d{2})[^/]*$]
319 0 0 0 defined $fix->{'alt'} and not $fix->{'alt'} =~ /^[+-]?\d+\.?\d*/
330 82 64 24 defined $tag and not $tag
332 0 0 12 $fix and $lastFix
0 1 11 $fix and $lastFix and %$fix
349 3 0 0 defined $fix->{'lon'} and defined $fix->{'lat'}
3 0 0 defined $fix->{'lon'} and defined $fix->{'lat'} and defined $fix->{'alt'}
360 0 11 0 defined $fix->{'alt'} and not $fix->{'alt'} =~ /^[+-]?\d+\.?\d*/
372 67 2 38 defined $fix->{'lat'} and defined $fix->{'lon'}
69 24 14 defined $fix->{'lat'} and defined $fix->{'lon'} and $fix->{'time'}
373 0 0 14 $fix->{'lat'} =~ /^[+-]?\d+\.?\d*/ and $fix->{'lon'} =~ /^[+-]?\d+\.?\d*/
387 0 0 0 defined $begin and $begin < $time
397 0 0 0 not $i and $points->{$t}
412 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+)?)/
438 3 0 4 @parts == 12 and $parts[11] eq "ypr"
441 0 0 4 @d == 3 and @t == 3
506 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'}
519 0 0 0 $time and $fix->{'lat'}
0 0 0 $time and $fix->{'lat'} and $fix->{'lon'}
650 3 25 0 defined $secs and not defined $date
28 0 0 defined $secs and not defined $date and defined $lastDate
679 3 0 0 defined $secs and !defined($fixSecs) || $secs >= $fixSecs && $secs - $fixSecs >= 10 || $secs < $fixSecs && $secs + $secPerDay - $fixSecs >= 10
704 3 0 0 defined $secs and not defined $fixSecs
709 0 0 0 @fixTimes and $fixTimes[-1] == $fixSecs
736 8 0 0 $noDate and not $geotag->{'NoDate'}
747 8 0 0 $isCut and $canCut
752 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
788 0 0 1 $numPoints and $verbose > 1
915 0 0 0 defined $p and $et->{'OPTIONS'}{'Verbose'} > 2
936 3 0 10 $val and $geotag
3 10 0 $val and $geotag and not $geotag->{'IsDate'}
961 0 1 9 $times and @$times
996 9 0 1 $fs and $fs ne "."
1008 9 0 1 $et->Options("Verbose") > 1 and not $secondTry
1018 0 1 9 $times && @$times
1055 8 0 0 $p1->{'first'} && $geoMaxIntSecs
1058 8 0 0 $t1 - $t0 > $maxSecs and !($p1->{'span'} && $points->{$t0}{'span'}) || $p1->{'span'} != $points->{$t0}{'span'}
1096 3 0 30 defined $v0 and defined $v1
1101 0 0 0 defined $v0 and defined $v1
1125 16 14 0 $cyclical{$key} and abs $v1 - $v0 > 180
1141 1 0 0 $geotag->{'NoDate'} and not $noDate
1 0 0 $geotag->{'NoDate'} and not $noDate and $val =~ s/^\S+\s+//
1157 4 0 0 $has->{'alt'} and defined $iExt
1182 2 1 0 not defined $fix->{'track'} and defined $iExt
1191 1 0 0 $ref and defined $speedConv{$ref}
1203 2 1 0 not defined $fix->{'dir'} and defined $iExt
1216 0 0 0 not defined $fix->{'atemp'} and defined $iExt
1273 0 0 1 $val =~ /^\d/ && $val =~ /:/
1291 0 0 0 $gpsTime and not $info->{'GPSDateTime'}

or 2 conditions

line l !l condition
144 2 7 $et->GetNewValue('Geotag') || {}
388 0 0 $timeSpan || 0
564 3 0 $5 || 0
565 3 0 $8 || 0
579 0 0 $5 || 0
580 0 0 $8 || 0
591 0 0 $1 || 0
592 0 0 $4 || 0
827 3 0 $3 || 0
1270 2 3 $et->GetNewValue('Geosync') || {}

or 3 conditions

line l !l&&r !l&&!r condition
201 0 0 8 $maxHDOP || $maxPDOP || $minSats
215 0 1 2 /\b(GPS)?Date/i && /\b(GPS)?(Date)?Time/i || /\bTime\(seconds\)/i
221 1 1 0 $2 || $1
247 0 0 2 /^(Angle)?Pitch/i or /^Camera ?Elevation ?Angle/i
382 0 0 14 defined $fix->{'pdop'} or defined $fix->{'hdop'}
0 0 14 defined $fix->{'pdop'} or defined $fix->{'hdop'} or defined $fix->{'nsats'}
469 92 92 92 $param eq "lat" or $param eq "lon"
517 0 0 0 $1 eq "latitudeE7" or $1 eq "latE7"
533 3 15 0 $3 || $2
563 0 0 3 $13 > 31 or $14 > 12
0 0 3 $13 > 31 or $14 > 12 or $15 > 99
626 0 0 12 $13 > 31 or $14 > 12
0 0 12 $13 > 31 or $14 > 12 or $15 > 99
679 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
803 0 1 7 $nmea{'GGA'} or $nmea{'PMGNTRK'}
1 1 6 $nmea{'GGA'} or $nmea{'PMGNTRK'} or $nmea{'B'}
826 3 0 11 $tz =~ /^([-+])(\d+):(\d{2})\b/ or $tz =~ /^([-+])(\d{2})(\d{2})?\b/
879 0 0 4 $i < 0 or $i >= scalar @$times
961 9 1 0 $times and @$times or $geotag->{'DateTimeOnly'}
1058 0 0 0 !($p1->{'span'} && $points->{$t0}{'span'}) || $p1->{'span'} != $points->{$t0}{'span'}
1131 0 0 0 $key eq 'lon' || $key eq 'roll'
1280 4 0 1 $gpsTime or defined $syncFile
1290 0 0 0 $info->{'GPSDateTime'} || $info->{'GPSTimeStamp'}
1334 0 0 4 $gpsDateTime ne $gpsTime or $imgDateTime ne $imgTime
1406 0 0 0 $_ eq "time" or not defined $fix->{$_}