POE/Meta/Role.pm

filter: Statementstmt 85.0% 17 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 76.9% 20 / 26 CC 2 SCAR 11.0
CC
2
Cov
77%
__ANON__
6.0
BEGIN
1.0
__ANON__
1.0
CRAP 3.0
↑ Summary POE/Aliased.pm »
1 package MooseX::POE::Meta::Role;
2 {
3 5 $MooseX::POE::Meta::Role::VERSION = '0.215';
4 }
5 # ABSTRACT: Pay no attention to this.
6 5 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 5 with qw(MooseX::POE::Meta::Trait);
8  
9 5 ▶around default_events => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
10 5 my ( $orig, $self ) = @_;
11 5 my $events = $orig->($self);
12 5 push @$events, grep { s/^on_(\w+)/$1/; } $self->get_method_list;
13 5 return $events;
14 5 };
15  
16 0 ▶around get_state_method_name => sub {
Subroutine __ANON__: not called CC=2 SCAR=17.9
17 0 my ( $orig, $self, $name ) = @_;
18 0 ▶ return 'on_' . $name if $self->has_method( 'on_' . $name );
Branch: 1 branch
BranchTrueFalseTotal
if $self->has_method('on_' . $name) 0 0 0
19 0 return $orig->( $self, $name );
20 5 };
21  
22  
23 5 ▶no Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 5 1;
26  
27  
28 __END__
↑ Summary POE/Aliased.pm »