Branch Coverage

File:blib/lib/Geo/Coder/Free.pm
Coverage:68.2%

line%coveragebranch
206100TFif (not defined $class) { }
100TFelsif (&Scalar::Util::blessed($class)) { }
207100TFif (keys %{$params;})
218100TFunless ($alternatives)
232100TFif (not defined $$params{"openaddr"} and $ENV{"OPENADDR_HOME"})
244100TFif ($$params{"openaddr"})
247100TFif (my $cache = $$params{"cache"})
323100TFif (not ref $self) { }
100TFelsif (ref $self eq 'HASH') { }
324100TFif (scalar @_) { }
100TFelsif (not defined $self) { }
100TFelsif ($self eq __PACKAGE__) { }
339100TFif (defined $params{"location"} and not $params{"location"} =~ /\D/)
341100TFif length $params{"location"}
344100TFif (defined $params{"scantext"} and not $params{"scantext"} =~ /\D/)
346100TFif length $params{"scantext"}
350100TFif ($$self{"openaddr"})
351100TFif (my $scantext = $params{"scantext"})
352100TFif $$self{"scantext_misses"}{$scantext}
36150TFif @direct
370100TFif (my $iw = $params{'ignore_words'}) { }
38350TFif (@{$res;})
3840TFwantarray ? :
39050TFif (@{$res;})
3910TFwantarray ? :
4000TFif defined $_
40250TFif (@{$res;})
4030TFwantarray ? :
40750TFif ($region)
4090TFif ($region eq 'GB') { }
0TFelsif ($region eq 'US') { }
0TFelsif ($region eq 'Canada') { }
4130TFif (@candidates)
4160TFif $$ignore_words{lc $candidate}
4190TFif @hits
4210TFif @regional
430100TFif (wantarray) { }
43250TFif @rc and $rc[0]
4350TFif @rc and $rc[0]
437100TFif (my $rc = $$self{"openaddr"}->geocode(\%params))
441100TFif (my $rc = $$self{"local"}->geocode(\%params))
45150TFif (my $alt = $$self{"alternatives"})
454100TFunless $location =~ /$key/
45750TFif (my $rc = $self->geocode(\%params))
4610TFif ($value =~ /, /)
4650TFif (my $rc = $self->geocode(\%params))
480100TFif ($params{"location"})
484100TFunless $params{"scantext"}
521100TFif (not ref $self) { }
50TFelsif (ref $self eq 'HASH') { }
522100TFif (scalar @_) { }
100TFelsif (not defined $self) { }
100TFelsif ($self eq __PACKAGE__) { }
53850TFif ($$self{"openaddr"})
541100TFif ($params{"latlng"})
5730TF$ENV{'OPENADDR_HOME'} ? :
5760TFunless @rc
592100TF@args ? :
605100TFif ref $args[0] eq "HASH"
606100TFif ref $args[0]
607100TFif @args and @args % 2 == 0
608100TFif @args == 1
612100TFif @args
630100TF$region ? :
631100TFif $$self{"scantext_misses"}{$location}
633100TFif (@res) { }