Skip to content

Commit 16e8519

Browse files
committed
Refactor perf_tests.cpp: Replace INSTANTIATE_TEST_SUITE_P_NOLINT with INSTANTIATE_TEST_SUITE_P_WITH_NAME to enhance test naming clarity.
1 parent da8b2f9 commit 16e8519

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

modules/core/performance/tests/perf_tests.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,12 @@ TEST_P(GetStringParamNameParamTest, ReturnsExpectedString) {
105105
EXPECT_EQ(ppc::core::GetStringParamName(param.input), param.expected_output);
106106
}
107107

108-
INSTANTIATE_TEST_SUITE_P_NOLINT(ParamTests, GetStringParamNameParamTest,
109-
::testing::Values(ParamTestCase{ppc::core::PerfResults::kTaskRun, "task_run"},
110-
ParamTestCase{ppc::core::PerfResults::kPipeline, "pipeline"},
111-
ParamTestCase{ppc::core::PerfResults::TypeOfRunning::kNone, "none"}));
108+
INSTANTIATE_TEST_SUITE_P_WITH_NAME(
109+
ParamTests, GetStringParamNameParamTest,
110+
::testing::Values(ParamTestCase{ppc::core::PerfResults::kTaskRun, "task_run"},
111+
ParamTestCase{ppc::core::PerfResults::kPipeline, "pipeline"},
112+
ParamTestCase{ppc::core::PerfResults::TypeOfRunning::kNone, "none"}),
113+
[](const ::testing::TestParamInfo<ParamTestCase>& info) { return info.param.expected_output; });
112114

113115
struct TaskTypeTestCase {
114116
ppc::core::TypeOfTask type;

0 commit comments

Comments
 (0)