Lines Matching refs:copy
17 cbor_item_t *item, *copy, *tmp; variable
21 assert_uint8(copy = cbor_copy(item), 10); in test_uints()
23 cbor_decref(©); in test_uints()
26 assert_uint16(copy = cbor_copy(item), 10); in test_uints()
28 cbor_decref(©); in test_uints()
31 assert_uint32(copy = cbor_copy(item), 10); in test_uints()
33 cbor_decref(©); in test_uints()
36 assert_uint64(copy = cbor_copy(item), 10); in test_uints()
38 cbor_decref(©); in test_uints()
43 assert_true(cbor_get_uint8(copy = cbor_copy(item)) == 10); in test_negints()
45 cbor_decref(©); in test_negints()
48 assert_true(cbor_get_uint16(copy = cbor_copy(item)) == 10); in test_negints()
50 cbor_decref(©); in test_negints()
53 assert_true(cbor_get_uint32(copy = cbor_copy(item)) == 10); in test_negints()
55 cbor_decref(©); in test_negints()
58 assert_true(cbor_get_uint64(copy = cbor_copy(item)) == 10); in test_negints()
60 cbor_decref(©); in test_negints()
65 assert_memory_equal(cbor_bytestring_handle(copy = cbor_copy(item)), in test_def_bytestring()
68 cbor_decref(©); in test_def_bytestring()
75 copy = cbor_copy(item); in test_indef_bytestring()
78 cbor_bytestring_chunk_count(copy)); in test_indef_bytestring()
81 cbor_bytestring_handle(cbor_bytestring_chunks_handle(copy)[0]), "abc", 3); in test_indef_bytestring()
83 cbor_decref(©); in test_indef_bytestring()
88 assert_memory_equal(cbor_string_handle(copy = cbor_copy(item)), in test_def_string()
91 cbor_decref(©); in test_def_string()
97 copy = cbor_copy(item); in test_indef_string()
100 cbor_string_chunk_count(copy)); in test_indef_string()
102 assert_memory_equal(cbor_string_handle(cbor_string_chunks_handle(copy)[0]), in test_indef_string()
105 cbor_decref(©); in test_indef_string()
112 assert_uint8(tmp = cbor_array_get(copy = cbor_copy(item), 0), 42); in test_def_array()
114 cbor_decref(©); in test_def_array()
122 assert_uint8(tmp = cbor_array_get(copy = cbor_copy(item), 0), 42); in test_indef_array()
124 cbor_decref(©); in test_indef_array()
135 assert_uint8(cbor_map_handle(copy = cbor_copy(item))[0].key, 42); in test_def_map()
138 cbor_decref(©); in test_def_map()
148 assert_uint8(cbor_map_handle(copy = cbor_copy(item))[0].key, 42); in test_indef_map()
151 cbor_decref(©); in test_indef_map()
157 assert_uint8(cbor_tag_item(copy = cbor_copy(item)), 42); in test_tag()
160 cbor_decref(©); in test_tag()
165 assert_true(cbor_is_null(copy = cbor_copy(item))); in test_ctrls()
167 cbor_decref(©); in test_ctrls()
172 assert_true(cbor_float_get_float2(copy = cbor_copy(item)) == in test_floats()
175 cbor_decref(©); in test_floats()
178 assert_true(cbor_float_get_float4(copy = cbor_copy(item)) == in test_floats()
181 cbor_decref(©); in test_floats()
184 assert_true(cbor_float_get_float8(copy = cbor_copy(item)) == in test_floats()
187 cbor_decref(©); in test_floats()