Lines Matching refs:status1
60 Status<int> status1; in TEST() local
63 status1 = Status<int>{12}; in TEST()
65 EXPECT_FALSE(status1.empty()); in TEST()
67 EXPECT_TRUE(status1.ok()); in TEST()
69 EXPECT_EQ(12, status1.get()); in TEST()
70 EXPECT_EQ(0, status1.error()); in TEST()
74 status1 = status2; in TEST()
75 EXPECT_FALSE(status1.empty()); in TEST()
77 EXPECT_FALSE(status1.ok()); in TEST()
79 EXPECT_EQ(0, status1.get()); in TEST()
80 EXPECT_EQ(13, status1.error()); in TEST()
86 Status<std::unique_ptr<int>> status1; in TEST() local
89 status1 = Status<std::unique_ptr<int>>{std::make_unique<int>(int{11})}; in TEST()
91 EXPECT_FALSE(status1.empty()); in TEST()
93 EXPECT_TRUE(status1.ok()); in TEST()
95 EXPECT_EQ(11, *status1.get()); in TEST()
99 EXPECT_FALSE(status1.empty()); in TEST()
102 EXPECT_TRUE(status1.ok()); in TEST()
105 EXPECT_EQ(11, *status1.get()); in TEST()
109 std::swap(status1, status3); in TEST()
110 EXPECT_EQ(12, *status1.get()); in TEST()
113 status3 = std::move(status1); in TEST()
114 EXPECT_TRUE(status1.empty()); in TEST()