File Coverage

blib/lib/Cfn/Resource/AWS/SQS/QueuePolicy.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1 1     1   1062 use Moose::Util::TypeConstraints;
  1         2  
  1         9  
2              
3             coerce 'Cfn::Resource::Properties::AWS::SQS::QueuePolicy',
4             from 'HashRef',
5             via { Cfn::Resource::Properties::AWS::SQS::QueuePolicy->new( %$_ ) };
6              
7             package Cfn::Resource::AWS::SQS::QueuePolicy {
8 1     1   2473 use Moose;
  1         3  
  1         6  
9             extends 'Cfn::Resource';
10             has Properties => (isa => 'Cfn::Resource::Properties::AWS::SQS::QueuePolicy', is => 'rw', coerce => 1, required => 1);
11             }
12              
13             package Cfn::Resource::Properties::AWS::SQS::QueuePolicy {
14 1     1   7252 use Moose;
  1         6  
  1         5  
15             extends 'Cfn::Resource::Properties';
16             has PolicyDocument => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
17             has Queues => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
18             }
19              
20             1;