line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Stream::Plugin::Spec; |
2
|
27
|
|
|
27
|
|
804
|
use strict; |
|
27
|
|
|
|
|
54
|
|
|
27
|
|
|
|
|
675
|
|
3
|
27
|
|
|
27
|
|
140
|
use warnings; |
|
27
|
|
|
|
|
58
|
|
|
27
|
|
|
|
|
746
|
|
4
|
|
|
|
|
|
|
|
5
|
27
|
|
|
27
|
|
133
|
use Carp qw/confess croak/; |
|
27
|
|
|
|
|
58
|
|
|
27
|
|
|
|
|
1494
|
|
6
|
27
|
|
|
27
|
|
144
|
use Scalar::Util qw/weaken/; |
|
27
|
|
|
|
|
54
|
|
|
27
|
|
|
|
|
1118
|
|
7
|
|
|
|
|
|
|
|
8
|
27
|
|
|
27
|
|
144
|
use Test::Stream::Plugin; |
|
27
|
|
|
|
|
50
|
|
|
27
|
|
|
|
|
174
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
use Test::Stream::Workflow( |
11
|
27
|
|
|
|
|
267
|
qw{ |
12
|
|
|
|
|
|
|
unimport |
13
|
|
|
|
|
|
|
group_builder |
14
|
|
|
|
|
|
|
gen_unit_builder |
15
|
|
|
|
|
|
|
}, |
16
|
|
|
|
|
|
|
group_builder => {-as => 'describe'}, |
17
|
|
|
|
|
|
|
group_builder => {-as => 'cases'}, |
18
|
27
|
|
|
27
|
|
179
|
); |
|
27
|
|
|
|
|
49
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub load_ts_plugin { |
21
|
27
|
|
|
27
|
0
|
70
|
my $class = shift; |
22
|
27
|
|
|
|
|
57
|
my $caller = shift; |
23
|
|
|
|
|
|
|
|
24
|
27
|
|
|
|
|
233
|
Test::Stream::Workflow::Meta->build( |
25
|
|
|
|
|
|
|
$caller->[0], |
26
|
|
|
|
|
|
|
$caller->[1], |
27
|
|
|
|
|
|
|
$caller->[2], |
28
|
|
|
|
|
|
|
'EOF', |
29
|
|
|
|
|
|
|
); |
30
|
|
|
|
|
|
|
|
31
|
27
|
|
|
|
|
212
|
Test::Stream::Exporter::export_from($class, $caller->[0], \@_); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
27
|
|
|
27
|
|
168
|
use Test::Stream::Exporter qw/default_exports/; |
|
27
|
|
|
|
|
54
|
|
|
27
|
|
|
|
|
180
|
|
35
|
|
|
|
|
|
|
default_exports qw{ |
36
|
|
|
|
|
|
|
describe cases |
37
|
|
|
|
|
|
|
before_all after_all around_all |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
tests it |
40
|
|
|
|
|
|
|
before_each after_each around_each |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
case |
43
|
|
|
|
|
|
|
before_case after_case around_case |
44
|
|
|
|
|
|
|
}; |
45
|
27
|
|
|
27
|
|
150
|
no Test::Stream::Exporter; |
|
27
|
|
|
|
|
59
|
|
|
27
|
|
|
|
|
126
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
BEGIN { |
48
|
27
|
|
|
27
|
|
186
|
*tests = gen_unit_builder(name => 'tests', callback => 'simple', stashes => ['primary']); |
49
|
27
|
|
|
|
|
127
|
*it = gen_unit_builder(name => 'it', callback => 'simple', stashes => ['primary']); |
50
|
27
|
|
|
|
|
128
|
*case = gen_unit_builder(name => 'case', callback => 'simple', stashes => ['modify']); |
51
|
27
|
|
|
|
|
145
|
*before_all = gen_unit_builder(name => 'before_all', callback => 'simple', stashes => ['buildup']); |
52
|
27
|
|
|
|
|
131
|
*after_all = gen_unit_builder(name => 'after_all', callback => 'simple', stashes => ['teardown']); |
53
|
27
|
|
|
|
|
136
|
*around_all = gen_unit_builder(name => 'around_all', callback => 'simple', stashes => ['buildup', 'teardown']); |
54
|
27
|
|
|
|
|
150
|
*before_case = gen_unit_builder(name => 'before_case', callback => 'modifiers', stashes => ['buildup']); |
55
|
27
|
|
|
|
|
131
|
*after_case = gen_unit_builder(name => 'after_case', callback => 'modifiers', stashes => ['teardown']); |
56
|
27
|
|
|
|
|
132
|
*around_case = gen_unit_builder(name => 'around_case', callback => 'modifiers', stashes => ['buildup', 'teardown']); |
57
|
27
|
|
|
|
|
126
|
*before_each = gen_unit_builder(name => 'before_each', callback => 'primaries', stashes => ['buildup']); |
58
|
27
|
|
|
|
|
129
|
*after_each = gen_unit_builder(name => 'after_each', callback => 'primaries', stashes => ['teardown']); |
59
|
27
|
|
|
|
|
128
|
*around_each = gen_unit_builder(name => 'around_each', callback => 'primaries', stashes => ['buildup', 'teardown']); |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
1; |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
__END__ |