upfluence-thrift 2.6.8 → 2.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/benchmark/{gen-rb/benchmark_constants.rb → benchmark_constants.rb} +1 -1
- data/benchmark/{gen-rb/benchmark_service.rb → benchmark_service.rb} +2 -2
- data/benchmark/{gen-rb/benchmark_types.rb → benchmark_types.rb} +1 -1
- data/ext/struct.c +5 -1
- data/lib/thrift/base_stream.rb +85 -0
- data/lib/thrift/bidi_stream.rb +183 -0
- data/lib/thrift/client.rb +84 -17
- data/lib/thrift/inbound_stream.rb +72 -0
- data/lib/thrift/middleware.rb +42 -0
- data/lib/thrift/outbound_stream.rb +52 -0
- data/lib/thrift/processor.rb +287 -47
- data/lib/thrift/protocol/base_protocol.rb +35 -33
- data/lib/thrift/protocol/binary_protocol.rb +8 -1
- data/lib/thrift/protocol/binary_protocol_accelerated.rb +8 -0
- data/lib/thrift/protocol/compact_protocol.rb +8 -0
- data/lib/thrift/protocol/json_protocol.rb +21 -4
- data/lib/thrift/protocol/multiplexed_protocol.rb +5 -1
- data/lib/thrift/server/base_server.rb +8 -2
- data/lib/thrift/server/nonblocking_server.rb +5 -4
- data/lib/thrift/server/simple_server.rb +5 -1
- data/lib/thrift/server/thread_pool_server.rb +5 -1
- data/lib/thrift/server/threaded_server.rb +5 -1
- data/lib/thrift/transport/base_server_transport.rb +1 -1
- data/lib/thrift/transport/base_transport.rb +8 -0
- data/lib/thrift/transport/buffered_transport.rb +9 -1
- data/lib/thrift/transport/framed_transport.rb +9 -1
- data/lib/thrift/transport/http_client_transport.rb +4 -0
- data/lib/thrift/transport/io_stream_transport.rb +4 -1
- data/lib/thrift/transport/memory_buffer_transport.rb +4 -0
- data/lib/thrift/transport/server_socket.rb +5 -0
- data/lib/thrift/transport/socket.rb +21 -17
- data/lib/thrift/transport/ssl_server_socket.rb +41 -0
- data/lib/thrift/transport/ssl_socket.rb +51 -0
- data/lib/thrift/transport/unix_server_socket.rb +5 -1
- data/lib/thrift/transport/unix_socket.rb +5 -1
- data/lib/thrift/types/annotation/deprecation/deprecation_constants.rb +1 -1
- data/lib/thrift/types/annotation/deprecation/deprecation_types.rb +2 -2
- data/lib/thrift/types/annotation/exception/exception_constants.rb +17 -0
- data/lib/thrift/types/annotation/exception/exception_types.rb +44 -0
- data/lib/thrift/types/annotation/naming/naming_constants.rb +1 -1
- data/lib/thrift/types/annotation/naming/naming_types.rb +2 -2
- data/lib/thrift/types/annotation/rpc/rpc_constants.rb +17 -0
- data/lib/thrift/types/annotation/rpc/rpc_types.rb +74 -0
- data/lib/thrift/types/annotation_definition/annotation_definition_constants.rb +15 -0
- data/lib/thrift/types/annotation_definition/annotation_definition_types.rb +116 -0
- data/lib/thrift/types/constant_definition/constant_definition_constants.rb +15 -0
- data/lib/thrift/types/constant_definition/constant_definition_types.rb +292 -0
- data/lib/thrift/types/core/core_constants.rb +15 -0
- data/lib/thrift/types/core/core_types.rb +58 -0
- data/lib/thrift/types/enum_definition/enum_definition_constants.rb +15 -0
- data/lib/thrift/types/enum_definition/enum_definition_types.rb +106 -0
- data/lib/thrift/types/known/any/any_constants.rb +1 -1
- data/lib/thrift/types/known/any/any_types.rb +2 -2
- data/lib/thrift/types/known/duration/duration_constants.rb +1 -1
- data/lib/thrift/types/known/duration/duration_types.rb +2 -2
- data/lib/thrift/types/known/timestamp/timestamp_constants.rb +1 -1
- data/lib/thrift/types/known/timestamp/timestamp_types.rb +2 -2
- data/lib/thrift/types/plugin/plugin.rb +139 -0
- data/lib/thrift/types/plugin/plugin_constants.rb +15 -0
- data/lib/thrift/types/plugin/plugin_types.rb +106 -0
- data/lib/thrift/types/program_definition/program_definition_constants.rb +15 -0
- data/lib/thrift/types/program_definition/program_definition_types.rb +137 -0
- data/lib/thrift/types/service_definition/service_definition_constants.rb +15 -0
- data/lib/thrift/types/service_definition/service_definition_types.rb +160 -0
- data/lib/thrift/types/struct_definition/struct_definition_constants.rb +15 -0
- data/lib/thrift/types/struct_definition/struct_definition_types.rb +157 -0
- data/lib/thrift/types/type_definition/type_definition_constants.rb +15 -0
- data/lib/thrift/types/type_definition/type_definition_types.rb +242 -0
- data/lib/thrift/types/value/value_constants.rb +1 -1
- data/lib/thrift/types/value/value_types.rb +50 -51
- data/lib/thrift/types.rb +11 -3
- data/lib/thrift/union.rb +3 -6
- data/lib/thrift.rb +6 -0
- data/lib/types/annotation/deprecation/deprecation_constants.rb +16 -0
- data/lib/types/annotation/deprecation/deprecation_types.rb +42 -0
- data/lib/types/annotation/naming/naming_constants.rb +16 -0
- data/lib/types/annotation/naming/naming_types.rb +57 -0
- data/lib/types/annotation_definition/annotation_definition_constants.rb +14 -0
- data/lib/types/annotation_definition/annotation_definition_types.rb +114 -0
- data/lib/types/constant_definition/constant_definition_constants.rb +14 -0
- data/lib/types/constant_definition/constant_definition_types.rb +290 -0
- data/lib/types/core/core_constants.rb +14 -0
- data/lib/types/core/core_types.rb +56 -0
- data/lib/types/enum_definition/enum_definition_constants.rb +14 -0
- data/lib/types/enum_definition/enum_definition_types.rb +104 -0
- data/lib/types/known/any/any_constants.rb +16 -0
- data/lib/types/known/any/any_types.rb +59 -0
- data/lib/types/known/duration/duration_constants.rb +16 -0
- data/lib/types/known/duration/duration_types.rb +59 -0
- data/lib/types/known/timestamp/timestamp_constants.rb +16 -0
- data/lib/types/known/timestamp/timestamp_types.rb +59 -0
- data/lib/types/plugin/plugin.rb +137 -0
- data/lib/types/plugin/plugin_constants.rb +14 -0
- data/lib/types/plugin/plugin_types.rb +104 -0
- data/lib/types/program_definition/program_definition_constants.rb +14 -0
- data/lib/types/program_definition/program_definition_types.rb +135 -0
- data/lib/types/service_definition/service_definition_constants.rb +14 -0
- data/lib/types/service_definition/service_definition_types.rb +158 -0
- data/lib/types/struct_definition/struct_definition_constants.rb +14 -0
- data/lib/types/struct_definition/struct_definition_types.rb +155 -0
- data/lib/types/type_definition/type_definition_constants.rb +14 -0
- data/lib/types/type_definition/type_definition_types.rb +240 -0
- data/lib/types/value/value_constants.rb +14 -0
- data/lib/types/value/value_types.rb +330 -0
- data/spec/{gen-rb/base → base}/base_service.rb +2 -2
- data/spec/{gen-rb/base → base}/base_service_constants.rb +1 -1
- data/spec/{gen-rb/base → base}/base_service_types.rb +1 -1
- data/spec/base_protocol_spec.rb +79 -71
- data/spec/base_transport_spec.rb +155 -117
- data/spec/binary_protocol_accelerated_spec.rb +6 -2
- data/spec/binary_protocol_spec.rb +16 -8
- data/spec/binary_protocol_spec_shared.rb +77 -77
- data/spec/bytes_spec.rb +38 -38
- data/spec/client_spec.rb +48 -50
- data/spec/compact_protocol_spec.rb +59 -46
- data/spec/exception_spec.rb +54 -54
- data/spec/{gen-rb/extended → extended}/extended_service.rb +2 -2
- data/spec/{gen-rb/extended → extended}/extended_service_constants.rb +1 -1
- data/spec/{gen-rb/extended → extended}/extended_service_types.rb +1 -1
- data/spec/flat_spec.rb +5 -5
- data/spec/gen-rb/flat/namespaced_nonblocking_service.rb +4 -4
- data/spec/gen-rb/flat/referenced_constants.rb +1 -1
- data/spec/gen-rb/flat/referenced_types.rb +1 -1
- data/spec/gen-rb/flat/thrift_namespaced_spec_constants.rb +1 -1
- data/spec/gen-rb/flat/thrift_namespaced_spec_types.rb +1 -1
- data/spec/http_client_spec.rb +96 -43
- data/spec/json_protocol_spec.rb +170 -131
- data/spec/namespaced_spec.rb +24 -27
- data/spec/{gen-rb/namespaced_spec_namespace → namespaced_spec_namespace}/namespaced_nonblocking_service.rb +4 -4
- data/spec/{gen-rb/namespaced_spec_namespace → namespaced_spec_namespace}/thrift_namespaced_spec_constants.rb +1 -1
- data/spec/{gen-rb/namespaced_spec_namespace → namespaced_spec_namespace}/thrift_namespaced_spec_types.rb +1 -1
- data/spec/nonblocking_server_spec.rb +16 -16
- data/spec/{gen-rb/nonblocking_service.rb → nonblocking_service.rb} +4 -4
- data/spec/{gen-rb/other_namespace → other_namespace}/referenced_constants.rb +1 -1
- data/spec/{gen-rb/other_namespace → other_namespace}/referenced_types.rb +1 -1
- data/spec/processor_spec.rb +42 -31
- data/spec/rack_application_spec.rb +22 -26
- data/spec/serializer_spec.rb +20 -20
- data/spec/server_socket_spec.rb +27 -22
- data/spec/server_spec.rb +91 -51
- data/spec/socket_spec.rb +23 -16
- data/spec/socket_spec_shared.rb +31 -31
- data/spec/spec_helper.rb +1 -1
- data/spec/ssl_server_socket_spec.rb +34 -0
- data/spec/ssl_socket_spec.rb +78 -0
- data/spec/streaming_spec.rb +442 -0
- data/spec/struct_nested_containers_spec.rb +24 -24
- data/spec/struct_spec.rb +120 -120
- data/spec/thin_http_server_spec.rb +71 -28
- data/spec/{gen-rb/thrift_spec_constants.rb → thrift_spec_constants.rb} +1 -1
- data/spec/{gen-rb/thrift_spec_types.rb → thrift_spec_types.rb} +16 -16
- data/spec/types/known/any_spec.rb +2 -2
- data/spec/types/known/duration_spec.rb +1 -1
- data/spec/types/known/timestamp_spec.rb +1 -1
- data/spec/types/value_spec.rb +2 -1
- data/spec/types_spec.rb +56 -53
- data/spec/union_spec.rb +51 -40
- data/spec/unix_socket_spec.rb +43 -34
- data/test/debug_proto/gen-rb/debug_proto_test_constants.rb +267 -260
- data/test/debug_proto/gen-rb/debug_proto_test_types.rb +1481 -1416
- data/test/debug_proto/gen-rb/empty_service.rb +31 -27
- data/test/debug_proto/gen-rb/inherited.rb +102 -98
- data/test/debug_proto/gen-rb/reverse_order_service.rb +112 -108
- data/test/debug_proto/gen-rb/service_for_exception_with_a_map.rb +99 -95
- data/test/debug_proto/gen-rb/srv.rb +525 -406
- metadata +178 -41
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Autogenerated by Thrift Compiler ()
|
|
2
|
+
# Autogenerated by Thrift Compiler (v0.0.1-upfluence)
|
|
3
3
|
#
|
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
5
|
#
|
|
@@ -7,268 +7,275 @@
|
|
|
7
7
|
require 'thrift'
|
|
8
8
|
require 'debug_proto_test_types'
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
10
|
+
module Thrift
|
|
11
|
+
module Test
|
|
12
|
+
COMPACT_TEST = ::Thrift::Test::CompactProtoTestStruct.new({
|
|
13
|
+
%q"a_byte" => 127,
|
|
14
|
+
%q"a_double" => 5.6789,
|
|
15
|
+
%q"a_i16" => 32000,
|
|
16
|
+
%q"a_i32" => 1000000000,
|
|
17
|
+
%q"a_i64" => 1099511627775,
|
|
18
|
+
%q"a_string" => %q"my string",
|
|
19
|
+
%q"boolean_byte_map" => {
|
|
20
|
+
false => 0,
|
|
21
|
+
true => 1,
|
|
22
|
+
},
|
|
23
|
+
%q"boolean_list" => [
|
|
24
|
+
true,
|
|
25
|
+
true,
|
|
26
|
+
true,
|
|
27
|
+
false,
|
|
28
|
+
false,
|
|
29
|
+
false,
|
|
30
|
+
],
|
|
31
|
+
%q"boolean_set" => Set.new([
|
|
32
|
+
true,
|
|
33
|
+
false,
|
|
34
|
+
]),
|
|
35
|
+
%q"byte_boolean_map" => {
|
|
36
|
+
1 => true,
|
|
37
|
+
2 => false,
|
|
38
|
+
},
|
|
39
|
+
%q"byte_byte_map" => {
|
|
40
|
+
1 => 2,
|
|
41
|
+
},
|
|
42
|
+
%q"byte_double_map" => {
|
|
43
|
+
1 => 0.1,
|
|
44
|
+
2 => -0.1,
|
|
45
|
+
3 => 1e+06,
|
|
46
|
+
},
|
|
47
|
+
%q"byte_i16_map" => {
|
|
48
|
+
1 => 1,
|
|
49
|
+
2 => -1,
|
|
50
|
+
3 => 32767,
|
|
51
|
+
},
|
|
52
|
+
%q"byte_i32_map" => {
|
|
53
|
+
1 => 1,
|
|
54
|
+
2 => -1,
|
|
55
|
+
3 => 2147483647,
|
|
56
|
+
},
|
|
57
|
+
%q"byte_i64_map" => {
|
|
58
|
+
1 => 1,
|
|
59
|
+
2 => -1,
|
|
60
|
+
3 => 9223372036854775807,
|
|
61
|
+
},
|
|
62
|
+
%q"byte_list" => [
|
|
63
|
+
-127,
|
|
64
|
+
-1,
|
|
65
|
+
0,
|
|
66
|
+
1,
|
|
67
|
+
127,
|
|
68
|
+
],
|
|
69
|
+
%q"byte_list_map" => {
|
|
70
|
+
0 => [
|
|
71
|
+
],
|
|
72
|
+
1 => [
|
|
73
|
+
1,
|
|
74
|
+
],
|
|
75
|
+
2 => [
|
|
76
|
+
1,
|
|
77
|
+
2,
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
%q"byte_map_map" => {
|
|
81
|
+
0 => {
|
|
82
|
+
},
|
|
83
|
+
1 => {
|
|
84
|
+
1 => 1,
|
|
85
|
+
},
|
|
86
|
+
2 => {
|
|
87
|
+
1 => 1,
|
|
88
|
+
2 => 2,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
%q"byte_set" => Set.new([
|
|
92
|
+
-127,
|
|
93
|
+
-1,
|
|
94
|
+
0,
|
|
95
|
+
1,
|
|
96
|
+
127,
|
|
97
|
+
]),
|
|
98
|
+
%q"byte_set_map" => {
|
|
99
|
+
0 => Set.new([
|
|
100
|
+
]),
|
|
101
|
+
1 => Set.new([
|
|
102
|
+
1,
|
|
103
|
+
]),
|
|
104
|
+
2 => Set.new([
|
|
105
|
+
1,
|
|
106
|
+
2,
|
|
107
|
+
]),
|
|
108
|
+
},
|
|
109
|
+
%q"byte_string_map" => {
|
|
110
|
+
1 => %q"",
|
|
111
|
+
2 => %q"blah",
|
|
112
|
+
3 => %q"loooooooooooooong string",
|
|
113
|
+
},
|
|
114
|
+
%q"double_byte_map" => {
|
|
115
|
+
-1.1 => 1,
|
|
116
|
+
1.1 => 1,
|
|
117
|
+
},
|
|
118
|
+
%q"double_list" => [
|
|
119
|
+
0.1,
|
|
120
|
+
0.2,
|
|
121
|
+
0.3,
|
|
122
|
+
],
|
|
123
|
+
%q"double_set" => Set.new([
|
|
124
|
+
0.1,
|
|
125
|
+
0.2,
|
|
126
|
+
0.3,
|
|
127
|
+
]),
|
|
128
|
+
%q"empty_struct_field" => ::Thrift::Test::Empty.new({
|
|
129
|
+
}),
|
|
130
|
+
%q"false_field" => false,
|
|
131
|
+
%q"field20000" => 20000,
|
|
132
|
+
%q"field500" => 500,
|
|
133
|
+
%q"field5000" => 5000,
|
|
134
|
+
%q"i16_byte_map" => {
|
|
135
|
+
-1 => 1,
|
|
136
|
+
1 => 1,
|
|
137
|
+
32767 => 1,
|
|
138
|
+
},
|
|
139
|
+
%q"i16_list" => [
|
|
140
|
+
-1,
|
|
141
|
+
0,
|
|
142
|
+
1,
|
|
143
|
+
32767,
|
|
144
|
+
],
|
|
145
|
+
%q"i16_set" => Set.new([
|
|
146
|
+
-1,
|
|
147
|
+
0,
|
|
148
|
+
1,
|
|
149
|
+
32767,
|
|
150
|
+
]),
|
|
151
|
+
%q"i32_byte_map" => {
|
|
152
|
+
-1 => 1,
|
|
153
|
+
1 => 1,
|
|
154
|
+
2147483647 => 1,
|
|
155
|
+
},
|
|
156
|
+
%q"i32_list" => [
|
|
157
|
+
-1,
|
|
158
|
+
0,
|
|
159
|
+
255,
|
|
160
|
+
65535,
|
|
161
|
+
16777215,
|
|
162
|
+
2147483647,
|
|
163
|
+
],
|
|
164
|
+
%q"i32_set" => Set.new([
|
|
165
|
+
1,
|
|
166
|
+
2,
|
|
167
|
+
3,
|
|
168
|
+
]),
|
|
169
|
+
%q"i64_byte_map" => {
|
|
170
|
+
-1 => 1,
|
|
171
|
+
0 => 1,
|
|
172
|
+
1 => 1,
|
|
173
|
+
9223372036854775807 => 1,
|
|
174
|
+
},
|
|
175
|
+
%q"i64_list" => [
|
|
176
|
+
-1,
|
|
177
|
+
0,
|
|
178
|
+
255,
|
|
179
|
+
65535,
|
|
180
|
+
16777215,
|
|
181
|
+
4294967295,
|
|
182
|
+
1099511627775,
|
|
183
|
+
281474976710655,
|
|
184
|
+
72057594037927935,
|
|
185
|
+
9223372036854775807,
|
|
186
|
+
],
|
|
187
|
+
%q"i64_set" => Set.new([
|
|
188
|
+
-1,
|
|
189
|
+
0,
|
|
190
|
+
255,
|
|
191
|
+
65535,
|
|
192
|
+
16777215,
|
|
193
|
+
4294967295,
|
|
194
|
+
1099511627775,
|
|
195
|
+
281474976710655,
|
|
196
|
+
72057594037927935,
|
|
197
|
+
9223372036854775807,
|
|
198
|
+
]),
|
|
199
|
+
%q"list_byte_map" => {
|
|
200
|
+
[
|
|
201
|
+
] => 0,
|
|
202
|
+
[
|
|
203
|
+
0,
|
|
204
|
+
1,
|
|
205
|
+
] => 2,
|
|
206
|
+
[
|
|
207
|
+
1,
|
|
208
|
+
2,
|
|
209
|
+
3,
|
|
210
|
+
] => 1,
|
|
211
|
+
},
|
|
212
|
+
%q"map_byte_map" => {
|
|
213
|
+
{
|
|
214
|
+
} => 0,
|
|
215
|
+
{
|
|
216
|
+
1 => 1,
|
|
217
|
+
} => 1,
|
|
218
|
+
{
|
|
219
|
+
2 => 2,
|
|
220
|
+
} => 2,
|
|
221
|
+
},
|
|
222
|
+
%q"set_byte_map" => {
|
|
223
|
+
Set.new([
|
|
224
|
+
]) => 0,
|
|
225
|
+
Set.new([
|
|
226
|
+
0,
|
|
227
|
+
1,
|
|
228
|
+
]) => 2,
|
|
229
|
+
Set.new([
|
|
230
|
+
1,
|
|
231
|
+
2,
|
|
232
|
+
3,
|
|
233
|
+
]) => 1,
|
|
234
|
+
},
|
|
235
|
+
%q"string_byte_map" => {
|
|
236
|
+
%q"" => 0,
|
|
237
|
+
%q"first" => 1,
|
|
238
|
+
%q"second" => 2,
|
|
239
|
+
%q"third" => 3,
|
|
240
|
+
},
|
|
241
|
+
%q"string_list" => [
|
|
242
|
+
%q"first",
|
|
243
|
+
%q"second",
|
|
244
|
+
%q"third",
|
|
245
|
+
],
|
|
246
|
+
%q"string_set" => Set.new([
|
|
247
|
+
%q"first",
|
|
248
|
+
%q"second",
|
|
249
|
+
%q"third",
|
|
250
|
+
]),
|
|
251
|
+
%q"struct_list" => [
|
|
252
|
+
::Thrift::Test::Empty.new({
|
|
253
|
+
}),
|
|
254
|
+
::Thrift::Test::Empty.new({
|
|
255
|
+
}),
|
|
256
|
+
],
|
|
257
|
+
%q"struct_set" => Set.new([
|
|
258
|
+
::Thrift::Test::Empty.new({
|
|
259
|
+
}),
|
|
260
|
+
]),
|
|
261
|
+
%q"true_field" => true,
|
|
262
|
+
})
|
|
258
263
|
|
|
259
|
-
MYCONST = 2
|
|
264
|
+
MYCONST = 2
|
|
260
265
|
|
|
261
|
-
MY_SOME_ENUM =
|
|
266
|
+
MY_SOME_ENUM = 1
|
|
262
267
|
|
|
263
|
-
MY_SOME_ENUM_1 =
|
|
268
|
+
MY_SOME_ENUM_1 = 1
|
|
264
269
|
|
|
265
|
-
MY_ENUM_MAP = {
|
|
266
|
-
|
|
267
|
-
}
|
|
270
|
+
MY_ENUM_MAP = {
|
|
271
|
+
1 => 2,
|
|
272
|
+
}
|
|
268
273
|
|
|
269
|
-
EXTRA_CRAZY_MAP = {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
}
|
|
274
|
+
EXTRA_CRAZY_MAP = {
|
|
275
|
+
1 => ::Thrift::Test::StructWithSomeEnum.new({
|
|
276
|
+
%q"blah" => 2,
|
|
277
|
+
}),
|
|
278
|
+
}
|
|
274
279
|
|
|
280
|
+
end
|
|
281
|
+
end
|