File Coverage

blib/lib/Cfn/Resource/AWS/IAM/User.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 3     3   1478 use Moose::Util::TypeConstraints;
  3         7  
  3         32  
2              
3             coerce 'Cfn::Resource::Properties::AWS::IAM::User',
4             from 'HashRef',
5             via { Cfn::Resource::Properties::AWS::IAM::User->new( %$_ ) };
6              
7             package Cfn::Resource::AWS::IAM::User {
8 3     3   5990 use Moose;
  3         6  
  3         21  
9             extends 'Cfn::Resource';
10             has Properties => (isa => 'Cfn::Resource::Properties::AWS::IAM::User', is => 'rw', coerce => 1, required => 1);
11             }
12              
13             package Cfn::Resource::Properties::AWS::IAM::User {
14 3     3   13049 use Moose;
  3         8  
  3         12  
15 3     3   18849 use MooseX::StrictConstructor;
  3         44073  
  3         14  
16             extends 'Cfn::Resource::Properties';
17             has Path => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
18             has Groups => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
19             has LoginProfile => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
20             has Policies => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
21             }
22              
23             1;