YR/Model/Precipitation/Symbol.pm

filter: Statementstmt 88.2% 15 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 85.7% 18 / 21 CC 1 SCAR 2.2
CC
1
Cov
88%
_build_text
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« YR/Lang/Symbol.pm ↑ Summary YR/LocationForecast/DataPoint.pm »
1 package Weather::YR::Model::Precipitation::Symbol;
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::Model';
6  
7 3 ▶use Weather::YR::Lang::Symbol;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 has 'id' => ( isa => 'Str', is => 'rw', required => 1 );
10 3 has 'number' => ( isa => 'Int', is => 'rw', required => 1 );
11  
12 3 has 'text' => ( isa => 'Str', is => 'ro', lazy_build => 1 );
13  
14 0 ▶sub _build_text {
Subroutine _build_text: not called CC=1 SCAR=6.9
15 0 my $self = shift;
16  
17 0 return Weather::YR::Lang::Symbol->new(
18 number => $self->number,
19 lang => $self->lang,
20 )->text;
21 }
22  
23 3 __PACKAGE__->meta->make_immutable;
24  
25 3 1;
« YR/Lang/Symbol.pm ↑ Summary YR/LocationForecast/DataPoint.pm »