line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Classy::Base; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
45165
|
use strict; |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
264
|
|
4
|
8
|
|
|
8
|
|
38
|
use warnings; |
|
8
|
|
|
|
|
9
|
|
|
8
|
|
|
|
|
202
|
|
5
|
8
|
|
|
8
|
|
34
|
use base qw( Class::Data::Inheritable ); |
|
8
|
|
|
|
|
16
|
|
|
8
|
|
|
|
|
4496
|
|
6
|
8
|
|
|
8
|
|
2546
|
use Test::More (); |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
118
|
|
7
|
8
|
|
|
8
|
|
4388
|
use Data::Dump; |
|
8
|
|
|
|
|
41426
|
|
|
8
|
|
|
|
|
609
|
|
8
|
8
|
|
|
8
|
|
911
|
use Class::Inspector; |
|
8
|
|
|
|
|
4579
|
|
|
8
|
|
|
|
|
230
|
|
9
|
8
|
|
|
8
|
|
5329
|
use Encode; |
|
8
|
|
|
|
|
72077
|
|
|
8
|
|
|
|
|
806
|
|
10
|
8
|
|
|
8
|
|
3456
|
use Term::Encoding; |
|
8
|
|
|
|
|
4130
|
|
|
8
|
|
|
|
|
323
|
|
11
|
8
|
|
|
8
|
|
425
|
use Test::Classy::Util; |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
565
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
my $ENCODE = eval { find_encoding(Term::Encoding::get_encoding()) }; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub import { |
16
|
45
|
|
|
45
|
|
8786
|
my ($class, @flags) = @_; |
17
|
45
|
|
|
|
|
83
|
my $caller = caller; |
18
|
|
|
|
|
|
|
|
19
|
45
|
100
|
|
|
|
167
|
if ( $class ne __PACKAGE__ ) { |
20
|
25
|
100
|
|
|
|
202
|
return unless grep { $_ eq 'base' } @flags; |
|
2
|
|
|
|
|
7
|
|
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
8
|
|
|
8
|
|
40
|
no strict 'refs'; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
4272
|
|
24
|
22
|
|
|
|
|
25
|
push @{"$caller\::ISA"}, $class; |
|
22
|
|
|
|
|
245
|
|
25
|
|
|
|
|
|
|
|
26
|
22
|
50
|
|
|
|
55
|
Test::Stream::Toolset::init_tester($caller) if $INC{'Test/Stream/Toolset.pm'}; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
# XXX: not sure why but $TODO refused to be exported well |
29
|
22
|
|
|
|
|
30
|
*{"$caller\::TODO"} = \$Test::More::TODO; |
|
22
|
|
|
|
|
86
|
|
30
|
|
|
|
|
|
|
|
31
|
22
|
|
|
|
|
48
|
foreach my $export ( @Test::More::EXPORT ) { |
32
|
616
|
100
|
|
|
|
1193
|
next if $export =~ /^\W/; |
33
|
594
|
|
|
|
|
412
|
*{"$caller\::$export"} = \&{"Test::More\::$export"}; |
|
594
|
|
|
|
|
1740
|
|
|
594
|
|
|
|
|
1017
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
22
|
100
|
|
|
|
58
|
if ( grep { $_ eq 'ignore' or $_ eq 'ignore_me' } @flags ) { |
|
4
|
100
|
|
|
|
21
|
|
37
|
2
|
|
|
|
|
2
|
${"$caller\::_ignore_me"} = 1; |
|
2
|
|
|
|
|
13
|
|
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
22
|
100
|
|
|
|
219
|
if ( $class eq __PACKAGE__ ) { |
41
|
20
|
|
|
|
|
199
|
$caller->mk_classdata( _tests => {} ); |
42
|
20
|
|
|
|
|
442
|
$caller->mk_classdata( _plan => 0 ); |
43
|
20
|
|
|
|
|
266
|
$caller->mk_classdata( test_name => '' ); |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub MODIFY_CODE_ATTRIBUTES { |
48
|
56
|
|
|
56
|
|
20792
|
my ($class, $code, @attrs) = @_; |
49
|
|
|
|
|
|
|
|
50
|
56
|
|
|
|
|
71
|
my %stash; |
51
|
56
|
|
|
|
|
82
|
foreach my $attr ( @attrs ) { |
52
|
76
|
100
|
|
|
|
405
|
if ( $attr eq 'Test' ) { |
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
53
|
23
|
|
|
|
|
58
|
$stash{plan} = 1; |
54
|
|
|
|
|
|
|
} |
55
|
|
|
|
|
|
|
elsif ( my ($dummy, $plan) = $attr =~ /^Tests?\((['"]?)(\d+|no_plan)\1\)$/ ) { |
56
|
29
|
|
|
|
|
80
|
$stash{plan} = $plan; |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
elsif ( my ($type, $dummy2, $reason) = $attr =~ /^(Skip|TODO)(?:\((['"]?)(.+)\)\2)?$/ ) { |
59
|
19
|
|
|
|
|
46
|
$stash{$type} = $reason; |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
else { |
62
|
5
|
|
|
|
|
16
|
$stash{$attr} = 1; |
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
} |
65
|
56
|
100
|
|
|
|
136
|
return unless $stash{plan}; |
66
|
|
|
|
|
|
|
|
67
|
52
|
100
|
|
|
|
101
|
if ( $stash{plan} eq 'no_plan' ) { |
68
|
3
|
100
|
|
|
|
9
|
Test::More::plan 'no_plan' unless Test::Classy::Util::_planned(); |
69
|
3
|
|
|
|
|
67
|
$stash{plan} = 0; |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
|
72
|
52
|
|
|
|
|
154
|
$class->_plan( $class->_plan + $stash{plan} ); |
73
|
|
|
|
|
|
|
|
74
|
52
|
|
|
|
|
601
|
$stash{code} = $code; |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
# At this point, the name looks like CODE(...) |
77
|
|
|
|
|
|
|
# we'll make it human-readable later, with class inspection |
78
|
52
|
|
|
|
|
120
|
$class->_tests->{$code} = \%stash; |
79
|
|
|
|
|
|
|
|
80
|
52
|
|
|
|
|
471
|
return; |
81
|
|
|
|
|
|
|
} |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
sub _limit { |
84
|
2
|
|
|
2
|
|
2
|
my ($class, @monikers) = @_; |
85
|
|
|
|
|
|
|
|
86
|
2
|
|
|
|
|
5
|
my $tests = $class->_tests; |
87
|
2
|
|
|
|
|
10
|
my $reason = 'limited by attributes'; |
88
|
|
|
|
|
|
|
|
89
|
2
|
|
|
|
|
4
|
LOOP: |
90
|
2
|
|
|
|
|
3
|
foreach my $name ( keys %{ $tests } ) { |
91
|
3
|
|
|
|
|
3
|
foreach my $moniker ( @monikers ) { |
92
|
3
|
100
|
|
|
|
9
|
next LOOP if exists $tests->{$name}->{$moniker}; |
93
|
|
|
|
|
|
|
} |
94
|
2
|
|
|
|
|
7
|
$tests->{$name}->{Skip} = $reason; |
95
|
|
|
|
|
|
|
} |
96
|
|
|
|
|
|
|
} |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
sub _should_be_ignored { |
99
|
18
|
|
|
18
|
|
26
|
my $class = shift; |
100
|
|
|
|
|
|
|
|
101
|
8
|
|
|
8
|
|
46
|
{ no strict 'refs'; |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
3349
|
|
|
18
|
|
|
|
|
23
|
|
102
|
18
|
100
|
|
|
|
19
|
if ( ${"$class\::_ignore_me"} ) { |
|
18
|
|
|
|
|
129
|
|
103
|
2
|
|
|
|
|
7
|
SKIP: { |
104
|
2
|
|
|
|
|
3
|
Test::More::skip 'a base class, not to test', $class->_plan; |
105
|
|
|
|
|
|
|
} |
106
|
2
|
|
|
|
|
528
|
return 1; |
107
|
|
|
|
|
|
|
} |
108
|
|
|
|
|
|
|
} |
109
|
|
|
|
|
|
|
} |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
sub _find_symbols { |
112
|
16
|
|
|
16
|
|
24
|
my $class = shift; |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
# to allow multibyte method names |
115
|
16
|
|
|
|
|
52
|
local $Class::Inspector::RE_IDENTIFIER = qr/.+/s; |
116
|
|
|
|
|
|
|
|
117
|
16
|
|
|
|
|
7471
|
my $methods = Class::Inspector->methods($class, 'expanded'); |
118
|
|
|
|
|
|
|
|
119
|
16
|
|
|
|
|
12184
|
my %symbols; |
120
|
16
|
|
|
|
|
20
|
foreach my $entry ( @{ $methods } ) { |
|
16
|
|
|
|
|
38
|
|
121
|
1097
|
|
|
|
|
1565
|
$symbols{$entry->[3]} = $entry->[2]; # coderef to sub name |
122
|
|
|
|
|
|
|
} |
123
|
16
|
|
|
|
|
565
|
return %symbols; |
124
|
|
|
|
|
|
|
} |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
sub _run_tests { |
127
|
18
|
|
|
18
|
|
35
|
my ($class, @args) = @_; |
128
|
|
|
|
|
|
|
|
129
|
18
|
100
|
|
|
|
81
|
return if $class->_should_be_ignored; |
130
|
|
|
|
|
|
|
|
131
|
16
|
|
|
|
|
73
|
my %sym = $class->_find_symbols; |
132
|
|
|
|
|
|
|
|
133
|
16
|
|
|
|
|
132
|
$class->test_name( undef ); |
134
|
|
|
|
|
|
|
|
135
|
16
|
|
|
|
|
244
|
$class->initialize(@args); |
136
|
|
|
|
|
|
|
|
137
|
16
|
|
|
|
|
44
|
my $tests = $class->_tests; |
138
|
|
|
|
|
|
|
|
139
|
16
|
|
|
|
|
86
|
foreach my $name ( sort { $sym{$a} cmp $sym{$b} } grep { $sym{$_} } keys %{ $tests } ) { |
|
37
|
|
|
|
|
55
|
|
|
43
|
|
|
|
|
70
|
|
|
16
|
|
|
|
|
44
|
|
140
|
37
|
50
|
|
|
|
719
|
next if $sym{$name} =~ /^(?:initialize|finalize)$/; |
141
|
|
|
|
|
|
|
|
142
|
37
|
100
|
|
|
|
135
|
if ( my $reason = $class->_should_skip_this_class ) { |
143
|
6
|
|
|
|
|
8
|
SKIP: { Test::More::skip $class->message($reason), $tests->{$name}->{plan}; } |
|
6
|
|
|
|
|
20
|
|
144
|
6
|
|
|
|
|
1906
|
next; |
145
|
|
|
|
|
|
|
} |
146
|
|
|
|
|
|
|
|
147
|
31
|
|
|
|
|
136
|
$class->_run_test( $tests->{$name}, $sym{$name}, @args ); |
148
|
|
|
|
|
|
|
} |
149
|
|
|
|
|
|
|
|
150
|
16
|
|
|
|
|
122
|
$class->finalize(@args); |
151
|
|
|
|
|
|
|
} |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
sub _run_test { |
154
|
31
|
|
|
31
|
|
53
|
my ($class, $test, $name, @args) = @_; |
155
|
|
|
|
|
|
|
|
156
|
31
|
|
|
|
|
145
|
$class->test_name( $name ); |
157
|
31
|
|
|
|
|
242
|
$class->_clear_skip_flag; |
158
|
|
|
|
|
|
|
|
159
|
31
|
100
|
|
|
|
137
|
if ( exists $test->{TODO} ) { |
|
|
100
|
|
|
|
|
|
160
|
7
|
100
|
|
|
|
16
|
my $reason = defined $test->{TODO} |
161
|
|
|
|
|
|
|
? $test->{TODO} |
162
|
|
|
|
|
|
|
: "$name is not implemented"; |
163
|
|
|
|
|
|
|
|
164
|
7
|
100
|
|
|
|
18
|
if ( exists $test->{Skip} ) { # todo skip |
165
|
1
|
|
|
|
|
4
|
TODO: { |
166
|
1
|
|
|
|
|
2
|
Test::More::todo_skip $class->message($reason), $test->{plan}; |
167
|
|
|
|
|
|
|
} |
168
|
|
|
|
|
|
|
} |
169
|
|
|
|
|
|
|
else { |
170
|
8
|
|
|
|
|
2586
|
TODO: { |
171
|
8
|
|
|
8
|
|
40
|
no strict 'refs'; |
|
8
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
5
|
|
172
|
6
|
|
|
|
|
15
|
local ${"$class\::TODO"} = $class->message($reason); # perl 5.6.2 hates this |
|
6
|
|
|
|
|
16
|
|
173
|
|
|
|
|
|
|
|
174
|
6
|
|
|
|
|
16
|
$class->__run_test($test, @args); |
175
|
|
|
|
|
|
|
} |
176
|
|
|
|
|
|
|
} |
177
|
7
|
|
|
|
|
855
|
return; |
178
|
|
|
|
|
|
|
} |
179
|
|
|
|
|
|
|
elsif ( exists $test->{Skip} ) { |
180
|
5
|
100
|
|
|
|
15
|
my $reason = defined $test->{Skip} |
181
|
|
|
|
|
|
|
? $test->{Skip} |
182
|
|
|
|
|
|
|
: "skipped $name"; |
183
|
5
|
|
|
|
|
5
|
SKIP: { Test::More::skip $class->message($reason), $test->{plan}; } |
|
5
|
|
|
|
|
12
|
|
184
|
5
|
|
|
|
|
1633
|
return; |
185
|
|
|
|
|
|
|
} |
186
|
|
|
|
|
|
|
|
187
|
19
|
|
|
|
|
71
|
$class->__run_test($test, @args); |
188
|
|
|
|
|
|
|
} |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
sub __run_test { |
191
|
25
|
|
|
25
|
|
38
|
my ($class, $test, @args) = @_; |
192
|
|
|
|
|
|
|
|
193
|
25
|
|
|
|
|
99
|
my $current = Test::Classy::Util::_current_test(); |
194
|
|
|
|
|
|
|
|
195
|
25
|
|
|
|
|
319
|
local $@; |
196
|
25
|
|
|
|
|
30
|
eval { $test->{code}($class, @args); }; |
|
25
|
|
|
|
|
110
|
|
197
|
25
|
100
|
|
|
|
9895
|
if ( $@ ) { |
198
|
3
|
|
|
|
|
6
|
my $done = Test::Classy::Util::_current_test() - $current; |
199
|
3
|
|
|
|
|
26
|
my $rest = $test->{plan} - $done; |
200
|
3
|
50
|
|
|
|
6
|
if ( $rest ) { |
201
|
3
|
50
|
|
|
|
6
|
if ( exists $test->{TODO} ) { |
202
|
3
|
50
|
|
|
|
7
|
my $reason = defined $test->{TODO} |
203
|
|
|
|
|
|
|
? $test->{TODO} |
204
|
|
|
|
|
|
|
: 'not implemented'; |
205
|
3
|
|
|
|
|
9
|
TODO: { |
206
|
3
|
|
|
|
|
2
|
Test::More::todo_skip( $class->message("$reason: $@"), $rest ); |
207
|
|
|
|
|
|
|
} |
208
|
|
|
|
|
|
|
} |
209
|
|
|
|
|
|
|
else { |
210
|
0
|
|
|
|
|
0
|
for ( 1 .. $rest ) { |
211
|
0
|
|
|
|
|
0
|
Test::More::ok( 0, $class->message($@) ); |
212
|
|
|
|
|
|
|
} |
213
|
|
|
|
|
|
|
} |
214
|
|
|
|
|
|
|
} |
215
|
|
|
|
|
|
|
} |
216
|
|
|
|
|
|
|
|
217
|
25
|
100
|
|
|
|
1218
|
if ( my $reason = $class->_is_skipped ) { |
218
|
3
|
|
|
|
|
8
|
my $done = Test::Classy::Util::_current_test() - $current; |
219
|
3
|
|
|
|
|
45
|
my $rest = $test->{plan} - $done; |
220
|
3
|
100
|
|
|
|
12
|
if ( $rest ) { |
221
|
2
|
|
|
|
|
6
|
for ( 1 .. $rest ) { |
222
|
2
|
|
|
|
|
7
|
Test::More->builder->skip( $class->message($reason) ); |
223
|
|
|
|
|
|
|
} |
224
|
|
|
|
|
|
|
} |
225
|
|
|
|
|
|
|
} |
226
|
|
|
|
|
|
|
} |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
sub skip_this_class { |
229
|
4
|
|
|
4
|
1
|
44
|
my ($class, $reason) = @_; |
230
|
|
|
|
|
|
|
|
231
|
8
|
|
|
8
|
|
41
|
no strict 'refs'; |
|
8
|
|
|
|
|
9
|
|
|
8
|
|
|
|
|
633
|
|
232
|
4
|
|
100
|
|
|
16
|
${"$class\::_skip_this_class"} = $reason || 'for some reason'; |
|
4
|
|
|
|
|
22
|
|
233
|
|
|
|
|
|
|
} |
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
*skip_the_rest = \&skip_this_class; |
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
sub _should_skip_this_class { |
238
|
37
|
|
|
37
|
|
42
|
my $class = shift; |
239
|
|
|
|
|
|
|
|
240
|
8
|
|
|
8
|
|
40
|
no strict 'refs'; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
509
|
|
241
|
37
|
|
|
|
|
38
|
return ${"$class\::_skip_this_class"}; |
|
37
|
|
|
|
|
184
|
|
242
|
|
|
|
|
|
|
} |
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
sub skip_this_test { |
245
|
3
|
|
|
3
|
1
|
5
|
my ($class, $reason) = @_; |
246
|
|
|
|
|
|
|
|
247
|
8
|
|
|
8
|
|
38
|
no strict 'refs'; |
|
8
|
|
|
|
|
10
|
|
|
8
|
|
|
|
|
581
|
|
248
|
3
|
|
100
|
|
|
14
|
${"$class\::_skip_this_test"} = $reason || 'for some reason'; |
|
3
|
|
|
|
|
20
|
|
249
|
|
|
|
|
|
|
} |
250
|
|
|
|
|
|
|
|
251
|
|
|
|
|
|
|
*abort_this_test = \&skip_this_test; |
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
sub _clear_skip_flag { |
254
|
31
|
|
|
31
|
|
45
|
my $class = shift; |
255
|
|
|
|
|
|
|
|
256
|
8
|
|
|
8
|
|
31
|
no strict 'refs'; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
369
|
|
257
|
31
|
|
|
|
|
30
|
${"$class\::_skip_this_test"} = ''; |
|
31
|
|
|
|
|
97
|
|
258
|
|
|
|
|
|
|
} |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
sub _is_skipped { |
261
|
25
|
|
|
25
|
|
27
|
my $class = shift; |
262
|
|
|
|
|
|
|
|
263
|
8
|
|
|
8
|
|
29
|
no strict 'refs'; |
|
8
|
|
|
|
|
8
|
|
|
8
|
|
|
|
|
2371
|
|
264
|
25
|
|
|
|
|
27
|
return ${"$class\::_skip_this_test"}; |
|
25
|
|
|
|
|
182
|
|
265
|
|
|
|
|
|
|
} |
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
sub dump { |
268
|
0
|
|
|
0
|
1
|
0
|
my $class = shift; |
269
|
0
|
|
|
|
|
0
|
Test::More::diag( Data::Dump::dump( @_ ) ); |
270
|
|
|
|
|
|
|
} |
271
|
|
|
|
|
|
|
|
272
|
|
|
|
|
|
|
sub message { |
273
|
56
|
|
|
56
|
1
|
1328
|
my ($class, $message) = @_; |
274
|
|
|
|
|
|
|
|
275
|
56
|
|
|
|
|
174
|
$message = $class->_prepend_class_name( $class->_prepend_test_name( $message ) ); |
276
|
|
|
|
|
|
|
|
277
|
56
|
50
|
33
|
|
|
357
|
$message = $ENCODE->encode($message) if $ENCODE && Encode::is_utf8($message); |
278
|
|
|
|
|
|
|
|
279
|
56
|
|
|
|
|
189
|
return $message; |
280
|
|
|
|
|
|
|
} |
281
|
|
|
|
|
|
|
|
282
|
|
|
|
|
|
|
sub _prepend_test_name { |
283
|
56
|
|
|
56
|
|
60
|
my ($class, $message) = @_; |
284
|
|
|
|
|
|
|
|
285
|
56
|
100
|
|
|
|
103
|
$message = '' unless defined $message; |
286
|
|
|
|
|
|
|
|
287
|
56
|
100
|
|
|
|
122
|
if ( my $name = $class->test_name ) { |
288
|
50
|
100
|
|
|
|
788
|
$message = "$name: $message" unless $message =~ /\b$name\b/; |
289
|
|
|
|
|
|
|
} |
290
|
|
|
|
|
|
|
|
291
|
56
|
|
|
|
|
217
|
return $message; |
292
|
|
|
|
|
|
|
} |
293
|
|
|
|
|
|
|
|
294
|
|
|
|
|
|
|
sub _prepend_class_name { |
295
|
56
|
|
|
56
|
|
58
|
my ($class, $message) = @_; |
296
|
|
|
|
|
|
|
|
297
|
56
|
50
|
|
|
|
95
|
$message = '' unless defined $message; |
298
|
|
|
|
|
|
|
|
299
|
56
|
50
|
|
|
|
361
|
if ( my ($name) = $class =~ /(\w+)$/ ) { |
300
|
56
|
100
|
|
|
|
320
|
$message = "$name: $message" unless $message =~ /\b$name\b/; |
301
|
|
|
|
|
|
|
} |
302
|
|
|
|
|
|
|
|
303
|
56
|
|
|
|
|
89
|
return $message; |
304
|
|
|
|
|
|
|
} |
305
|
|
|
|
|
|
|
|
306
|
11
|
|
|
11
|
1
|
12
|
sub initialize {} |
307
|
16
|
|
|
16
|
1
|
360
|
sub finalize {} |
308
|
|
|
|
|
|
|
|
309
|
|
|
|
|
|
|
1; |
310
|
|
|
|
|
|
|
|
311
|
|
|
|
|
|
|
__END__ |