Lines Matching refs:handle
48 struct cbor_pair *handle = cbor_map_handle(map); in test_simple_map() local
49 assert_uint8(handle[0].key, 1); in test_simple_map()
50 assert_uint8(handle[0].value, 2); in test_simple_map()
51 assert_uint8(handle[1].key, 3); in test_simple_map()
52 assert_uint8(handle[1].value, 4); in test_simple_map()
68 struct cbor_pair *handle = cbor_map_handle(map); in test_indef_simple_map() local
69 assert_uint8(handle[0].key, 1); in test_indef_simple_map()
70 assert_uint8(handle[0].value, 2); in test_indef_simple_map()
71 assert_uint8(handle[1].key, 3); in test_indef_simple_map()
72 assert_uint8(handle[1].value, 4); in test_indef_simple_map()
95 struct cbor_pair *handle = cbor_map_handle(map); in test_def_nested_map() local
96 assert_true(cbor_typeof(handle[0].key) == CBOR_TYPE_STRING); in test_def_nested_map()
97 assert_true(cbor_typeof(handle[0].value) == CBOR_TYPE_MAP); in test_def_nested_map()
98 struct cbor_pair *inner_handle = cbor_map_handle(handle[0].value); in test_def_nested_map()
119 struct cbor_pair *handle = cbor_map_handle(map); in test_streamed_key_map() local
120 assert_true(cbor_typeof(handle[0].key) == CBOR_TYPE_STRING); in test_streamed_key_map()
121 assert_true(cbor_string_is_indefinite(handle[0].key)); in test_streamed_key_map()
122 assert_size_equal(cbor_string_chunk_count(handle[0].key), 2); in test_streamed_key_map()
123 assert_true(cbor_isa_map(handle[0].value)); in test_streamed_key_map()
124 assert_size_equal(cbor_map_size(handle[0].value), 0); in test_streamed_key_map()
141 struct cbor_pair *handle = cbor_map_handle(map); in test_streamed_kv_map() local
142 assert_true(cbor_typeof(handle[0].key) == CBOR_TYPE_STRING); in test_streamed_kv_map()
143 assert_true(cbor_string_is_indefinite(handle[0].key)); in test_streamed_kv_map()
144 assert_size_equal(cbor_string_chunk_count(handle[0].key), 2); in test_streamed_kv_map()
145 assert_true(cbor_typeof(handle[0].value) == CBOR_TYPE_STRING); in test_streamed_kv_map()
146 assert_true(cbor_string_is_indefinite(handle[0].value)); in test_streamed_kv_map()
147 assert_size_equal(cbor_string_chunk_count(handle[0].value), 2); in test_streamed_kv_map()
149 cbor_string_handle(cbor_string_chunks_handle(handle[0].value)[1]), "d", in test_streamed_kv_map()
168 struct cbor_pair *handle = cbor_map_handle(map); in test_streamed_streamed_kv_map() local
169 assert_true(cbor_typeof(handle[0].key) == CBOR_TYPE_STRING); in test_streamed_streamed_kv_map()
170 assert_true(cbor_string_is_indefinite(handle[0].key)); in test_streamed_streamed_kv_map()
171 assert_size_equal(cbor_string_chunk_count(handle[0].key), 2); in test_streamed_streamed_kv_map()
172 assert_true(cbor_typeof(handle[0].value) == CBOR_TYPE_STRING); in test_streamed_streamed_kv_map()
173 assert_true(cbor_string_is_indefinite(handle[0].value)); in test_streamed_streamed_kv_map()
174 assert_size_equal(cbor_string_chunk_count(handle[0].value), 2); in test_streamed_streamed_kv_map()
176 cbor_string_handle(cbor_string_chunks_handle(handle[0].value)[1]), "d", in test_streamed_streamed_kv_map()