File Coverage

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


line stmt bran cond sub pod time code
1 1     1   8 use strict;
  1         2  
  1         41  
2 1     1   6 use warnings;
  1         2  
  1         62  
3             package Device::RFXCOM::Encoder;
4             $Device::RFXCOM::Encoder::VERSION = '1.163170';
5             # ABSTRACT: Device::RFXCOM::Encoder base class for encoding RF messages
6              
7              
8 1     1   21 use 5.006;
  1         4  
9 1     1   6 use constant DEBUG => $ENV{DEVICE_RFXCOM_ENCODER_DEBUG};
  1         1  
  1         89  
10 1     1   6 use Carp qw/croak/;
  1         2  
  1         59  
11              
12 1     1   5 use Exporter;
  1         2  
  1         214  
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 18556 my $pkg = shift;
22 12         55 bless { @_ }, $pkg;
23             }
24              
25             1;
26              
27             __END__