POE/Meta/Role.pm

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