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

Function assertValues

lib/js/test/deep-constructor.test.js:147–165  ·  view source on GitHub ↗
(obj, assert)

Source from the content-addressed store, hash-verified

145
146
147function assertValues(obj, assert) {
148 assert.equal(obj.struct_field.value, 'a');
149 assert.equal(obj.struct_list_field[0].value, 'b');
150 assert.equal(obj.struct_list_field[1].value, 'c');
151 assert.equal(obj.struct_set_field[0].value, 'd');
152 assert.equal(obj.struct_set_field[1].value, 'e');
153 assert.equal(obj.struct_map_field.A.value, 'f');
154 assert.equal(obj.struct_map_field.B.value, 'g');
155 assert.equal(obj.struct_nested_containers_field[0][0].C[0].value, 'h');
156 assert.equal(obj.struct_nested_containers_field[0][0].C[1].value, 'i');
157 assert.equal(obj.struct_nested_containers_field2.D[0].DA.value, 'j');
158 assert.equal(obj.struct_nested_containers_field2.D[1].DB.value, 'k');
159 assert.equal(obj.list_of_list_field[0][0], 'one');
160 assert.equal(obj.list_of_list_field[0][1], 'two');
161 assert.equal(obj.list_of_list_field[1][0], 'three');
162 assert.equal(obj.list_of_list_field[1][1], 'four');
163 assert.equal(obj.list_of_list_field[2][0], 'five');
164 assert.equal(obj.list_of_list_field[2][1], 'six');
165}
166
167const cases = {
168

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected