line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Workflow::Meta; |
2
|
137
|
|
|
137
|
|
758
|
use strict; |
|
137
|
|
|
|
|
274
|
|
|
137
|
|
|
|
|
3201
|
|
3
|
137
|
|
|
137
|
|
539
|
use warnings; |
|
137
|
|
|
|
|
222
|
|
|
137
|
|
|
|
|
3391
|
|
4
|
|
|
|
|
|
|
|
5
|
137
|
|
|
137
|
|
44616
|
use Test::Workflow::Layer; |
|
137
|
|
|
|
|
356
|
|
|
137
|
|
|
|
|
3354
|
|
6
|
137
|
|
|
137
|
|
706
|
use Test::Builder; |
|
137
|
|
|
|
|
256
|
|
|
137
|
|
|
|
|
3246
|
|
7
|
|
|
|
|
|
|
|
8
|
137
|
|
|
137
|
|
698
|
use Fennec::Util qw/accessors/; |
|
137
|
|
|
|
|
295
|
|
|
137
|
|
|
|
|
669
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
accessors qw{ |
11
|
|
|
|
|
|
|
test_class build_complete root_layer test_run test_wait test_sort ok diag |
12
|
|
|
|
|
|
|
skip todo_start todo_end control_store |
13
|
|
|
|
|
|
|
}; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub new { |
16
|
140
|
|
|
140
|
0
|
282
|
my $class = shift; |
17
|
140
|
|
|
|
|
295
|
my ($test_class) = @_; |
18
|
|
|
|
|
|
|
|
19
|
140
|
|
|
|
|
279
|
my $tb = "tb"; |
20
|
|
|
|
|
|
|
|
21
|
140
|
|
|
|
|
553
|
my $root_layer = Test::Workflow::Layer->new(); |
22
|
|
|
|
|
|
|
|
23
|
140
|
|
|
|
|
2669
|
my $self = bless( |
24
|
|
|
|
|
|
|
{ |
25
|
|
|
|
|
|
|
test_class => $test_class, |
26
|
|
|
|
|
|
|
root_layer => $root_layer, |
27
|
|
|
|
|
|
|
ok => Fennec::Util->can("${tb}_ok"), |
28
|
|
|
|
|
|
|
diag => Fennec::Util->can("${tb}_diag"), |
29
|
|
|
|
|
|
|
skip => Fennec::Util->can("${tb}_skip"), |
30
|
|
|
|
|
|
|
todo_start => Fennec::Util->can("${tb}_todo_start"), |
31
|
|
|
|
|
|
|
todo_end => Fennec::Util->can("${tb}_todo_end"), |
32
|
|
|
|
|
|
|
layer_stack => [$root_layer], |
33
|
|
|
|
|
|
|
}, |
34
|
|
|
|
|
|
|
$class |
35
|
|
|
|
|
|
|
); |
36
|
|
|
|
|
|
|
|
37
|
140
|
|
|
|
|
527
|
return $self; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
my @LAYER_STACK; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub push_layer { |
43
|
198
|
|
|
198
|
0
|
401
|
my $self = shift; |
44
|
198
|
|
|
|
|
400
|
push @LAYER_STACK => @_; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub pop_layer { |
48
|
198
|
|
|
198
|
0
|
395
|
my $self = shift; |
49
|
198
|
|
|
|
|
337
|
my ($check) = @_; |
50
|
198
|
|
|
|
|
583
|
my $layer = pop @LAYER_STACK; |
51
|
198
|
50
|
|
|
|
574
|
die "Bad pop!" unless $layer == $check; |
52
|
198
|
|
|
|
|
345
|
return $layer; |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
sub peek_layer { |
56
|
1294
|
|
|
1294
|
0
|
1563
|
my $self = shift; |
57
|
1294
|
|
|
|
|
2054
|
return $LAYER_STACK[-1]; |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
__END__ |