Lines Matching refs:result2
141 Result<std::string> result2 = result.error(); in TEST() local
143 ASSERT_FALSE(result2.ok()); in TEST()
144 ASSERT_FALSE(result2.has_value()); in TEST()
146 EXPECT_EQ(0, result2.error().code()); in TEST()
147 EXPECT_EQ(error_text, result2.error().message()); in TEST()
157 Result<std::string> result2 = Error() << result.error(); in TEST() local
159 ASSERT_FALSE(result2.ok()); in TEST()
160 ASSERT_FALSE(result2.has_value()); in TEST()
162 EXPECT_EQ(0, result2.error().code()); in TEST()
163 EXPECT_EQ(error_text, result2.error().message()); in TEST()
177 Result<std::string> result2 = Error() << result.error(); in TEST() local
179 ASSERT_FALSE(result2.ok()); in TEST()
180 ASSERT_FALSE(result2.has_value()); in TEST()
182 EXPECT_EQ(test_errno, result2.error().code()); in TEST()
183 EXPECT_EQ(error_text + ": " + strerror(test_errno), result2.error().message()); in TEST()
265 auto result2 = ReturnConstructorTracker("test2"); in TEST() local
266 ASSERT_RESULT_OK(result2); in TEST()
267 EXPECT_EQ("test2test22", result2->string); in TEST()
352 Result<int> result2 = ErrnoError() << "Failed" << SetErrnoToTwo<char>; in TEST() local
353 ASSERT_FALSE(result2.ok()); in TEST()
355 EXPECT_EQ(old_errno, result2.error().code()); in TEST()
371 Result<int> result2 = Errorf("error occurred with {}", result.error()); in TEST() local
372 EXPECT_EQ("error occurred with hello world!", result2.error().message()); in TEST()