Lines Matching refs:value_or

1035     EXPECT_EQ(0.0f, a.value_or(0.0f));  in TEST()
1038 EXPECT_EQ(0.1f, a.value_or(0.0f)); in TEST()
1041 EXPECT_EQ(0.0f, a.value_or(0.0f)); in TEST()
1047 constexpr int value = a.value_or(10); in TEST()
1052 constexpr int value = a.value_or(10); in TEST()
1058 EXPECT_EQ("bar", a.value_or("bar")); in TEST()
1061 EXPECT_EQ(std::string("foo"), a.value_or("bar")); in TEST()
1064 EXPECT_EQ(std::string("bar"), a.value_or("bar")); in TEST()
1069 EXPECT_TRUE(a.value_or(TestObject(1, 0.3)) == TestObject(1, 0.3)); in TEST()
1072 EXPECT_TRUE(a.value_or(TestObject(1, 0.3)) == TestObject(3, 0.1)); in TEST()
1075 EXPECT_TRUE(a.value_or(TestObject(1, 0.3)) == TestObject(1, 0.3)); in TEST()
1085 EXPECT_TRUE(TestObject(42, 0.42) == a.value_or(TestObject(42, 0.42))); in TEST()
1086 EXPECT_TRUE(TestObject(42, 0.42) == b.value_or(TestObject(42, 0.42))); in TEST()
1097 EXPECT_TRUE(TestObject(42, 0.42) == a.value_or(TestObject(42, 0.42))); in TEST()
1098 EXPECT_TRUE(TestObject(1, 0.3) == b.value_or(TestObject(42, 0.42))); in TEST()
1108 EXPECT_TRUE(TestObject(1, 0.3) == a.value_or(TestObject(42, 0.42))); in TEST()
1109 EXPECT_TRUE(TestObject(42, 0.42) == b.value_or(TestObject(42, 0.42))); in TEST()
1119 EXPECT_TRUE(TestObject(1, 0.3) == a.value_or(TestObject(42, 0.42))); in TEST()
1120 EXPECT_TRUE(TestObject(0, 0.1) == b.value_or(TestObject(42, 0.42))); in TEST()
1976 EXPECT_TRUE(TestObject(42, 0.42) == a.value_or(TestObject(42, 0.42))); in TEST()
1977 EXPECT_TRUE(TestObject(42, 0.42) == b.value_or(TestObject(42, 0.42))); in TEST()
1987 EXPECT_TRUE(TestObject(42, 0.42) == a.value_or(TestObject(42, 0.42))); in TEST()
1988 EXPECT_TRUE(TestObject(1, 0.3) == b.value_or(TestObject(42, 0.42))); in TEST()
1998 EXPECT_TRUE(TestObject(1, 0.3) == a.value_or(TestObject(42, 0.42))); in TEST()
1999 EXPECT_TRUE(TestObject(42, 0.42) == b.value_or(TestObject(42, 0.42))); in TEST()
2009 EXPECT_TRUE(TestObject(1, 0.3) == a.value_or(TestObject(42, 0.42))); in TEST()
2010 EXPECT_TRUE(TestObject(0, 0.1) == b.value_or(TestObject(42, 0.42))); in TEST()
2074 EXPECT_EQ(-1, a.value_or(-1)); in TEST()
2084 EXPECT_EQ(TestObject(42, 0.0), a.value_or(TestObject(42, 0.0))); in TEST()