Lines Matching refs:status2
61 Status<int> status2; in TEST() local
64 status2 = ErrorStatus(13); in TEST()
66 EXPECT_FALSE(status2.empty()); in TEST()
68 EXPECT_FALSE(status2.ok()); in TEST()
71 EXPECT_EQ(0, status2.get()); in TEST()
72 EXPECT_EQ(13, status2.error()); in TEST()
74 status1 = status2; in TEST()
76 EXPECT_FALSE(status2.empty()); in TEST()
78 EXPECT_FALSE(status2.ok()); in TEST()
81 EXPECT_EQ(0, status2.get()); in TEST()
82 EXPECT_EQ(13, status2.error()); in TEST()
87 Status<std::unique_ptr<int>> status2; in TEST() local
90 status2 = Status<std::unique_ptr<int>>{std::make_unique<int>(int{12})}; in TEST()
92 EXPECT_FALSE(status2.empty()); in TEST()
94 EXPECT_TRUE(status2.ok()); in TEST()
96 EXPECT_EQ(12, *status2.get()); in TEST()
98 Status<std::unique_ptr<int>> status3 = std::move(status2); in TEST()
100 EXPECT_TRUE(status2.empty()); in TEST()
103 EXPECT_FALSE(status2.ok()); in TEST()
106 EXPECT_EQ(nullptr, status2.get()); in TEST()