StateML/Event.pm

filter: Statementstmt 28.5% 8 / 28 Branchbran 0.0% 0 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 3 / 9 Podpod 14.2% 1 / 7 totaltotal 22.2% 12 / 54 CC 6 SCAR 15.4
CC
6
Cov
21%
api
6.0
description
6.0
pre_handlers
6.0
CRAP 4.6
« StateML/Action.pm ↑ Summary StateML/State.pm »
1 package StateML::Event ;
2  
3 3 ▶use strict ;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use base qw(StateML::Object ) ;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
7 3 return shift()->SUPER::new(
8 API => undef,
9 PRE_HANDLERS => [],
10 POST_HANDLERS => [],
11 HANDLERS => [],
12 @_
13 ) ;
14 }
15  
16  
17 0 ▶sub api {
Subroutine api: not called CC=2 SCAR=17.9
Pod undocumented
18 0 my $self = shift ;
19 0 ▶ $self->{API} = shift if @_ ;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 0 0
20 0 return $self->{API} ;
21 }
22  
23 0 ▶sub description {
Subroutine description: not called CC=2 SCAR=17.9
Pod undocumented
24 0 my $self = shift ;
25 0 ▶ $self->{DESCRIPTION} = shift if @_ ;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 0 0
26 0 return $self->{DESCRIPTION};
27 }
28  
29 0 ▶sub pre_handlers {
Subroutine pre_handlers: not called CC=2 SCAR=17.9
Pod undocumented
30 0 my $self = shift ;
31 0 ▶ $self->{PRE_HANDLERS} = @_ if @_ ;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 0 0
32 0 return @{$self->{PRE_HANDLERS}} ;
33 }
34  
35  
36 0 ▶sub handlers {
Subroutine handlers: not called CC=2 SCAR=17.9
Pod undocumented
37 0 my $self = shift ;
38 0 ▶ $self->{HANDLERS} = @_ if @_ ;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 0 0
39 0 return @{$self->{HANDLERS}} ;
40 }
41  
42 0 ▶sub post_handlers {
Subroutine post_handlers: not called CC=2 SCAR=17.9
Pod undocumented
43 0 my $self = shift ;
44 0 ▶ $self->{POST_HANDLERS} = @_ if @_ ;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 0 0
45 0 return @{$self->{POST_HANDLERS}} ;
46 }
47  
48  
49 0 ▶sub arcs {
Subroutine arcs: not called CC=1 SCAR=6.9
Pod undocumented
50 0 my $self = shift ;
51 0 return $self->machine->arcs_for_event( $self ) ;
52 }
53  
54 3 1 ;
« StateML/Action.pm ↑ Summary StateML/State.pm »