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

Function createJsObj

lib/js/test/deep-constructor.test.js:95–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93
94
95function createJsObj() {
96
97 return {
98
99 struct_field: {value: 'a'},
100
101 struct_list_field: [
102 {value: 'b'},
103 {value: 'c'}
104 ],
105
106 struct_set_field: [
107 {value: 'd'},
108 {value: 'e'}
109 ],
110
111 struct_map_field: {
112 A: {value: 'f'},
113 B: {value: 'g'}
114 },
115
116 struct_nested_containers_field: [
117 [
118 {
119 C: [
120 {value: 'h'},
121 {value: 'i'}
122 ]
123 }
124 ]
125 ],
126
127 struct_nested_containers_field2: {
128 D: [
129 {
130 DA: {value: 'j'}
131 },
132 {
133 DB: {value: 'k'}
134 }
135 ]
136 },
137
138 list_of_list_field: [
139 ['one', 'two'],
140 ['three', 'four'],
141 ['five', 'six']
142 ]
143 };
144}
145
146
147function assertValues(obj, assert) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected