Branch Coverage

blib/lib/Image/ExifTool/GPS.pm
Criterion Covered Total %
branch 49 64 76.5


line true false branch
467 0 20 if ($ss >= 60) { }
469 0 0 if ++$m >= 60
483 17 3 unless $val =~ s/:(\d{2}\.\d+)$//
485 0 3 if $s < 10
500 5 127 unless (length $val)
502 5 0 if $doPrintConv and $doPrintConv eq 1
505 46 81 if ($ref) { }
506 20 26 if ($val < 0) { }
515 25 21 unless $doPrintConv and $doPrintConv eq 2
517 20 61 if ($doPrintConv and $doPrintConv eq 3)
518 7 13 if $val < 0
524 87 40 if ($doPrintConv) { }
525 66 21 if ($doPrintConv eq '1') { }
527 43 23 if (not $fmt) { }
13 10 elsif ($ref) { }
531 13 0 unless $fmt =~ s/%\+/$sign%/g or $fmt =~ s/%-/$minus%/g
540 0 236 if $1 eq "%%"
542 62 174 if @fmt >= 3
550 127 0 if ($num > 1)
553 102 25 if ($num > 2)
559 87 40 $doPrintConv ? :
560 0 127 if ($c[-1] >= 60)
562 0 0 if ($c[-2] += 1) >= 60 and $num > 2
565 87 40 if ($doPrintConv) { }
568 21 66 if $doPrintConv eq 2
570 7 33 if $neg
585 2 258 if $val =~ /\b(inf|undef)\b/
587 0 20 if ($coord and $coord eq 'lat' || $coord eq 'lon' and $val =~ /^(.*(?:N(?:orth)?|S(?:outh)?)),\s*(.*(?:E(?:ast)?|W(?:est)?))$/i)
591 0 0 $coord eq 'lat' ? :
595 0 258 unless defined $d
598 211 47 $doSign ? :
2 256 if $doSign ? $val =~ /[^A-Z](S(outh)?|W(est)?)\s*$/i : $deg < 0