Skip to content

Commit

Permalink
feat: added CommandManager test
Browse files Browse the repository at this point in the history
  • Loading branch information
aritosteles committed Aug 15, 2024
1 parent 480d0a1 commit a92e36b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/agent/command_manager/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
find_package(GTest CONFIG REQUIRED)

add_executable(command_manager_test command_manager_test.cpp)
target_link_libraries(command_manager_test PUBLIC CommandManager GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main)
add_test(NAME CommandManagerTest COMMAND command_manager_test)
14 changes: 14 additions & 0 deletions src/agent/command_manager/tests/command_manager_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include <gtest/gtest.h>

#include <command_manager.hpp>

TEST(CommandManagerTest, CommandManagerConstructor)
{
EXPECT_NO_THROW(command_manager::CommandManager cm());
}

int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

0 comments on commit a92e36b

Please sign in to comment.