24#include <gtest/gtest.h>
43using svcs::services::Event;
44using svcs::core::RepositoryManager;
92 std::unique_ptr<InitCommand>
command;
114 void SetUp()
override;
Declaration of the InitCommand class.
Declaration of the RepositoryManager class, managing all repository-level file operations.
Implements the "init" command for the Version Control System (VCS).
Definition InitCommand.hxx:42
A mock implementation of ISubject for testing event-driven components.
Definition MockSubject.hxx:43
Test fixture for InitCommand integration tests.
Definition InitCommandIntegrationTest.hxx:45
std::shared_ptr< RepositoryManager > repoManager
Real RepositoryManager instance under test.
Definition InitCommandIntegrationTest.hxx:57
void TearDown() override
Tears down the test environment.
Definition InitCommandIntegrationTest.cxx:18
std::shared_ptr< MockSubject > mockEventBus
Mock event bus for capturing system notifications.
Definition InitCommandIntegrationTest.hxx:51
void SetUp() override
Sets up the test environment.
Definition InitCommandIntegrationTest.cxx:24
std::filesystem::path testDir
Path to the temporary directory created for the test.
Definition InitCommandIntegrationTest.hxx:69
std::unique_ptr< InitCommand > command
InitCommand instance under test.
Definition InitCommandIntegrationTest.hxx:63
Mock implementation of the ISubject interface for unit testing purposes.
Utility classes and test fixtures for CLI command testing.
Definition ClearCommandTest.cxx:17