Lines Matching refs:copy
353 struct property_entry *copy; in pe_test_move_inline_u8() local
356 copy = property_entries_dup(entries); in pe_test_move_inline_u8()
357 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, copy); in pe_test_move_inline_u8()
359 KUNIT_EXPECT_TRUE(test, copy[0].is_inline); in pe_test_move_inline_u8()
360 data_ptr = (u8 *)©[0].value; in pe_test_move_inline_u8()
364 KUNIT_EXPECT_FALSE(test, copy[1].is_inline); in pe_test_move_inline_u8()
365 data_ptr = copy[1].pointer; in pe_test_move_inline_u8()
369 property_entries_free(copy); in pe_test_move_inline_u8()
385 struct property_entry *copy; in pe_test_move_inline_str() local
388 copy = property_entries_dup(entries); in pe_test_move_inline_str()
389 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, copy); in pe_test_move_inline_str()
391 KUNIT_EXPECT_TRUE(test, copy[0].is_inline); in pe_test_move_inline_str()
392 KUNIT_EXPECT_STREQ(test, copy[0].value.str[0], "a"); in pe_test_move_inline_str()
394 KUNIT_EXPECT_FALSE(test, copy[1].is_inline); in pe_test_move_inline_str()
395 data_ptr = copy[1].pointer; in pe_test_move_inline_str()
399 KUNIT_EXPECT_TRUE(test, copy[2].is_inline); in pe_test_move_inline_str()
400 KUNIT_EXPECT_STREQ(test, copy[2].value.str[0], ""); in pe_test_move_inline_str()
402 property_entries_free(copy); in pe_test_move_inline_str()