File Coverage

blib/lib/Class/Accessor/Typed/Mouse.pm
Criterion Covered Total %
statement 14 16 87.5
branch n/a
condition n/a
subroutine 5 6 83.3
pod 0 2 0.0
total 19 24 79.1


line stmt bran cond sub pod time code
1             package Class::Accessor::Typed::Mouse;
2 4     4   1420 use strict;
  4         8  
  4         89  
3 4     4   18 use warnings;
  4         5  
  4         83  
4 4     4   1620 use utf8;
  4         40  
  4         15  
5              
6 4     4   1068 use Mouse::Util::TypeConstraints ();
  4         39454  
  4         367  
7              
8             *_get_isa_type_constraint = \&Mouse::Util::TypeConstraints::find_or_create_isa_type_constraint;
9             *_get_does_type_constraint = \&Mouse::Util::TypeConstraints::find_or_create_does_type_constraint;
10              
11             sub type {
12 17     17 0 23 my ($class, $type_name) = @_;
13 17         29 return _get_isa_type_constraint($type_name);
14             }
15              
16             sub type_role {
17 0     0 0   my ($class, $type_name) = @_;
18 0           return _get_does_type_constraint($type_name);
19             }
20              
21             1;