File Coverage

blib/lib/Cfn/Resource/AWS/SQS/Queue.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 1     1   869 use Moose::Util::TypeConstraints;
  1         2  
  1         14  
2              
3             coerce 'Cfn::Resource::Properties::AWS::SQS::Queue',
4             from 'HashRef',
5             via { Cfn::Resource::Properties::AWS::SQS::Queue->new( %$_ ) };
6              
7             package Cfn::Resource::AWS::SQS::Queue {
8 1     1   2791 use Moose;
  1         5  
  1         8  
9             extends 'Cfn::Resource';
10             has Properties => (isa => 'Cfn::Resource::Properties::AWS::SQS::Queue', is => 'rw', coerce => 1, required => 1);
11             }
12              
13             package Cfn::Resource::Properties::AWS::SQS::Queue {
14 1     1   7729 use Moose;
  1         4  
  1         6  
15 1     1   6777 use MooseX::StrictConstructor;
  1         3  
  1         12  
16             extends 'Cfn::Resource::Properties';
17             has DelaySeconds => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
18             has MaximumMessageSize => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
19             has MessageRetentionPeriod => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
20             has QueueName => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
21             has ReceiveMessageWaitTimeSeconds => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
22             has RedrivePolicy => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
23             has VisibilityTimeout => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
24             }
25              
26             1;