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

Function createThriftObj

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

Source from the content-addressed store, hash-verified

65}
66
67function createThriftObj() {
68 return new ttypes.Complex({
69 struct_field: new ttypes.Simple({ value: "a" }),
70
71 struct_list_field: [
72 new ttypes.Simple({ value: "b" }),
73 new ttypes.Simple({ value: "c" }),
74 ],
75
76 struct_set_field: [
77 new ttypes.Simple({ value: "d" }),
78 new ttypes.Simple({ value: "e" }),
79 ],
80
81 struct_map_field: {
82 A: new ttypes.Simple({ value: "f" }),
83 B: new ttypes.Simple({ value: "g" }),
84 },
85
86 struct_nested_containers_field: [
87 [
88 {
89 C: [
90 new ttypes.Simple({ value: "h" }),
91 new ttypes.Simple({ value: "i" }),
92 ],
93 },
94 ],
95 ],
96
97 struct_nested_containers_field2: {
98 D: [
99 {
100 DA: new ttypes.Simple({ value: "j" }),
101 },
102 {
103 DB: new ttypes.Simple({ value: "k" }),
104 },
105 ],
106 },
107
108 list_of_list_field: [
109 ["l00", "l01", "l02"],
110 ["l10", "l11", "l12"],
111 ["l20", "l21", "l22"],
112 ],
113
114 list_of_list_of_list_field: [
115 [
116 ["m000", "m001", "m002"],
117 ["m010", "m011", "m012"],
118 ["m020", "m021", "m022"],
119 ],
120 [
121 ["m100", "m101", "m102"],
122 ["m110", "m111", "m112"],
123 ["m120", "m121", "m122"],
124 ],

Callers 1

createTestCasesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected