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