Skip to content

Commit 55d8770

Browse files
committed
fmt
1 parent cf4e310 commit 55d8770

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

modules/core/performance/tests/perf_tests.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,13 @@ TEST_P(GetStringParamNameParamTest, ReturnsExpectedString) {
109109
EXPECT_EQ(ppc::core::GetStringParamName(param.input), param.expected_output);
110110
}
111111

112-
INSTANTIATE_TEST_SUITE_P(
113-
ParamTests, GetStringParamNameParamTest,
114-
::testing::Values(ParamTestCase{ppc::core::PerfResults::kTaskRun, "task_run"},
115-
ParamTestCase{ppc::core::PerfResults::kPipeline, "pipeline"},
116-
ParamTestCase{ppc::core::PerfResults::TypeOfRunning::kNone, "none"}),
117-
[](const ::testing::TestParamInfo<ParamTestCase>& info) { return info.param.expected_output; });
112+
INSTANTIATE_TEST_SUITE_P(ParamTests, GetStringParamNameParamTest,
113+
::testing::Values(ParamTestCase{ppc::core::PerfResults::kTaskRun, "task_run"},
114+
ParamTestCase{ppc::core::PerfResults::kPipeline, "pipeline"},
115+
ParamTestCase{ppc::core::PerfResults::TypeOfRunning::kNone, "none"}),
116+
[](const ::testing::TestParamInfo<ParamTestCase>& info) {
117+
return info.param.expected_output;
118+
});
118119

119120
struct TaskTypeTestCase {
120121
ppc::core::TypeOfTask type;
@@ -152,12 +153,12 @@ TEST_P(GetStringTaskTypeTest, ReturnsExpectedString) {
152153
}
153154

154155
INSTANTIATE_TEST_SUITE_P(AllTypeCases, GetStringTaskTypeTest,
155-
::testing::Values(TaskTypeTestCase{ppc::core::TypeOfTask::kALL, "all_ALL", "kALL"},
156-
TaskTypeTestCase{ppc::core::TypeOfTask::kSTL, "stl_STL", "kSTL"},
157-
TaskTypeTestCase{ppc::core::TypeOfTask::kOMP, "omp_OMP", "kOMP"},
158-
TaskTypeTestCase{ppc::core::TypeOfTask::kMPI, "mpi_MPI", "kMPI"},
159-
TaskTypeTestCase{ppc::core::TypeOfTask::kTBB, "tbb_TBB", "kTBB"},
160-
TaskTypeTestCase{ppc::core::TypeOfTask::kSEQ, "seq_SEQ", "kSEQ"}));
156+
::testing::Values(TaskTypeTestCase{ppc::core::TypeOfTask::kALL, "all_ALL", "kALL"},
157+
TaskTypeTestCase{ppc::core::TypeOfTask::kSTL, "stl_STL", "kSTL"},
158+
TaskTypeTestCase{ppc::core::TypeOfTask::kOMP, "omp_OMP", "kOMP"},
159+
TaskTypeTestCase{ppc::core::TypeOfTask::kMPI, "mpi_MPI", "kMPI"},
160+
TaskTypeTestCase{ppc::core::TypeOfTask::kTBB, "tbb_TBB", "kTBB"},
161+
TaskTypeTestCase{ppc::core::TypeOfTask::kSEQ, "seq_SEQ", "kSEQ"}));
161162

162163
TEST(GetStringTaskTypeStandaloneTest, ThrowsIfFileMissing) {
163164
std::string missing_path = "non_existent_settings.json";
@@ -185,8 +186,7 @@ TEST(GetStringTaskTypeStandaloneTest, ReturnsUnknownForInvalidEnum) {
185186
}
186187

187188
TEST(GetStringTaskTypeEdgeCases, ThrowsIfFileCannotBeOpened) {
188-
EXPECT_THROW(GetStringTaskType(ppc::core::TypeOfTask::kSEQ, "definitely_missing_file.json"),
189-
std::runtime_error);
189+
EXPECT_THROW(GetStringTaskType(ppc::core::TypeOfTask::kSEQ, "definitely_missing_file.json"), std::runtime_error);
190190
}
191191

192192
TEST(GetStringTaskTypeEdgeCases, ThrowsIfJsonIsMalformed) {

modules/core/util/include/util.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#pragma once
22

3-
#include "nlohmann/json_fwd.hpp"
43
#include <cstdint>
54
#include <cstdlib>
65
#include <memory>
76
#include <string>
87
#include <string_view>
98

9+
#include "nlohmann/json_fwd.hpp"
10+
1011
#ifdef _MSC_VER
1112
#pragma warning(push)
1213
#pragma warning(disable : 4459)
@@ -22,7 +23,6 @@ using NlohmannJsonTypeError = nlohmann::json::type_error;
2223
#pragma warning(pop)
2324
#endif
2425

25-
2626
namespace ppc::util {
2727

2828
enum GTestParamIndex : uint8_t { kTaskGetter, kNameTest, kTestParams };

0 commit comments

Comments
 (0)