Workflow/State.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod 100% 1 / 1 totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
accept_instance
1.0
CRAP 1.0
« Workflow/Instance/Simple.pm ↑ Summary
1 #!/usr/bin/perl
2  
3 package Class::Workflow::State;
4 5 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 5 requires "transitions"; # enumerate the transitions
7  
8 5 requires "has_transition";
9 5 requires "has_transitions";
10  
11 11 ▶sub accept_instance {
Subroutine accept_instance: called CC=1 SCAR=0.0
Pod documented
12 11 my ( $self, $instance, @args ) = @_;
13 11 return $instance;
14 }
15  
16 5 __PACKAGE__;
17  
18 __END__
« Workflow/Instance/Simple.pm ↑ Summary