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   1915 use strict;
  4         8  
  4         110  
3 4     4   18 use warnings;
  4         6  
  4         125  
4 4     4   1948 use utf8;
  4         49  
  4         17  
5              
6 4     4   1306 use Mouse::Util::TypeConstraints ();
  4         46799  
  4         448  
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 33 my ($class, $type_name) = @_;
13 17         28 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;