Lines Matching refs:value_or
1049 EXPECT_EQ(0.0f, a.value_or(0.0f)); in TEST()
1052 EXPECT_EQ(0.1f, a.value_or(0.0f)); in TEST()
1055 EXPECT_EQ(0.0f, a.value_or(0.0f)); in TEST()
1061 constexpr int value = a.value_or(10); in TEST()
1066 constexpr int value = a.value_or(10); in TEST()
1072 EXPECT_EQ("bar", a.value_or("bar")); in TEST()
1075 EXPECT_EQ(std::string("foo"), a.value_or("bar")); in TEST()
1078 EXPECT_EQ(std::string("bar"), a.value_or("bar")); in TEST()
1083 EXPECT_TRUE(a.value_or(TestObject(1, 0.3)) == TestObject(1, 0.3)); in TEST()
1086 EXPECT_TRUE(a.value_or(TestObject(1, 0.3)) == TestObject(3, 0.1)); in TEST()
1089 EXPECT_TRUE(a.value_or(TestObject(1, 0.3)) == TestObject(1, 0.3)); in TEST()
1099 EXPECT_TRUE(TestObject(42, 0.42) == a.value_or(TestObject(42, 0.42))); in TEST()
1100 EXPECT_TRUE(TestObject(42, 0.42) == b.value_or(TestObject(42, 0.42))); in TEST()
1111 EXPECT_TRUE(TestObject(42, 0.42) == a.value_or(TestObject(42, 0.42))); in TEST()
1112 EXPECT_TRUE(TestObject(1, 0.3) == b.value_or(TestObject(42, 0.42))); in TEST()
1122 EXPECT_TRUE(TestObject(1, 0.3) == a.value_or(TestObject(42, 0.42))); in TEST()
1123 EXPECT_TRUE(TestObject(42, 0.42) == b.value_or(TestObject(42, 0.42))); in TEST()
1133 EXPECT_TRUE(TestObject(1, 0.3) == a.value_or(TestObject(42, 0.42))); in TEST()
1134 EXPECT_TRUE(TestObject(0, 0.1) == b.value_or(TestObject(42, 0.42))); in TEST()
1990 EXPECT_TRUE(TestObject(42, 0.42) == a.value_or(TestObject(42, 0.42))); in TEST()
1991 EXPECT_TRUE(TestObject(42, 0.42) == b.value_or(TestObject(42, 0.42))); in TEST()
2001 EXPECT_TRUE(TestObject(42, 0.42) == a.value_or(TestObject(42, 0.42))); in TEST()
2002 EXPECT_TRUE(TestObject(1, 0.3) == b.value_or(TestObject(42, 0.42))); in TEST()
2012 EXPECT_TRUE(TestObject(1, 0.3) == a.value_or(TestObject(42, 0.42))); in TEST()
2013 EXPECT_TRUE(TestObject(42, 0.42) == b.value_or(TestObject(42, 0.42))); in TEST()
2023 EXPECT_TRUE(TestObject(1, 0.3) == a.value_or(TestObject(42, 0.42))); in TEST()
2024 EXPECT_TRUE(TestObject(0, 0.1) == b.value_or(TestObject(42, 0.42))); in TEST()
2088 EXPECT_EQ(-1, a.value_or(-1)); in TEST()
2098 EXPECT_EQ(TestObject(42, 0.0), a.value_or(TestObject(42, 0.0))); in TEST()