File Coverage

lib/MooseX/DIC/PackageIsNotServiceException.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package MooseX::DIC::PackageIsNotServiceException;
2              
3 5     5   2335 use Moose;
  5         14  
  5         44  
4 5     5   38721 use namespace::autoclean;
  5         142  
  5         55  
5             extends 'MooseX::DIC::ContainerException';
6              
7             has package => ( is => 'ro', isa => 'Str', required => 1 );
8             has '+message' => (
9             lazy => 1,
10             default => sub {
11             "The package " . shift->package . " is not an injectable service";
12             }
13             );
14              
15             __PACKAGE__->meta->make_immutable;
16             1;