YR/TextLocation.pm

filter: Statementstmt 73.6% 14 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 73.9% 17 / 23 CC 1 SCAR 2.2
CC
1
Cov
74%
_build_url
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« YR/Model/WindSpeed.pm ↑ Summary YR/Model/Precipitation/Symbol.pm »
1 package Weather::YR::TextLocation;
2 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 3 extends 'Weather::YR::Base';
6  
7 3 ▶use Mojo::URL;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 has 'lang' => ( isa => 'Str', is => 'rw', default => 'nb' );
10  
11 3 has 'url' => ( isa => 'Mojo::URL', is => 'ro', lazy_build => 1 );
12  
13 sub _build_url {
14 0 ▶ my $self = shift;
Subroutine _build_url: not called CC=1 SCAR=6.9
15  
16 0 my $url = $self->service_url->clone;
17 0 $url->path ( '/weatherapi/textlocation/1.0/' );
18 0 $url->query( latitude => $self->lat, longitude => $self->lon, language => $self->lang );
19  
20 0 return $url;
21 }
22  
23 3 __PACKAGE__->meta->make_immutable;
24  
25 3 1;
« YR/Model/WindSpeed.pm ↑ Summary YR/Model/Precipitation/Symbol.pm »