File Coverage

blib/lib/Net/LCDproc/Widget/Num.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Net::LCDproc::Widget::Num;
2             $Net::LCDproc::Widget::Num::VERSION = '0.1.3';
3             #ABSTRACT: 'num' widget
4              
5 1     1   15 use v5.10.2;
  1         3  
  1         61  
6 1     1   5 use Moo;
  1         3  
  1         5  
7 1     1   337 use Types::Standard qw/Int/;
  1         2  
  1         8  
8 1     1   388 use namespace::sweep;
  1         2  
  1         8  
9              
10             extends 'Net::LCDproc::Widget';
11             with 'Net::LCDproc::Role::Widget';
12              
13             has ['x', 'int'] => (
14             is => 'rw',
15             isa => Int,
16             required => 1,
17             trigger => \&_set_attr,
18             );
19              
20             has '+_set_cmd' => ( default => sub { [qw/ x int /] } );
21              
22             1;
23              
24             __END__