@@ -36,7 +36,7 @@ template <typename InType, typename OutType, typename TestType = void>
3636// / @tparam TestType Type of the test case or parameter.
3737class BaseRunFuncTests : public ::testing::TestWithParam<FuncTestParam<InType, OutType, TestType>> {
3838 public:
39- virtual bool CheckTestOutputData (OutType& output_data) = 0;
39+ virtual bool CheckTestOutputData (OutType & output_data) = 0;
4040 // / @brief Provides input data for the task.
4141 // / @return Initialized input data.
4242 virtual InType GetTestInputData () = 0;
@@ -48,7 +48,7 @@ class BaseRunFuncTests : public ::testing::TestWithParam<FuncTestParam<InType, O
4848 }
4949
5050 template <typename Derived>
51- static std::string PrintFuncTestName (const GTestFuncParam<InType, OutType, TestType>& info) {
51+ static std::string PrintFuncTestName (const GTestFuncParam<InType, OutType, TestType> & info) {
5252 RequireStaticInterface<Derived>();
5353 TestType test_param = std::get<static_cast <std::size_t >(ppc::util::GTestParamIndex::kTestParams )>(info.param );
5454 return std::get<static_cast <std::size_t >(GTestParamIndex::kNameTest )>(info.param ) + " _" +
@@ -57,7 +57,7 @@ class BaseRunFuncTests : public ::testing::TestWithParam<FuncTestParam<InType, O
5757
5858 protected:
5959 void ExecuteTest (FuncTestParam<InType, OutType, TestType> test_param) {
60- const std::string& test_name = std::get<static_cast <std::size_t >(GTestParamIndex::kNameTest )>(test_param);
60+ const std::string & test_name = std::get<static_cast <std::size_t >(GTestParamIndex::kNameTest )>(test_param);
6161
6262 ValidateTestName (test_name);
6363
@@ -73,24 +73,24 @@ class BaseRunFuncTests : public ::testing::TestWithParam<FuncTestParam<InType, O
7373 InitializeAndRunTask (test_param);
7474 }
7575
76- void ValidateTestName (const std::string& test_name) {
76+ void ValidateTestName (const std::string & test_name) {
7777 EXPECT_FALSE (test_name.find (" unknown" ) != std::string::npos);
7878 }
7979
80- bool IsTestDisabled (const std::string& test_name) {
80+ bool IsTestDisabled (const std::string & test_name) {
8181 return test_name.find (" disabled" ) != std::string::npos;
8282 }
8383
84- bool ShouldSkipNonMpiTask (const std::string& test_name) {
85- auto contains_substring = [&](const std::string& substring) {
84+ bool ShouldSkipNonMpiTask (const std::string & test_name) {
85+ auto contains_substring = [&](const std::string & substring) {
8686 return test_name.find (substring) != std::string::npos;
8787 };
8888
8989 return !ppc::util::IsUnderMpirun () && (contains_substring (" _all" ) || contains_substring (" _mpi" ));
9090 }
9191
9292 // / @brief Initializes task instance and runs it through the full pipeline.
93- void InitializeAndRunTask (const FuncTestParam<InType, OutType, TestType>& test_param) {
93+ void InitializeAndRunTask (const FuncTestParam<InType, OutType, TestType> & test_param) {
9494 task_ = std::get<static_cast <std::size_t >(GTestParamIndex::kTaskGetter )>(test_param)(GetTestInputData ());
9595 ExecuteTaskPipeline ();
9696 }
@@ -110,18 +110,18 @@ class BaseRunFuncTests : public ::testing::TestWithParam<FuncTestParam<InType, O
110110};
111111
112112template <typename Tuple, std::size_t ... Is>
113- auto ExpandToValuesImpl (const Tuple& t, std::index_sequence<Is...> /* unused*/ ) {
113+ auto ExpandToValuesImpl (const Tuple & t, std::index_sequence<Is...> /* unused*/ ) {
114114 return ::testing::Values (std::get<Is>(t)...);
115115}
116116
117117template <typename Tuple>
118- auto ExpandToValues (const Tuple& t) {
118+ auto ExpandToValues (const Tuple & t) {
119119 constexpr std::size_t kN = std::tuple_size_v<Tuple>;
120120 return ExpandToValuesImpl (t, std::make_index_sequence<kN >{});
121121}
122122
123123template <typename Task, typename InType, typename SizesContainer, std::size_t ... Is>
124- auto GenTaskTuplesImpl (const SizesContainer& sizes, const std::string& settings_path,
124+ auto GenTaskTuplesImpl (const SizesContainer & sizes, const std::string & settings_path,
125125 std::index_sequence<Is...> /* unused*/ ) {
126126 return std::make_tuple (std::make_tuple (ppc::task::TaskGetter<Task, InType>,
127127 std::string (GetNamespace<Task>()) + " _" +
@@ -130,13 +130,13 @@ auto GenTaskTuplesImpl(const SizesContainer& sizes, const std::string& settings_
130130}
131131
132132template <typename Task, typename InType, typename SizesContainer>
133- auto TaskListGenerator (const SizesContainer& sizes, const std::string& settings_path) {
133+ auto TaskListGenerator (const SizesContainer & sizes, const std::string & settings_path) {
134134 return GenTaskTuplesImpl<Task, InType>(sizes, settings_path,
135135 std::make_index_sequence<std::tuple_size_v<std::decay_t <SizesContainer>>>{});
136136}
137137
138138template <typename Task, typename InType, typename SizesContainer>
139- constexpr auto AddFuncTask (const SizesContainer& sizes, const std::string& settings_path) {
139+ constexpr auto AddFuncTask (const SizesContainer & sizes, const std::string & settings_path) {
140140 return TaskListGenerator<Task, InType>(sizes, settings_path);
141141}
142142
0 commit comments