Skip to content

Commit 151e999

Browse files
committed
Remove redundant type check for std::vector<int> in GetNamespaceTest.
1 parent 262ab34 commit 151e999

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/core/performance/tests/perf_tests.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class Another {};
251251
template <typename T>
252252
class GetNamespaceTest : public ::testing::Test {};
253253

254-
using TestTypes = ::testing::Types<my::nested::Type, my::Another, int, std::vector<int>>;
254+
using TestTypes = ::testing::Types<my::nested::Type, my::Another, int>;
255255

256256
TYPED_TEST_SUITE(GetNamespaceTest, TestTypes);
257257

@@ -264,8 +264,6 @@ TYPED_TEST_NOLINT(GetNamespaceTest, ExtractsNamespaceCorrectly) {
264264
EXPECT_EQ(kNs, "my");
265265
} else if constexpr (std::is_same_v<TypeParam, int>) {
266266
EXPECT_EQ(kNs, "");
267-
} else if constexpr (std::is_same_v<TypeParam, std::vector<int>>) {
268-
EXPECT_EQ(kNs, "std");
269267
} else {
270268
FAIL() << "Unhandled type in test";
271269
}

0 commit comments

Comments
 (0)