Role/Geocode.pm

filter: Statementstmt 100% 6 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 7 / 7 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« All/TomTom.pm ↑ Summary
1 package Geo::Coder::Role::Geocode;
2 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 requires 'geocode_local';
4 1 requires 'reverse_geocode_local';
5  
6 #has 'ua' =>(
7 # is => 'ro',
8 # 'default' => sub {HTTP::Tiny->new(agent=> 'Geo::Coder::All');}
9 #);
10 #
11 #sub get {
12 # my $self = shift;
13 # my $uri = shift;
14 # my $response = $self->ua->get($uri);
15 # #TODO: add actual error message from uri
16 # croak "Request Failed" unless $response->{success};
17 # return $response->{content};
18 #}
19 1 1;
20  
« All/TomTom.pm ↑ Summary