Lines Matching refs:myInt
51 Optional<int> myInt; in TEST() local
52 EXPECT_FALSE(myInt.has_value()); in TEST()
56 Optional<int> myInt(0x1337); in TEST() local
57 EXPECT_TRUE(myInt.has_value()); in TEST()
58 EXPECT_EQ(*myInt, 0x1337); in TEST()
62 Optional<int> myInt(std::move(0x1337)); in TEST() local
63 EXPECT_TRUE(myInt.has_value()); in TEST()
64 EXPECT_EQ(*myInt, 0x1337); in TEST()
68 Optional<int> myInt(0x1337); in TEST() local
69 Optional<int> myNewInt(myInt); in TEST()
75 const Optional<int> myInt(0x1337); in TEST() local
76 Optional<int> myNewInt(myInt); in TEST()
82 Optional<int> myInt; in TEST() local
83 EXPECT_FALSE(myInt.has_value()); in TEST()
84 myInt = 0x1337; in TEST()
85 EXPECT_EQ(*myInt, 0x1337); in TEST()
86 EXPECT_TRUE(myInt.has_value()); in TEST()
87 myInt.reset(); in TEST()
88 EXPECT_FALSE(myInt.has_value()); in TEST()
92 Optional<int> myInt; in TEST() local
93 EXPECT_FALSE(myInt.has_value()); in TEST()
94 myInt = std::move(0xcafe); in TEST()
95 EXPECT_TRUE(myInt.has_value()); in TEST()
96 EXPECT_EQ(*myInt, 0xcafe); in TEST()
100 Optional<int> myInt(0x1337); in TEST() local
103 myMovedInt = std::move(myInt); in TEST()
104 EXPECT_TRUE(myInt.has_value()); in TEST()
110 Optional<int> myInt(0x1337); in TEST() local
113 myCopiedInt = myInt; in TEST()
114 EXPECT_TRUE(myInt.has_value()); in TEST()
116 EXPECT_EQ(*myInt, 0x1337); in TEST()