Geo-Coder-GeocodeFarm
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
t/050_geocode.t view on Meta::CPAN
cmp_deeply $result, $expected, '$result matches deeply';
is $ua->{url}, 'http://www.geocode.farm/v3/json/forward/?addr=530+W+Main+St+Anoka+MN+55303+US', 'url matches';
}
package My::Mock;
sub new {
my ($class) = @_;
return bless +{} => $class;
}
package My::Mock::HTTP::Tiny;
use base 'My::Mock';
sub get {
my ($self, $url) = @_;
$self->{url} = $url;
t/060_geocode_failure.t view on Meta::CPAN
}, '$result matches deeply';
is $ua->{url}, 'https://www.geocode.farm/v3/json/forward/?addr=530+W+Main+St+Anoka+MN+55303+US&key=xxx', 'url matches';
}
package My::Mock;
sub new {
my ($class) = @_;
return bless +{} => $class;
}
package My::Mock::HTTP::Tiny;
use base 'My::Mock';
sub get {
my ($self, $url) = @_;
$self->{url} = $url;
t/065_geocode_utf8.t view on Meta::CPAN
isa_ok $result, 'HASH';
is $ua->{url}, 'http://www.geocode.farm/v3/json/forward/?addr=My%C5%9Bliwiecka+3%2F5%2F7%2C+Warszawa%2C+Poland', 'url matches';
}
package My::Mock;
sub new {
my ($class) = @_;
return bless +{} => $class;
}
package My::Mock::HTTP::Tiny;
use base 'My::Mock';
sub get {
my ($self, $url) = @_;
$self->{url} = $url;
t/070_reverse_geocode.t view on Meta::CPAN
cmp_deeply $result, $expected, '$result matches deeply';
is $ua->{url}, 'http://www.geocode.farm/v3/json/reverse/?lat=45.2040305&lon=-93.3995728', 'url matches';
}
package My::Mock;
sub new {
my ($class) = @_;
return bless +{} => $class;
}
package LWP::UserAgent;
sub get { }
package HTTP::Response;
t/080_reverse_geocode_failure.t view on Meta::CPAN
}, '$result matches deeply';
is $ua->{url}, 'http://www.geocode.farm/v3/json/reverse/?lat=45.2040305&lon=-93.3995728&key=xxx', 'url matches';
}
package My::Mock;
sub new {
my ($class) = @_;
return bless +{} => $class;
}
package LWP::UserAgent;
sub get { }
package HTTP::Response;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.192 second using v1.00-cache-2.02-grep-82fe00e-cpan-1925d2aa809 )