File Coverage

blib/lib/MooseX/ClosedHash/Meta/Class.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 11 11 100.0


line stmt bran cond sub pod time code
1             package MooseX::ClosedHash::Meta::Class;
2              
3             BEGIN {
4 1     1   2 $MooseX::ClosedHash::Meta::Class::AUTHORITY = 'cpan:TOBYINK';
5 1         20 $MooseX::ClosedHash::Meta::Class::VERSION = '0.002';
6             }
7              
8 1     1   5 use Moose::Role;
  1         2  
  1         8  
9 1     1   5812 use Moose::Util qw(does_role);
  1         2  
  1         8  
10              
11             before superclasses => sub
12             {
13             my $meta = shift;
14             for (@_)
15             {
16             next if ref;
17             confess "MooseX::ClosedHash cannot extend a non-MooseX::ClosedHash class"
18             unless does_role(Class::MOP::class_of($_), __PACKAGE__);
19             }
20             };
21              
22             1;
23