Lines Matching full:copy

12 cbor_item_t *item, *copy, *tmp;  variable
16 assert_uint8(copy = cbor_copy(item), 10); in test_uints()
18 cbor_decref(&copy); in test_uints()
21 assert_uint16(copy = cbor_copy(item), 10); in test_uints()
23 cbor_decref(&copy); in test_uints()
26 assert_uint32(copy = cbor_copy(item), 10); in test_uints()
28 cbor_decref(&copy); in test_uints()
31 assert_uint64(copy = cbor_copy(item), 10); in test_uints()
33 cbor_decref(&copy); in test_uints()
38 assert_true(cbor_get_uint8(copy = cbor_copy(item)) == 10); in test_negints()
40 cbor_decref(&copy); in test_negints()
43 assert_true(cbor_get_uint16(copy = cbor_copy(item)) == 10); in test_negints()
45 cbor_decref(&copy); in test_negints()
48 assert_true(cbor_get_uint32(copy = cbor_copy(item)) == 10); in test_negints()
50 cbor_decref(&copy); in test_negints()
53 assert_true(cbor_get_uint64(copy = cbor_copy(item)) == 10); in test_negints()
55 cbor_decref(&copy); in test_negints()
60 assert_memory_equal(cbor_bytestring_handle(copy = cbor_copy(item)), in test_def_bytestring()
63 cbor_decref(&copy); in test_def_bytestring()
70 copy = cbor_copy(item); in test_indef_bytestring()
73 cbor_bytestring_chunk_count(copy)); in test_indef_bytestring()
76 cbor_bytestring_handle(cbor_bytestring_chunks_handle(copy)[0]), "abc", 3); in test_indef_bytestring()
78 cbor_decref(&copy); in test_indef_bytestring()
83 assert_memory_equal(cbor_string_handle(copy = cbor_copy(item)), in test_def_string()
86 cbor_decref(&copy); in test_def_string()
92 copy = cbor_copy(item); in test_indef_string()
95 cbor_string_chunk_count(copy)); in test_indef_string()
97 assert_memory_equal(cbor_string_handle(cbor_string_chunks_handle(copy)[0]), in test_indef_string()
100 cbor_decref(&copy); in test_indef_string()
107 assert_uint8(tmp = cbor_array_get(copy = cbor_copy(item), 0), 42); in test_def_array()
109 cbor_decref(&copy); in test_def_array()
117 assert_uint8(tmp = cbor_array_get(copy = cbor_copy(item), 0), 42); in test_indef_array()
119 cbor_decref(&copy); in test_indef_array()
130 assert_uint8(cbor_map_handle(copy = cbor_copy(item))[0].key, 42); in test_def_map()
133 cbor_decref(&copy); in test_def_map()
143 assert_uint8(cbor_map_handle(copy = cbor_copy(item))[0].key, 42); in test_indef_map()
146 cbor_decref(&copy); in test_indef_map()
152 assert_uint8(cbor_move(cbor_tag_item(copy = cbor_copy(item))), 42); in test_tag()
155 cbor_decref(&copy); in test_tag()
160 assert_true(cbor_is_null(copy = cbor_copy(item))); in test_ctrls()
162 cbor_decref(&copy); in test_ctrls()
167 assert_true(cbor_float_get_float2(copy = cbor_copy(item)) == in test_floats()
170 cbor_decref(&copy); in test_floats()
173 assert_true(cbor_float_get_float4(copy = cbor_copy(item)) == in test_floats()
176 cbor_decref(&copy); in test_floats()
179 assert_true(cbor_float_get_float8(copy = cbor_copy(item)) == in test_floats()
182 cbor_decref(&copy); in test_floats()
312 // New array, item copy in test_array_item_alloc_failure()
325 // New array, item copy, array reallocation in test_array_push_failure()
339 // New array, item copy, array reallocation, second item copy in test_array_second_item_alloc_failure()
366 // New map, key copy in test_map_key_alloc_failure()
380 // New map, key copy, value copy in test_map_value_alloc_failure()
394 // New map, key copy, value copy, add in test_map_add_failure()
411 // New map, key copy, value copy, add, second key copy in test_map_second_key_failure()
431 // Item copy, tag in test_tag_alloc_failure()