88#include < csignal>
99#include < cstddef>
1010#include < functional>
11+ #include < iostream>
1112#include < string>
1213#include < tuple>
14+ #include < type_traits>
1315#include < utility>
1416
1517#include " core/task/include/task.hpp"
@@ -48,11 +50,6 @@ class BaseRunFuncTests : public ::testing::TestWithParam<FuncTestParam<InType, O
4850 }
4951
5052 protected:
51- const std::string kUnknownTest = " unknown" ;
52- const std::string kDisabledTest = " disabled" ;
53- const std::string kAllTask = " _all" ;
54- const std::string kMpiTask = " _mpi" ;
55-
5653 void ExecuteTest (FuncTestParam<InType, OutType, TestType> test_param) {
5754 const std::string& test_name = std::get<GTestParamIndex::kNameTest >(test_param);
5855
@@ -70,18 +67,16 @@ class BaseRunFuncTests : public ::testing::TestWithParam<FuncTestParam<InType, O
7067 InitializeAndRunTask (test_param);
7168 }
7269
73- void ValidateTestName (const std::string& test_name) {
74- EXPECT_FALSE (test_name.find (kUnknownTest ) != std::string::npos);
75- }
70+ void ValidateTestName (const std::string& test_name) { EXPECT_FALSE (test_name.find (" unknown" ) != std::string::npos); }
7671
77- bool IsTestDisabled (const std::string& test_name) { return test_name.find (kDisabledTest ) != std::string::npos; }
72+ bool IsTestDisabled (const std::string& test_name) { return test_name.find (" disabled " ) != std::string::npos; }
7873
7974 bool ShouldSkipNonMpiTask (const std::string& test_name) {
8075 auto contains_substring = [&](const std::string& substring) {
8176 return test_name.find (substring) != std::string::npos;
8277 };
8378
84- return !ppc::util::IsUnderMpirun () && (contains_substring (kAllTask ) || contains_substring (kMpiTask ));
79+ return !ppc::util::IsUnderMpirun () && (contains_substring (" _all " ) || contains_substring (" _mpi " ));
8580 }
8681
8782 void InitializeAndRunTask (const FuncTestParam<InType, OutType, TestType>& test_param) {
@@ -110,7 +105,8 @@ auto ExpandToValues(const Tuple& t) {
110105}
111106
112107template <typename Task, typename InType, typename SizesContainer, std::size_t ... Is>
113- auto GenTaskTuplesImpl (const SizesContainer& sizes, const std::string& settings_path, std::index_sequence<Is...>) {
108+ auto GenTaskTuplesImpl (const SizesContainer& sizes, const std::string& settings_path,
109+ std::index_sequence<Is...> /* unused*/ ) {
114110 return std::make_tuple (std::make_tuple (ppc::core::TaskGetter<Task, InType>,
115111 std::string (GetNamespace<Task>()) + " _" +
116112 ppc::core::GetStringTaskType (Task::GetStaticTypeOfTask (), settings_path),
0 commit comments