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 4     4   1349 use Moose;
  4         9  
  4         32  
4 4     4   23006 use namespace::autoclean;
  4         9  
  4         35  
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;