Lines Matching refs:dst
17 UserDefOne *src, *dst; in test_clone_struct() local
25 dst = QAPI_CLONE(UserDefOne, src); in test_clone_struct()
26 g_assert(dst); in test_clone_struct()
27 g_assert_cmpint(dst->integer, ==, 42); in test_clone_struct()
28 g_assert(dst->string != src->string); in test_clone_struct()
29 g_assert_cmpstr(dst->string, ==, "Hello"); in test_clone_struct()
30 g_assert_cmpint(dst->has_enum1, ==, false); in test_clone_struct()
36 qapi_free_UserDefOne(dst); in test_clone_struct()
67 uint8List *src = NULL, *dst; in test_clone_list() local
76 dst = QAPI_CLONE(uint8List, src); in test_clone_list()
77 for (tmp = dst, i = 1; i <= 10; i++) { in test_clone_list()
85 qapi_free_uint8List(dst); in test_clone_list()
90 Empty2 *src, *dst; in test_clone_empty() local
93 dst = QAPI_CLONE(Empty2, src); in test_clone_empty()
94 g_assert(dst); in test_clone_empty()
96 qapi_free_Empty2(dst); in test_clone_empty()
101 UserDefFlatUnion *src, *dst; in test_clone_complex1() local
109 dst = QAPI_CLONE(UserDefFlatUnion, src); in test_clone_complex1()
110 g_assert(dst); in test_clone_complex1()
112 g_assert_cmpint(dst->integer, ==, 123); in test_clone_complex1()
113 g_assert_cmpstr(dst->string, ==, "abc"); in test_clone_complex1()
114 g_assert_cmpint(dst->enum1, ==, ENUM_ONE_VALUE1); in test_clone_complex1()
115 g_assert(dst->u.value1.boolean); in test_clone_complex1()
116 g_assert(!dst->u.value1.has_a_b); in test_clone_complex1()
117 g_assert_cmpint(dst->u.value1.a_b, ==, 0); in test_clone_complex1()
120 qapi_free_UserDefFlatUnion(dst); in test_clone_complex1()
125 WrapAlternate *src, *dst; in test_clone_complex2() local
138 dst = QAPI_CLONE(WrapAlternate, src); in test_clone_complex2()
139 g_assert(dst); in test_clone_complex2()
140 g_assert(dst->alt); in test_clone_complex2()
141 g_assert_cmpint(dst->alt->type, ==, QTYPE_QDICT); in test_clone_complex2()
142 g_assert_cmpint(dst->alt->u.udfu.integer, ==, 42); in test_clone_complex2()
143 g_assert_cmpstr(dst->alt->u.udfu.string, ==, ""); in test_clone_complex2()
144 g_assert_cmpint(dst->alt->u.udfu.enum1, ==, ENUM_ONE_VALUE3); in test_clone_complex2()
145 g_assert_cmpint(dst->alt->u.udfu.u.value3.intb, ==, 99); in test_clone_complex2()
146 g_assert_cmpint(dst->alt->u.udfu.u.value3.has_a_b, ==, true); in test_clone_complex2()
147 g_assert_cmpint(dst->alt->u.udfu.u.value3.a_b, ==, true); in test_clone_complex2()
150 qapi_free_WrapAlternate(dst); in test_clone_complex2()
155 UserDefOneList *src, *dst, *tail; in test_clone_complex3() local
174 dst = QAPI_CLONE(UserDefOneList, src); in test_clone_complex3()
176 g_assert(dst); in test_clone_complex3()
177 tail = dst; in test_clone_complex3()
196 qapi_free_UserDefOneList(dst); in test_clone_complex3()