File Coverage

blib/lib/Device/RFXCOM/Encoder.pm
Criterion Covered Total %
statement 20 20 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 1 1 100.0
total 28 28 100.0


line stmt bran cond sub pod time code
1 1     1   6 use strict;
  1         1  
  1         27  
2 1     1   4 use warnings;
  1         1  
  1         34  
3             package Device::RFXCOM::Encoder;
4             $Device::RFXCOM::Encoder::VERSION = '1.142010';
5             # ABSTRACT: Device::RFXCOM::Encoder base class for encoding RF messages
6              
7              
8 1     1   19 use 5.006;
  1         2  
  1         38  
9 1     1   5 use constant DEBUG => $ENV{DEVICE_RFXCOM_ENCODER_DEBUG};
  1         1  
  1         54  
10 1     1   5 use Carp qw/croak/;
  1         2  
  1         43  
11              
12 1     1   5 use Exporter;
  1         1  
  1         152  
13              
14             our @ISA = qw(Exporter);
15             our %EXPORT_TAGS = ( 'all' => [ qw() ] );
16             our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
17             our @EXPORT = qw();
18              
19              
20             sub new {
21 12     12 1 14129 my $pkg = shift;
22 12         47 bless { @_ }, $pkg;
23             }
24              
25             1;
26              
27             __END__