File Coverage

blib/lib/MooseX/SingleArg/Meta/ToRole.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            
2            
3 1     1   7147

perltidy

  1         3  
  1         13  
4            
 
5             package # Hide from the indexer. MooseX::SingleArg::Meta::ToRole; use Moose::Role; around apply => sub{ my $orig = shift; my $self = shift; my $from_role = shift; my $to_role = shift; $to_role = Moose::Util::MetaRole::apply_metaroles( for => $to_role, role_metaroles => { role => ['MooseX::SingleArg::Meta::Role'], application_to_class => ['MooseX::SingleArg::Meta::ToClass'], application_to_role => ['MooseX::SingleArg::Meta::ToRole'], }, ); $to_role->single_arg( $from_role->single_arg() ) if $from_role->has_single_arg(); $to_role->force_single_arg( $from_role->force_single_arg() ); return $self->$orig( $from_role, $to_role ); }; 1;