Lines Matching refs:pt_copy
298 PrimitiveType *pt_copy = g_malloc0(sizeof(*pt_copy)); in test_primitives() local
301 pt_copy->type = pt->type; in test_primitives()
303 ops->deserialize((void **)&pt_copy, serialize_data, visit_primitive_type, in test_primitives()
306 g_assert(pt_copy != NULL); in test_primitives()
309 g_assert_cmpstr(pt->value.string, ==, pt_copy->value.string); in test_primitives()
310 g_free((char *)pt_copy->value.string); in test_primitives()
316 g_assert_cmpfloat(pt->value.number, ==, pt_copy->value.number); in test_primitives()
319 g_assert_cmpint(pt->value.integer, ==, pt_copy->value.integer); in test_primitives()
322 g_assert_cmpuint(pt->value.u8, ==, pt_copy->value.u8); in test_primitives()
325 g_assert_cmpuint(pt->value.u16, ==, pt_copy->value.u16); in test_primitives()
328 g_assert_cmpuint(pt->value.u32, ==, pt_copy->value.u32); in test_primitives()
331 g_assert_cmpuint(pt->value.u64, ==, pt_copy->value.u64); in test_primitives()
334 g_assert_cmpint(pt->value.s8, ==, pt_copy->value.s8); in test_primitives()
337 g_assert_cmpint(pt->value.s16, ==, pt_copy->value.s16); in test_primitives()
340 g_assert_cmpint(pt->value.s32, ==, pt_copy->value.s32); in test_primitives()
343 g_assert_cmpint(pt->value.s64, ==, pt_copy->value.s64); in test_primitives()
351 g_free(pt_copy); in test_primitives()