1
1
#include < gtest/gtest.h>
2
2
3
- #include < chrono>
4
3
#include < cstdint>
5
4
#include < filesystem>
6
5
#include < fstream>
7
6
#include < memory>
8
7
#include < stdexcept>
9
8
#include < string_view>
10
- #include < thread>
11
9
#include < vector>
12
10
13
11
#include " core/performance/include/performance.hpp"
@@ -208,18 +206,6 @@ class DummyTask : public ppc::core::Task<int, int> {
208
206
bool PostProcessingImpl () override { return true ; }
209
207
};
210
208
211
- class SlowTask : public ppc ::core::Task<int , int > {
212
- public:
213
- using Task::Task;
214
- bool ValidationImpl () override { return true ; }
215
- bool PreProcessingImpl () override { return true ; }
216
- bool RunImpl () override { return true ; }
217
- bool PostProcessingImpl () override {
218
- std::this_thread::sleep_for (std::chrono::seconds (2 ));
219
- return true ;
220
- }
221
- };
222
-
223
209
TEST (TaskTest, GetDynamicTypeReturnsCorrectEnum) {
224
210
DummyTask task;
225
211
task.SetTypeOfTask (ppc::core::TypeOfTask::kOMP );
@@ -251,7 +237,7 @@ class Another {};
251
237
template <typename T>
252
238
class GetNamespaceTest : public ::testing::Test {};
253
239
254
- using TestTypes = ::testing::Types<my::nested::Type, my::Another, int , std::vector< int > >;
240
+ using TestTypes = ::testing::Types<my::nested::Type, my::Another, int >;
255
241
256
242
TYPED_TEST_SUITE (GetNamespaceTest, TestTypes);
257
243
@@ -264,8 +250,6 @@ TYPED_TEST_NOLINT(GetNamespaceTest, ExtractsNamespaceCorrectly) {
264
250
EXPECT_EQ (kNs , " my" );
265
251
} else if constexpr (std::is_same_v<TypeParam, int >) {
266
252
EXPECT_EQ (kNs , " " );
267
- } else if constexpr (std::is_same_v<TypeParam, std::vector<int >>) {
268
- EXPECT_EQ (kNs , " std" );
269
253
} else {
270
254
FAIL () << " Unhandled type in test" ;
271
255
}
0 commit comments