| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# You may distribute under the terms of either the GNU General Public License |
|
2
|
|
|
|
|
|
|
# or the Artistic License (the same terms as Perl itself) |
|
3
|
|
|
|
|
|
|
# |
|
4
|
|
|
|
|
|
|
# (C) Paul Evans, 2015-2022 -- leonerd@leonerd.org.uk |
|
5
|
|
|
|
|
|
|
|
|
6
|
6
|
|
|
6
|
|
495778
|
use v5.26; |
|
|
6
|
|
|
|
|
76
|
|
|
7
|
6
|
|
|
6
|
|
3331
|
use Object::Pad 0.66; # field |
|
|
6
|
|
|
|
|
56031
|
|
|
|
6
|
|
|
|
|
33
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package Test::Device::Chip::Adapter 0.25; |
|
10
|
|
|
|
|
|
|
class Test::Device::Chip::Adapter |
|
11
|
6
|
|
|
6
|
|
3801
|
:does(Device::Chip::Adapter); |
|
|
6
|
|
|
|
|
19
|
|
|
|
6
|
|
|
|
|
247
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
6
|
|
|
6
|
|
995
|
use Carp; |
|
|
6
|
|
|
|
|
14
|
|
|
|
6
|
|
|
|
|
361
|
|
|
14
|
|
|
|
|
|
|
|
|
15
|
6
|
|
|
6
|
|
39
|
use Future::AsyncAwait; |
|
|
6
|
|
|
|
|
12
|
|
|
|
6
|
|
|
|
|
24
|
|
|
16
|
|
|
|
|
|
|
|
|
17
|
6
|
|
|
6
|
|
2824
|
use Test::Future::Deferred; |
|
|
6
|
|
|
|
|
3013
|
|
|
|
6
|
|
|
|
|
306
|
|
|
18
|
6
|
|
|
6
|
|
43
|
use List::Util 1.33 qw( first any ); |
|
|
6
|
|
|
|
|
102
|
|
|
|
6
|
|
|
|
|
651
|
|
|
19
|
6
|
|
|
6
|
|
44
|
use Test::Builder; |
|
|
6
|
|
|
|
|
63
|
|
|
|
6
|
|
|
|
|
212
|
|
|
20
|
|
|
|
|
|
|
|
|
21
|
6
|
|
|
6
|
|
2823
|
use Test::ExpectAndCheck::Future; |
|
|
6
|
|
|
|
|
81866
|
|
|
|
6
|
|
|
|
|
6131
|
|
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=encoding UTF-8 |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 NAME |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
C - unit testing on C |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
use Test::More; |
|
32
|
|
|
|
|
|
|
use Test::Device::Chip::Adapter; |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
use Future::AsyncAwait; |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
my $adapter = Test::Device::Chip::Adapter->new; |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
$chip_under_test->mount( $adapter ); |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
# An actual test |
|
41
|
|
|
|
|
|
|
$adapter->expect_readwrite( "123" ) |
|
42
|
|
|
|
|
|
|
->will_done( "45" ); |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
is( await $chip->do_thing( "123" ), "45", 'result of ->do_thing' ); |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
$adapter->check_and_clear( '->do_thing' ); |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This package provides a concrete implementation of L |
|
51
|
|
|
|
|
|
|
convenient for using in a unit-test script used to test a L |
|
52
|
|
|
|
|
|
|
instance. It operates in an "expect-and-check" style of mocking, requiring the |
|
53
|
|
|
|
|
|
|
test script to declare upfront what methods are expected to be called, and |
|
54
|
|
|
|
|
|
|
what values they return. |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Futures returned by this module will not yield results immediately; they must |
|
57
|
|
|
|
|
|
|
be awaited by a toplevel C keyword or invoking the C<< ->get >> method. |
|
58
|
|
|
|
|
|
|
This ensures that unit tests correctly perform the required asynchronisation. |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=cut |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
field $_protocol; |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
field $_controller; |
|
65
|
|
|
|
|
|
|
field $_obj; |
|
66
|
|
|
|
|
|
|
field $_txn_helper; |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
ADJUST |
|
69
|
|
|
|
|
|
|
{ |
|
70
|
|
|
|
|
|
|
( $_controller, $_obj ) = Test::Device::Chip::Adapter::_TestController->create; |
|
71
|
|
|
|
|
|
|
} |
|
72
|
|
|
|
|
|
|
|
|
73
|
1
|
|
|
|
|
2
|
method make_protocol_GPIO () |
|
|
1
|
|
|
|
|
2
|
|
|
74
|
1
|
|
|
1
|
0
|
3
|
{ |
|
75
|
1
|
|
|
|
|
2
|
$_protocol = "GPIO"; |
|
76
|
1
|
|
|
|
|
6
|
return Test::Future::Deferred->done_later( $self ); |
|
77
|
|
|
|
|
|
|
} |
|
78
|
|
|
|
|
|
|
|
|
79
|
3
|
|
|
|
|
7
|
method make_protocol_I2C () |
|
|
3
|
|
|
|
|
6
|
|
|
80
|
3
|
|
|
3
|
0
|
7
|
{ |
|
81
|
3
|
|
|
|
|
6
|
$_protocol = "I2C"; |
|
82
|
3
|
|
|
|
|
17
|
return Test::Future::Deferred->done_later( $self ); |
|
83
|
|
|
|
|
|
|
} |
|
84
|
|
|
|
|
|
|
|
|
85
|
2
|
|
|
|
|
5
|
method make_protocol_SPI () |
|
|
2
|
|
|
|
|
4
|
|
|
86
|
2
|
|
|
2
|
0
|
6
|
{ |
|
87
|
2
|
|
|
|
|
4
|
$_protocol = "SPI"; |
|
88
|
2
|
|
|
|
|
15
|
return Test::Future::Deferred->done_later( $self ); |
|
89
|
|
|
|
|
|
|
} |
|
90
|
|
|
|
|
|
|
|
|
91
|
1
|
|
|
|
|
3
|
method make_protocol_UART () |
|
|
1
|
|
|
|
|
2
|
|
|
92
|
1
|
|
|
1
|
0
|
2
|
{ |
|
93
|
1
|
|
|
|
|
3
|
$_protocol = "UART"; |
|
94
|
1
|
|
|
|
|
8
|
return Test::Future::Deferred->done_later( $self ); |
|
95
|
|
|
|
|
|
|
} |
|
96
|
|
|
|
|
|
|
|
|
97
|
0
|
|
|
|
|
0
|
method configure ( % ) |
|
|
0
|
|
|
|
|
0
|
|
|
98
|
0
|
|
|
0
|
0
|
0
|
{ |
|
99
|
0
|
|
|
|
|
0
|
Test::Future::Deferred->done_later; |
|
100
|
|
|
|
|
|
|
} |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head1 EXPECTATIONS |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
Each of the actual methods to be used by the L under test has an |
|
105
|
|
|
|
|
|
|
associated expectation method, whose name is prefixed C. Each returns |
|
106
|
|
|
|
|
|
|
an expectation object, which has additional methods to control the behaviour of |
|
107
|
|
|
|
|
|
|
that invocation. |
|
108
|
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
$exp = $adapter->expect_write_gpios( \%gpios ); |
|
110
|
|
|
|
|
|
|
$exp = $adapter->expect_read_gpios( \@gpios ); |
|
111
|
|
|
|
|
|
|
$exp = $adapter->expect_tris_gpios( \@gpios ); |
|
112
|
|
|
|
|
|
|
$exp = $adapter->expect_write( $bytes ); |
|
113
|
|
|
|
|
|
|
$exp = $adapter->expect_read( $len ); |
|
114
|
|
|
|
|
|
|
$exp = $adapter->expect_write_then_read( $bytes, $len ); |
|
115
|
|
|
|
|
|
|
$exp = $adapter->expect_readwrite( $bytes_out ); |
|
116
|
|
|
|
|
|
|
$exp = $adapter->expect_assert_ss; |
|
117
|
|
|
|
|
|
|
$exp = $adapter->expect_release_ss; |
|
118
|
|
|
|
|
|
|
$exp = $adapter->expect_readwrite_no_ss( $bytes_out ); |
|
119
|
|
|
|
|
|
|
$exp = $adapter->expect_write_no_ss( $bytes ); |
|
120
|
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
The returned expectation object allows the test script to specify what such an |
|
122
|
|
|
|
|
|
|
invocation should yield from its future. |
|
123
|
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
$exp->will_done( $bytes_in ); |
|
125
|
|
|
|
|
|
|
$exp->will_fail( $failure ); |
|
126
|
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
Expectations for an atomic I²C transaction are performed inline, using the |
|
128
|
|
|
|
|
|
|
following additional methods: |
|
129
|
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
$adapter->expect_txn_start(); |
|
131
|
|
|
|
|
|
|
$adapter->expect_txn_stop(); |
|
132
|
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
As a lot of existing unit tests may have already been written to the API shape |
|
134
|
|
|
|
|
|
|
provided by C version 0.03, the expectation |
|
135
|
|
|
|
|
|
|
object also recognises the C method as an alias to C. |
|
136
|
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
$exp->returns( $bytes_in ); |
|
138
|
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
This wrapper should be considered as a I back-compatibility measure |
|
140
|
|
|
|
|
|
|
however; it will eventually print a warning and perhaps then removed entirely. |
|
141
|
|
|
|
|
|
|
You should avoid using it in new code; just call C directly. |
|
142
|
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
=cut |
|
144
|
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
BEGIN { |
|
146
|
|
|
|
|
|
|
my %METHODS = ( |
|
147
|
|
|
|
|
|
|
sleep => [ undef, |
|
148
|
|
|
|
|
|
|
[qw( GPIO SPI I2C UART )] ], |
|
149
|
2
|
100
|
|
|
|
6
|
write_gpios => [ sub { my ( $v ) = @_; join ",", map { $v->{$_} ? $_ : "!$_" } sort keys %$v }, |
|
|
2
|
|
|
|
|
10
|
|
|
|
4
|
|
|
|
|
21
|
|
|
150
|
|
|
|
|
|
|
[qw( GPIO SPI I2C UART )] ], |
|
151
|
2
|
|
|
|
|
5
|
read_gpios => [ sub { my ( $v ) = @_; join ",", @$v }, |
|
|
2
|
|
|
|
|
9
|
|
|
152
|
|
|
|
|
|
|
[qw( GPIO SPI I2C UART )] ], |
|
153
|
0
|
|
|
|
|
0
|
tris_gpios => [ sub { my ( $v ) = @_; join ",", @$v }, |
|
|
0
|
|
|
|
|
0
|
|
|
154
|
6
|
|
|
6
|
|
10360
|
[qw( GPIO SPI I2C UART )] ], |
|
155
|
|
|
|
|
|
|
write => [ undef, |
|
156
|
|
|
|
|
|
|
[qw( SPI I2C UART )] ], |
|
157
|
|
|
|
|
|
|
read => [ undef, |
|
158
|
|
|
|
|
|
|
[qw( SPI I2C UART )] ], |
|
159
|
|
|
|
|
|
|
write_then_read => [ undef, |
|
160
|
|
|
|
|
|
|
[qw( SPI I2C )] ], |
|
161
|
|
|
|
|
|
|
readwrite => [ undef, |
|
162
|
|
|
|
|
|
|
[qw( SPI )] ], |
|
163
|
|
|
|
|
|
|
assert_ss => [ undef, |
|
164
|
|
|
|
|
|
|
[qw( SPI )] ], |
|
165
|
|
|
|
|
|
|
release_ss => [ undef, |
|
166
|
|
|
|
|
|
|
[qw( SPI )] ], |
|
167
|
|
|
|
|
|
|
write_no_ss => [ undef, |
|
168
|
|
|
|
|
|
|
[qw( SPI )] ], |
|
169
|
|
|
|
|
|
|
readwrite_no_ss => [ undef, |
|
170
|
|
|
|
|
|
|
[qw( SPI )] ], |
|
171
|
|
|
|
|
|
|
); |
|
172
|
|
|
|
|
|
|
|
|
173
|
6
|
|
|
6
|
|
61
|
use Object::Pad ':experimental(mop)'; |
|
|
6
|
|
|
|
|
15
|
|
|
|
6
|
|
|
|
|
48
|
|
|
174
|
6
|
|
|
|
|
44
|
my $meta = Object::Pad::MOP::Class->for_caller; |
|
175
|
|
|
|
|
|
|
|
|
176
|
6
|
|
|
|
|
282
|
foreach my $method ( keys %METHODS ) { |
|
177
|
72
|
|
|
|
|
178
|
my ( $canonicalise, $allowed_protos ) = $METHODS{$method}->@*; |
|
178
|
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
$meta->add_method( |
|
180
|
37
|
|
|
|
|
19606
|
"expect_$method" => method { |
|
181
|
37
|
100
|
|
|
|
107
|
@_ = $canonicalise->( @_ ) if $canonicalise; |
|
182
|
|
|
|
|
|
|
|
|
183
|
37
|
|
|
|
|
138
|
return $_controller->expect( $method => @_ ) |
|
184
|
|
|
|
|
|
|
->will_done(); |
|
185
|
72
|
|
|
|
|
690
|
} |
|
186
|
|
|
|
|
|
|
); |
|
187
|
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
$meta->add_method( |
|
189
|
37
|
|
|
|
|
403
|
"$method" => method { |
|
190
|
37
|
100
|
|
|
|
93
|
@_ = $canonicalise->( @_ ) if $canonicalise; |
|
191
|
|
|
|
|
|
|
|
|
192
|
37
|
|
|
|
|
95
|
my @args = @_; |
|
193
|
|
|
|
|
|
|
|
|
194
|
37
|
50
|
|
|
|
201
|
any { $_ eq $_protocol } @$allowed_protos or |
|
|
58
|
|
|
|
|
144
|
|
|
195
|
|
|
|
|
|
|
croak "Method ->$method not allowed in $_protocol protocol"; |
|
196
|
|
|
|
|
|
|
|
|
197
|
37
|
|
|
|
|
301
|
return $_obj->$method( @args ); |
|
198
|
72
|
|
|
|
|
858
|
} |
|
199
|
|
|
|
|
|
|
); |
|
200
|
|
|
|
|
|
|
} |
|
201
|
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
class Test::Device::Chip::Adapter::_TxnHelper { |
|
203
|
6
|
|
|
|
|
20
|
field $_adapter :param; |
|
204
|
|
|
|
|
|
|
|
|
205
|
6
|
|
|
0
|
|
10
|
async method write { await $_adapter->write( @_ ) } |
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
206
|
6
|
|
|
0
|
|
9
|
async method read { return await $_adapter->read( @_ ) } |
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
207
|
6
|
|
|
0
|
|
24
|
async method write_then_read { return await $_adapter->write_then_read( @_ ) } |
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
208
|
|
|
|
|
|
|
} |
|
209
|
|
|
|
|
|
|
|
|
210
|
6
|
|
|
|
|
24
|
async method txn ( $code ) |
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
211
|
0
|
|
|
|
|
0
|
{ |
|
212
|
0
|
0
|
|
|
|
0
|
$_protocol eq "I2C" or |
|
213
|
|
|
|
|
|
|
croak "Method ->txn not allowed in $_protocol protocol"; |
|
214
|
|
|
|
|
|
|
|
|
215
|
0
|
|
0
|
|
|
0
|
$_txn_helper //= Test::Device::Chip::Adapter::_TxnHelper->new( adapter => $self ); |
|
216
|
|
|
|
|
|
|
|
|
217
|
0
|
|
|
|
|
0
|
$_obj->txn_start; |
|
218
|
|
|
|
|
|
|
|
|
219
|
0
|
|
|
|
|
0
|
my $result = await $code->( $_txn_helper ); |
|
220
|
|
|
|
|
|
|
|
|
221
|
0
|
|
|
|
|
0
|
$_obj->txn_stop; |
|
222
|
|
|
|
|
|
|
|
|
223
|
0
|
|
|
|
|
0
|
return $result; |
|
224
|
6
|
|
|
0
|
0
|
13
|
} |
|
|
0
|
|
|
|
|
0
|
|
|
225
|
|
|
|
|
|
|
|
|
226
|
6
|
|
|
0
|
0
|
11
|
async method expect_txn_start () { $_controller->expect( txn_start => ) } |
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
227
|
0
|
|
|
0
|
0
|
0
|
async method expect_txn_stop () { $_controller->expect( txn_stop => ) } |
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
|
0
|
|
|
|
|
0
|
|
|
228
|
|
|
|
|
|
|
} |
|
229
|
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
=head1 METHODS |
|
231
|
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
This class has the methods available on L, which would |
|
233
|
|
|
|
|
|
|
normally be used by the chip instance under test. The following additional |
|
234
|
|
|
|
|
|
|
methods would be used by the unit test script controlling it. |
|
235
|
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
=cut |
|
237
|
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
=head2 check_and_clear |
|
239
|
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
$adapter->check_and_clear( $name ); |
|
241
|
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
Checks that by now, every expected method has indeed been called, and emits a |
|
243
|
|
|
|
|
|
|
new test output line via L. Regardless, the expectations are |
|
244
|
|
|
|
|
|
|
also cleared out ready for the start of the next test. |
|
245
|
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
=cut |
|
247
|
|
|
|
|
|
|
|
|
248
|
29
|
|
|
|
|
56
|
method check_and_clear ( $name ) |
|
|
29
|
|
|
|
|
61
|
|
|
|
29
|
|
|
|
|
42
|
|
|
249
|
29
|
|
|
29
|
1
|
62333
|
{ |
|
250
|
29
|
|
|
|
|
139
|
$_controller->check_and_clear( $name ); |
|
251
|
29
|
|
|
|
|
72653
|
return; |
|
252
|
|
|
|
|
|
|
} |
|
253
|
|
|
|
|
|
|
|
|
254
|
|
|
|
|
|
|
package # hide |
|
255
|
|
|
|
|
|
|
Test::Device::Chip::Adapter::_TestController |
|
256
|
|
|
|
|
|
|
{ |
|
257
|
6
|
|
|
6
|
|
46
|
use base "Test::ExpectAndCheck::Future"; |
|
|
6
|
|
|
|
|
13
|
|
|
|
6
|
|
|
|
|
643
|
|
|
258
|
6
|
|
|
6
|
|
42
|
use constant EXPECTATION_CLASS => "Test::Device::Chip::Adapter::_Expectation"; |
|
|
6
|
|
|
|
|
12
|
|
|
|
6
|
|
|
|
|
633
|
|
|
259
|
|
|
|
|
|
|
} |
|
260
|
|
|
|
|
|
|
|
|
261
|
|
|
|
|
|
|
package # hide |
|
262
|
|
|
|
|
|
|
Test::Device::Chip::Adapter::_Expectation |
|
263
|
|
|
|
|
|
|
{ |
|
264
|
6
|
|
|
6
|
|
43
|
use base "Test::ExpectAndCheck::Future::_Expectation"; |
|
|
6
|
|
|
|
|
10
|
|
|
|
6
|
|
|
|
|
2979
|
|
|
265
|
|
|
|
|
|
|
|
|
266
|
16
|
|
|
|
|
31
|
sub returns ( $self, @result ) |
|
267
|
16
|
|
|
16
|
|
635
|
{ |
|
|
16
|
|
|
|
|
32
|
|
|
|
16
|
|
|
|
|
27
|
|
|
268
|
|
|
|
|
|
|
# warnings::warnif deprecated => |
|
269
|
|
|
|
|
|
|
# "Calling ->returns on a Test::Device::Chip::Adapter expectation is now deprecated; use ->will_done instead"; |
|
270
|
16
|
|
|
|
|
47
|
$self->will_done( @result ); |
|
271
|
|
|
|
|
|
|
} |
|
272
|
|
|
|
|
|
|
} |
|
273
|
|
|
|
|
|
|
|
|
274
|
|
|
|
|
|
|
=head1 TODO |
|
275
|
|
|
|
|
|
|
|
|
276
|
|
|
|
|
|
|
=over 4 |
|
277
|
|
|
|
|
|
|
|
|
278
|
|
|
|
|
|
|
=item * |
|
279
|
|
|
|
|
|
|
|
|
280
|
|
|
|
|
|
|
Handle C method |
|
281
|
|
|
|
|
|
|
|
|
282
|
|
|
|
|
|
|
=item * |
|
283
|
|
|
|
|
|
|
|
|
284
|
|
|
|
|
|
|
Handle C |
|
285
|
|
|
|
|
|
|
|
|
286
|
|
|
|
|
|
|
=back |
|
287
|
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
=head1 AUTHOR |
|
289
|
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
Paul Evans |
|
291
|
|
|
|
|
|
|
|
|
292
|
|
|
|
|
|
|
=cut |
|
293
|
|
|
|
|
|
|
|
|
294
|
|
|
|
|
|
|
0x55AA; |