File Coverage

blib/lib/Android/ADB/Device.pm
Criterion Covered Total %
statement 11 15 73.3
branch n/a
condition n/a
subroutine 4 5 80.0
pod 1 1 100.0
total 16 21 76.1


line stmt bran cond sub pod time code
1             package Android::ADB::Device;
2              
3 1     1   13 use 5.014000;
  1         5  
4 1     1   7 use strict;
  1         3  
  1         25  
5 1     1   4 use warnings;
  1         1  
  1         22  
6              
7 1     1   248 use parent qw/Class::Accessor::Fast/;
  1         228  
  1         4  
8              
9             our $VERSION = '0.001';
10              
11             sub new {
12 0     0 1   my ($class, $serial, $state, @attrs) = @_;
13 0           my %attrs = map { split ':', $_, 2 } @attrs;
  0            
14 0           bless { serial => $serial, state => $state, %attrs }, $class
15             }
16              
17             __PACKAGE__->mk_ro_accessors(qw/serial state usb product model device/);
18              
19             1;
20             __END__