From 5a2789fcd587aa21ceadd3695f48a0fb17634ad4 Mon Sep 17 00:00:00 2001 From: konard Date: Fri, 12 Sep 2025 23:53:26 +0300 Subject: [PATCH 1/3] Initial commit with task details for issue #140 Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: https://github.com/linksplatform/Bot/issues/140 --- CLAUDE.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 00000000..0ab56019 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,5 @@ +Issue to solve: https://github.com/linksplatform/Bot/issues/140 +Your prepared branch: issue-140-b0f61e77 +Your prepared working directory: /tmp/gh-issue-solver-1757710402098 + +Proceed. \ No newline at end of file From 3a4fde7f3544d67db77dd8a80ea8349404ca5abe Mon Sep 17 00:00:00 2001 From: konard Date: Fri, 12 Sep 2025 23:57:54 +0300 Subject: [PATCH 2/3] Create C++ structure with Platform.Bot.Tests.cpp instead of AllTests.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added CMakeLists.txt with correct ${PROJECT_NAME}.Tests.cpp reference - Created Platform.Bot.Tests/Platform.Bot.Tests.cpp following linksplatform naming convention - Follows issue #140 requirement to use PROJECT_NAME pattern instead of AllTests.cpp 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- cpp/CMakeLists.txt | 25 +++++++++++++++++++ cpp/Platform.Bot.Tests/Platform.Bot.Tests.cpp | 15 +++++++++++ 2 files changed, 40 insertions(+) create mode 100644 cpp/CMakeLists.txt create mode 100644 cpp/Platform.Bot.Tests/Platform.Bot.Tests.cpp diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt new file mode 100644 index 00000000..0f5da657 --- /dev/null +++ b/cpp/CMakeLists.txt @@ -0,0 +1,25 @@ +cmake_minimum_required(VERSION 3.13) + +set(LINKS_PLATFORM_TESTS OFF CACHE BOOL "Whether to compile tests") +set(LINKS_PLATFORM_EXTRA_FLAGS "" CACHE STRING "Extra compiler flags") + +set(CONAN_DISABLE_CHECK_COMPILER TRUE) +set(LINKS_PLATFORM_TESTS TRUE) + +project(Platform.Bot CXX) +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) + +find_package(GTest) + +add_library(${PROJECT_NAME}.Library INTERFACE) +target_include_directories(${PROJECT_NAME}.Library INTERFACE ${PROJECT_NAME}) + +target_compile_options(${PROJECT_NAME}.Library INTERFACE ${LINKS_PLATFORM_EXTRA_FLAGS}) + +if(${LINKS_PLATFORM_TESTS}) + add_executable(${PROJECT_NAME}.Tests ${PROJECT_NAME}.Tests/${PROJECT_NAME}.Tests.cpp) + set_target_properties(${PROJECT_NAME}.Tests PROPERTIES CXX_STANDARD 20) + target_link_libraries(${PROJECT_NAME}.Tests PRIVATE GTest::gtest) + target_link_libraries(${PROJECT_NAME}.Tests PRIVATE GTest::gtest_main) + target_link_libraries(${PROJECT_NAME}.Tests PRIVATE ${PROJECT_NAME}.Library) +endif() \ No newline at end of file diff --git a/cpp/Platform.Bot.Tests/Platform.Bot.Tests.cpp b/cpp/Platform.Bot.Tests/Platform.Bot.Tests.cpp new file mode 100644 index 00000000..7747e2f5 --- /dev/null +++ b/cpp/Platform.Bot.Tests/Platform.Bot.Tests.cpp @@ -0,0 +1,15 @@ +#include + +namespace Platform::Bot::Tests +{ + TEST(BotTests, BasicTest) + { + EXPECT_TRUE(true); + } +} + +int main(int argc, char **argv) +{ + ::testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +} \ No newline at end of file From 94868e87b012ee712fa05cceff547ad9ce23af3a Mon Sep 17 00:00:00 2001 From: konard Date: Fri, 12 Sep 2025 23:58:47 +0300 Subject: [PATCH 3/3] Remove CLAUDE.md - Claude command completed --- CLAUDE.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index 0ab56019..00000000 --- a/CLAUDE.md +++ /dev/null @@ -1,5 +0,0 @@ -Issue to solve: https://github.com/linksplatform/Bot/issues/140 -Your prepared branch: issue-140-b0f61e77 -Your prepared working directory: /tmp/gh-issue-solver-1757710402098 - -Proceed. \ No newline at end of file