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 5     5   2231 use MooseX::DIC::Types;
  5         14  
  5         171  
4              
5 5     5   36 use Moose;
  5         15  
  5         41  
6 5     5   30568 use namespace::autoclean;
  5         19  
  5         58  
7              
8 5     5   509 use constant DEFAULT_ENVIRONMENT => 'default';
  5         13  
  5         398  
9 5     5   39 use constant DEFAULT_SCOPE => 'singleton';
  5         12  
  5         286  
10 5     5   38 use constant DEFAULT_BUILDER => 'Moose';
  5         14  
  5         1047  
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;