WallyHome/Sensor/State.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« WallyHome/Sensor/Location.pm ↑ Summary
1 package Device::WallyHome::Sensor::State;
2 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use MooseX::AttributeShortcuts;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $VERSION = '0.21.3';
7  
8  
9 #== ATTRIBUTES =================================================================
10  
11 1 has 'name' => (
12 is => 'ro',
13 isa => 'Str',
14 required => 1,
15 writer => '_name',
16 );
17  
18 1 has 'value' => (
19 is => 'ro',
20 isa => 'Maybe[Num]',
21 required => 1,
22 writer => '_min',
23 );
24  
25 1 has 'at' => (
26 is => 'ro',
27 isa => 'Str',
28 required => 1,
29 writer => '_max',
30 );
31  
32  
33 1 __PACKAGE__->meta->make_immutable;
34  
35 1 1;
« WallyHome/Sensor/Location.pm ↑ Summary