| 1 | 1 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Data::Conveyor::Ticket::Payload::Instruction::Container_TEST; | ||
| 6 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | $Data::Conveyor::Ticket::Payload::Instruction::Container_TEST::VERSION = '1.103130'; | |
| 8 | } | ||
| 9 | # ABSTRACT: Stage-based conveyor-belt-like ticket handling system | ||
| 10 | |||
| 11 | 1 | ▶ | use Test::More; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | ▶ | use parent 'Data::Conveyor::Test'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | use constant PLAN => 1; | ||
| 14 | |||
| 15 | sub gen_filled_container { | ||
| 16 | my ($self, @instruction_specs) = @_; | ||
| 17 | my $container = $self->delegate->make_obj('payload_instruction_container'); | ||
| 18 | our $factory ||= $self->delegate->make_obj('payload_instruction_factory'); | ||
| 19 | for my $spec (@instruction_specs) { | ||
| 20 | my ($command, $type, $value) = @$spec; | ||
| 21 | $container->items_push( | ||
| 22 | $factory->gen_instruction( | ||
| 23 | $type, | ||
| 24 | command => $self->delegate->$command, | ||
| 25 | value => $value | ||
| 26 | ) | ||
| 27 | ); | ||
| 28 | } | ||
| 29 | $container; | ||
| 30 | } | ||
| 31 | |||
| 32 | sub run { | ||
| 33 | my $self = shift; | ||
| 34 | $self->SUPER::run(@_); | ||
| 35 | pass('dummy test to keep class tests happy'); | ||
| 36 | } | ||
| 37 | 1; | ||
| 38 | |||
| 39 | |||
| 40 | __END__ | ||