Searched refs:GetElementOr (Results 1 – 3 of 3) sorted by relevance
/freebsd/contrib/googletest/googletest/src/ |
H A D | gtest-internal-inl.h | 295 inline E GetElementOr(const std::vector<E>& v, int i, E default_value) { in GetElementOr() function 592 const int index = GetElementOr(test_suite_indices_, i, -1); in GetTestSuite() 604 const int index = GetElementOr(test_suite_indices_, i, -1); in GetMutableSuiteCase()
|
H A D | gtest.cc | 173 using internal::GetElementOr; 2972 const int index = GetElementOr(test_indices_, i, -1); in GetTestInfo() 2979 const int index = GetElementOr(test_indices_, i, -1); in GetMutableTestInfo()
|
/freebsd/contrib/googletest/googletest/test/ |
H A D | gtest_unittest.cc | 246 using testing::internal::GetElementOr; 874 TEST(ContainerUtilityTest, GetElementOr) { in TEST() argument 876 EXPECT_EQ('x', GetElementOr(a, 0, 'x')); in TEST() 880 EXPECT_EQ('a', GetElementOr(a, 0, 'x')); in TEST() 881 EXPECT_EQ('b', GetElementOr(a, 1, 'x')); in TEST() 882 EXPECT_EQ('x', GetElementOr(a, -2, 'x')); in TEST() 883 EXPECT_EQ('x', GetElementOr(a, 2, 'x')); in TEST()
|