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 5     5   2956 use Moose::Util::TypeConstraints;
  5         17  
  5         56  
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 5     5   11951 use Moose;
  5         12  
  5         40  
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 5     5   35698 use Moose;
  5         14  
  5         39  
15 5     5   36159 use MooseX::StrictConstructor;
  5         78034  
  5         22  
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;