Searched refs:GetElementOr (Results 1 – 3 of 3) sorted by relevance
| /freebsd-13.1/contrib/googletest/googletest/src/ |
| H A D | gtest-internal-inl.h | 299 inline E GetElementOr(const std::vector<E>& v, int i, E default_value) { in GetElementOr() function 587 const int index = GetElementOr(test_case_indices_, i, -1); in GetTestCase() 594 const int index = GetElementOr(test_case_indices_, i, -1); in GetMutableTestCase()
|
| H A D | gtest.cc | 158 using internal::GetElementOr; 2804 const int index = GetElementOr(test_indices_, i, -1); in GetTestInfo() 2811 const int index = GetElementOr(test_indices_, i, -1); in GetMutableTestInfo()
|
| /freebsd-13.1/contrib/googletest/googletest/test/ |
| H A D | gtest_unittest.cc | 248 using testing::internal::GetElementOr; 819 TEST(ContainerUtilityTest, GetElementOr) { in TEST() argument 821 EXPECT_EQ('x', GetElementOr(a, 0, 'x')); in TEST() 825 EXPECT_EQ('a', GetElementOr(a, 0, 'x')); in TEST() 826 EXPECT_EQ('b', GetElementOr(a, 1, 'x')); in TEST() 827 EXPECT_EQ('x', GetElementOr(a, -2, 'x')); in TEST() 828 EXPECT_EQ('x', GetElementOr(a, 2, 'x')); in TEST()
|