Lines Matching refs:entity_data
59 std::unique_ptr<test::EntityDataT> entity_data = in TEST_F() local
61 ASSERT_NE(entity_data, nullptr); in TEST_F()
62 EXPECT_EQ(entity_data->an_int_field, 42); in TEST_F()
63 EXPECT_EQ(entity_data->a_long_field, 84); in TEST_F()
64 EXPECT_EQ(entity_data->a_bool_field, true); in TEST_F()
65 EXPECT_NEAR(entity_data->a_float_field, 1.f, 1e-4); in TEST_F()
66 EXPECT_NEAR(entity_data->a_double_field, 1.f, 1e-4); in TEST_F()
77 std::unique_ptr<test::EntityDataT> entity_data = in TEST_F() local
79 EXPECT_EQ(entity_data->enum_value, in TEST_F()
124 std::unique_ptr<test::EntityDataT> entity_data = in TEST_F() local
126 ASSERT_NE(entity_data, nullptr); in TEST_F()
127 EXPECT_EQ(entity_data->flight_number->carrier_code, "LX"); in TEST_F()
128 EXPECT_EQ(entity_data->flight_number->flight_code, 38); in TEST_F()
129 EXPECT_EQ(entity_data->contact_info->first_name, "Barack"); in TEST_F()
130 EXPECT_EQ(entity_data->contact_info->last_name, "Obama"); in TEST_F()
131 EXPECT_EQ(entity_data->contact_info->phone_number, "1-800-TEST"); in TEST_F()
132 EXPECT_NEAR(entity_data->contact_info->score, 1.f, 1e-4); in TEST_F()
153 std::unique_ptr<test::EntityDataT> entity_data = in TEST_F() local
155 ASSERT_NE(entity_data, nullptr); in TEST_F()
156 EXPECT_EQ(entity_data->flight_number->carrier_code, "LX"); in TEST_F()
157 EXPECT_EQ(entity_data->flight_number->flight_code, 38); in TEST_F()
178 std::unique_ptr<test::EntityDataT> entity_data = in TEST_F() local
180 ASSERT_NE(entity_data, nullptr); in TEST_F()
181 EXPECT_EQ(entity_data->flight_number->carrier_code, "LX"); in TEST_F()
182 EXPECT_EQ(entity_data->flight_number->flight_code, 38); in TEST_F()
220 std::unique_ptr<test::EntityDataT> entity_data = in TEST_F() local
222 ASSERT_NE(entity_data, nullptr); in TEST_F()
223 EXPECT_EQ(entity_data->an_int_field, 43); in TEST_F()
224 EXPECT_EQ(entity_data->a_long_field, 84); in TEST_F()
225 EXPECT_EQ(entity_data->flight_number->carrier_code, "LX"); in TEST_F()
226 EXPECT_EQ(entity_data->flight_number->flight_code, 39); in TEST_F()
227 EXPECT_EQ(entity_data->contact_info->first_name, "Barack"); in TEST_F()
228 ASSERT_THAT(entity_data->reminders, SizeIs(2)); in TEST_F()
229 EXPECT_THAT(entity_data->reminders[1]->notes, in TEST_F()
231 EXPECT_THAT(entity_data->numbers, ElementsAre(9, 10)); in TEST_F()
232 EXPECT_THAT(entity_data->strings, ElementsAre("str1", "str2")); in TEST_F()
243 std::unique_ptr<test::EntityDataT> entity_data = in TEST_F() local
245 ASSERT_NE(entity_data, nullptr); in TEST_F()
246 EXPECT_EQ(entity_data->nested->nestedb->nesteda->nestedb->nesteda->value, in TEST_F()
312 std::unique_ptr<test::EntityDataT> entity_data = in TEST_F() local
314 ASSERT_NE(entity_data, nullptr); in TEST_F()
315 EXPECT_THAT(entity_data->reminders, SizeIs(2)); in TEST_F()
316 EXPECT_EQ(entity_data->reminders[0]->title, "test reminder"); in TEST_F()
317 EXPECT_THAT(entity_data->reminders[0]->notes, in TEST_F()
319 EXPECT_EQ(entity_data->reminders[1]->title, "test reminder 2"); in TEST_F()
320 EXPECT_THAT(entity_data->reminders[1]->notes, in TEST_F()
331 std::unique_ptr<test::EntityDataT> entity_data = in TEST_F() local
333 ASSERT_NE(entity_data, nullptr); in TEST_F()
334 ASSERT_NE(entity_data, nullptr); in TEST_F()
335 ASSERT_EQ(entity_data->numbers.size(), 1); in TEST_F()
336 EXPECT_EQ(entity_data->numbers[0], 999); in TEST_F()
359 std::unique_ptr<test::EntityDataT> entity_data = in TEST_F() local
361 ASSERT_NE(entity_data, nullptr); in TEST_F()
362 EXPECT_THAT(entity_data->nested->repeated_str, SizeIs(2)); in TEST_F()
363 EXPECT_THAT(entity_data->nested->repeated_str, ElementsAre("a", "test")); in TEST_F()