blib/lib/MooseX/UndefTolerant/ApplicationToClass.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::UndefTolerant::ApplicationToClass; | ||||||
2 | |||||||
3 | our $VERSION = '0.21'; | ||||||
4 | |||||||
5 | 1 | 1 | 3852 | use Moose::Role; | |||
1 | 1 | ||||||
1 | 8 | ||||||
6 | |||||||
7 | around apply => sub { | ||||||
8 | my $orig = shift; | ||||||
9 | my $self = shift; | ||||||
10 | my ($role, $class) = @_; | ||||||
11 | |||||||
12 | $class = Moose::Util::MetaRole::apply_metaroles( | ||||||
13 | for => $class, | ||||||
14 | class_metaroles => { | ||||||
15 | class => [ 'MooseX::UndefTolerant::Class' ], | ||||||
16 | } | ||||||
17 | ); | ||||||
18 | |||||||
19 | $self->$orig( $role, $class ); | ||||||
20 | }; | ||||||
21 | |||||||
22 | 1 | 1 | 3352 | no Moose::Role; | |||
1 | 2 | ||||||
1 | 3 | ||||||
23 | |||||||
24 | 1; |