File Coverage

blib/lib/Data/Conveyor/Stage.pm
Criterion Covered Total %
statement 19 26 73.0
branch n/a
condition n/a
subroutine 7 11 63.6
pod 4 4 100.0
total 30 41 73.1


line stmt bran cond sub pod time code
1 1     1   541 use 5.008;
  1         4  
  1         42  
2 1     1   5 use strict;
  1         2  
  1         29  
3 1     1   6 use warnings;
  1         2  
  1         38  
4              
5             package Data::Conveyor::Stage;
6             BEGIN {
7 1     1   24 $Data::Conveyor::Stage::VERSION = '1.103130';
8             }
9             # ABSTRACT: Stage-based conveyor-belt-like ticket handling system
10              
11             # Base class for stages.
12             #
13             # To use it, create an object of this class, set the ticket and
14             # call run(). You can then read the status the stage's ticket and act on it.
15 1     1   5 use Error::Hierarchy::Util 'assert_defined';
  1         2  
  1         47  
16 1     1   5 use parent 'Class::Scaffold::Storable';
  1         1  
  1         6  
17             __PACKAGE__->mk_scalar_accessors(qw(will_shift_ticket));
18 1     1   105 use constant DEFAULTS => (will_shift_ticket => 1,);
  1         2  
  1         166  
19              
20             sub run {
21 0     0 1   my $self = shift;
22 0           $self->begin;
23 0           $self->main;
24 0           $self->end;
25             }
26 0     0 1   sub begin { }
27 0     0 1   sub main { }
28 0     0 1   sub end { }
29             1;
30              
31              
32             __END__