Lines Matching refs:r2
65 Result<uint32_t> r2(r1); in TEST() local
66 ASSERT_TRUE(r2); in TEST()
67 ASSERT_EQ(*r2, 42U); in TEST()
69 Result<uint32_t> r3 = r2; in TEST()
82 Result<uint32_t> r2(e); in TEST() local
83 ASSERT_FALSE(r2); in TEST()
84 ASSERT_EQ(r2.GetErrorMessage(), "foo"); in TEST()
93 Result<uint32_t> r2(Error("foo")); in TEST() local
94 ASSERT_FALSE(r2); in TEST()
95 ASSERT_EQ(r2.GetErrorMessage(), "foo"); in TEST()
102 Result<uint32_t> r2(0U); in TEST() local
103 r2 = r1; in TEST()
104 ASSERT_TRUE(r2); in TEST()
105 ASSERT_EQ(*r2, 42U); in TEST()
108 r2 = r3; in TEST()
109 ASSERT_FALSE(r2); in TEST()
110 ASSERT_EQ(r2.GetErrorMessage(), "foo"); in TEST()
130 Result<uint32_t> r2(Error("foo")); in TEST() local
131 ASSERT_FALSE(r2); in TEST()
132 ASSERT_EQ(r2.GetErrorMessage(), "foo"); in TEST()
141 const Result<Container> r2(Container{42U}); in TEST() local
142 ASSERT_TRUE(r2); in TEST()
143 const Container& c = *r2; in TEST()
159 Result<Container> r2(Container{42U}); in TEST() local
160 ASSERT_TRUE(r2); in TEST()
161 ASSERT_EQ(r2->value, 42U); in TEST()
162 r2->value = 0U; in TEST()
163 ASSERT_EQ(r2->value, 0U); in TEST()
241 auto r2 = CreateContainer(false); in TEST() local
242 ASSERT_FALSE(r2); in TEST()
243 ASSERT_EQ(r2.GetErrorMessage(), "foo"); in TEST()
244 ASSERT_EQ(r2.GetError().GetMessage(), "foo"); in TEST()
282 auto r2 = CreateNoCopyContainer(false); in TEST() local
283 ASSERT_FALSE(r2); in TEST()
284 ASSERT_EQ(r2.GetErrorMessage(), "foo"); in TEST()