File Coverage

blib/lib/Moose/Exception/Role/TypeConstraint.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Moose::Exception::Role::TypeConstraint;
2             our $VERSION = '2.2206';
3              
4 15     15   14897 use Moose::Role;
  15         50  
  15         96  
5              
6             has 'type_name' => (
7             is => 'ro',
8             isa => 'Str',
9             required => 1,
10             documentation => "This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint):\n".
11             " my \$type_constraint = Moose::Util::TypeConstraints::find_type_constraint( \$exception->type_name );\n",
12             );
13              
14             1;