File Coverage

lib/MooseX/DIC/Configuration/ServiceMetadata.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 24 24 100.0


line stmt bran cond sub pod time code
1             package MooseX::DIC::Configuration::ServiceMetadata;
2              
3 4     4   1225 use MooseX::DIC::Types;
  4         7  
  4         97  
4              
5 4     4   18 use Moose;
  4         8  
  4         22  
6 4     4   15744 use namespace::autoclean;
  4         9  
  4         34  
7              
8 4     4   286 use constant DEFAULT_ENVIRONMENT => 'default';
  4         7  
  4         220  
9 4     4   23 use constant DEFAULT_SCOPE => 'singleton';
  4         7  
  4         152  
10 4     4   18 use constant DEFAULT_BUILDER => 'Moose';
  4         8  
  4         595  
11              
12             has class_name => ( is => 'ro', isa => 'Str', required => 1 );
13             has implements => ( is => 'ro', isa => 'Str', required => 1 );
14             has scope => ( is => 'ro', isa => 'ServiceScope', default => DEFAULT_SCOPE );
15             has qualifiers => ( is => 'ro', isa => 'ArrayRef[Str]', default => sub { [] } );
16             has environment => ( is => 'ro', isa => 'Str', default => DEFAULT_ENVIRONMENT );
17             has builder => ( is => 'ro', isa => 'Str', default => DEFAULT_BUILDER );
18             has dependencies => ( is => 'ro', isa => 'HashRef[MooseX::DIC::Configuration::ServiceMetadata::Dependency]', default => sub {{}} );
19              
20             __PACKAGE__->meta->make_immutable;
21              
22             1;