diff --git a/.clang-tidy b/.clang-tidy index dad7ad6a..7abea667 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -29,7 +29,6 @@ Checks: > bugprone-unused-raii, bugprone-unused-return-value, clang-diagnostic-*, - cppcoreguidelines-avoid-goto, llvm-include-order, llvm-namespace-comment, misc-confusable-identifiers, diff --git a/modules/core/task/func_tests/task_tests.cpp b/modules/core/task/func_tests/task_tests.cpp index df74dd09..d4ae7008 100644 --- a/modules/core/task/func_tests/task_tests.cpp +++ b/modules/core/task/func_tests/task_tests.cpp @@ -11,16 +11,16 @@ TEST(task_tests, check_int32_t) { std::vector out(1, 0); // Create TaskData - auto taskData = std::make_shared(); - taskData->inputs.emplace_back(reinterpret_cast(in.data())); - taskData->inputs_count.emplace_back(in.size()); - taskData->outputs.emplace_back(reinterpret_cast(out.data())); - taskData->outputs_count.emplace_back(out.size()); + auto task_data = std::make_shared(); + task_data->inputs.emplace_back(reinterpret_cast(in.data())); + task_data->inputs_count.emplace_back(in.size()); + task_data->outputs.emplace_back(reinterpret_cast(out.data())); + task_data->outputs_count.emplace_back(out.size()); // Create Task - ppc::test::task::TestTask testTask(taskData); - bool isValid = testTask.validation(); - ASSERT_EQ(isValid, true); + ppc::test::task::TestTask testTask(task_data); + bool is_valid = testTask.validation(); + ASSERT_EQ(is_valid, true); testTask.pre_processing(); testTask.run(); testTask.post_processing(); @@ -33,16 +33,16 @@ TEST(task_tests, check_validate_func) { std::vector out(2, 0); // Create TaskData - auto taskData = std::make_shared(); - taskData->inputs.emplace_back(reinterpret_cast(in.data())); - taskData->inputs_count.emplace_back(in.size()); - taskData->outputs.emplace_back(reinterpret_cast(out.data())); - taskData->outputs_count.emplace_back(out.size()); + auto task_data = std::make_shared(); + task_data->inputs.emplace_back(reinterpret_cast(in.data())); + task_data->inputs_count.emplace_back(in.size()); + task_data->outputs.emplace_back(reinterpret_cast(out.data())); + task_data->outputs_count.emplace_back(out.size()); // Create Task - ppc::test::task::TestTask testTask(taskData); - bool isValid = testTask.validation(); - ASSERT_EQ(isValid, false); + ppc::test::task::TestTask testTask(task_data); + bool is_valid = testTask.validation(); + ASSERT_EQ(is_valid, false); } TEST(task_tests, check_double) { @@ -51,16 +51,16 @@ TEST(task_tests, check_double) { std::vector out(1, 0); // Create TaskData - auto taskData = std::make_shared(); - taskData->inputs.emplace_back(reinterpret_cast(in.data())); - taskData->inputs_count.emplace_back(in.size()); - taskData->outputs.emplace_back(reinterpret_cast(out.data())); - taskData->outputs_count.emplace_back(out.size()); + auto task_data = std::make_shared(); + task_data->inputs.emplace_back(reinterpret_cast(in.data())); + task_data->inputs_count.emplace_back(in.size()); + task_data->outputs.emplace_back(reinterpret_cast(out.data())); + task_data->outputs_count.emplace_back(out.size()); // Create Task - ppc::test::task::TestTask testTask(taskData); - bool isValid = testTask.validation(); - ASSERT_EQ(isValid, true); + ppc::test::task::TestTask testTask(task_data); + bool is_valid = testTask.validation(); + ASSERT_EQ(is_valid, true); testTask.pre_processing(); testTask.run(); testTask.post_processing(); @@ -73,16 +73,16 @@ TEST(task_tests, check_uint8_t) { std::vector out(1, 0); // Create TaskData - auto taskData = std::make_shared(); - taskData->inputs.emplace_back(reinterpret_cast(in.data())); - taskData->inputs_count.emplace_back(in.size()); - taskData->outputs.emplace_back(reinterpret_cast(out.data())); - taskData->outputs_count.emplace_back(out.size()); + auto task_data = std::make_shared(); + task_data->inputs.emplace_back(reinterpret_cast(in.data())); + task_data->inputs_count.emplace_back(in.size()); + task_data->outputs.emplace_back(reinterpret_cast(out.data())); + task_data->outputs_count.emplace_back(out.size()); // Create Task - ppc::test::task::TestTask testTask(taskData); - bool isValid = testTask.validation(); - ASSERT_EQ(isValid, true); + ppc::test::task::TestTask testTask(task_data); + bool is_valid = testTask.validation(); + ASSERT_EQ(is_valid, true); testTask.pre_processing(); testTask.run(); testTask.post_processing(); @@ -103,8 +103,8 @@ TEST(task_tests, check_int64_t) { // Create Task ppc::test::task::TestTask testTask(taskData); - bool isValid = testTask.validation(); - ASSERT_EQ(isValid, true); + bool is_valid = testTask.validation(); + ASSERT_EQ(is_valid, true); testTask.pre_processing(); testTask.run(); testTask.post_processing(); @@ -125,8 +125,8 @@ TEST(task_tests, check_float) { // Create Task ppc::test::task::TestTask testTask(taskData); - bool isValid = testTask.validation(); - ASSERT_EQ(isValid, true); + bool is_valid = testTask.validation(); + ASSERT_EQ(is_valid, true); testTask.pre_processing(); testTask.run(); testTask.post_processing(); @@ -139,16 +139,16 @@ TEST(task_tests, check_wrong_order) { std::vector out(1, 0); // Create TaskData - auto taskData = std::make_shared(); - taskData->inputs.emplace_back(reinterpret_cast(in.data())); - taskData->inputs_count.emplace_back(in.size()); - taskData->outputs.emplace_back(reinterpret_cast(out.data())); - taskData->outputs_count.emplace_back(out.size()); + auto task_data = std::make_shared(); + task_data->inputs.emplace_back(reinterpret_cast(in.data())); + task_data->inputs_count.emplace_back(in.size()); + task_data->outputs.emplace_back(reinterpret_cast(out.data())); + task_data->outputs_count.emplace_back(out.size()); // Create Task - ppc::test::task::TestTask testTask(taskData); - bool isValid = testTask.validation(); - ASSERT_EQ(isValid, true); + ppc::test::task::TestTask testTask(task_data); + bool is_valid = testTask.validation(); + ASSERT_EQ(is_valid, true); testTask.pre_processing(); ASSERT_ANY_THROW(testTask.post_processing()); }