MCPcopy Create free account
hub / github.com/apache/thrift / createJsObj

Function createJsObj

lib/nodejs/test/deep-constructor.test.js:134–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132}
133
134function createJsObj() {
135 return {
136 struct_field: { value: "a" },
137
138 struct_list_field: [{ value: "b" }, { value: "c" }],
139
140 struct_set_field: [{ value: "d" }, { value: "e" }],
141
142 struct_map_field: {
143 A: { value: "f" },
144 B: { value: "g" },
145 },
146
147 struct_nested_containers_field: [
148 [
149 {
150 C: [{ value: "h" }, { value: "i" }],
151 },
152 ],
153 ],
154
155 struct_nested_containers_field2: {
156 D: [
157 {
158 DA: { value: "j" },
159 },
160 {
161 DB: { value: "k" },
162 },
163 ],
164 },
165
166 list_of_list_field: [
167 ["l00", "l01", "l02"],
168 ["l10", "l11", "l12"],
169 ["l20", "l21", "l22"],
170 ],
171
172 list_of_list_of_list_field: [
173 [
174 ["m000", "m001", "m002"],
175 ["m010", "m011", "m012"],
176 ["m020", "m021", "m022"],
177 ],
178 [
179 ["m100", "m101", "m102"],
180 ["m110", "m111", "m112"],
181 ["m120", "m121", "m122"],
182 ],
183 [
184 ["m200", "m201", "m202"],
185 ["m210", "m211", "m212"],
186 ["m220", "m221", "m222"],
187 ],
188 ],
189 };
190}
191

Callers 1

createTestCasesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected