SVCS - English Documentation
Loading...
Searching...
No Matches
IntUndoCommandTest.cxx File Reference

Implementation of integration tests for the UndoCommand class, focusing on forced operations. More...

#include "IntUndoCommandTest.hxx"
#include <fstream>
#include <algorithm>

Namespaces

namespace  svcs::test
 Comprehensive testing framework for SVCS version control system.
namespace  svcs::test::cli
 Unit tests for command-line interface components.
namespace  svcs::test::cli::utils
 Utility classes and test fixtures for CLI command testing.

Detailed Description

Implementation of integration tests for the UndoCommand class, focusing on forced operations.

Implementation of the UndoCommandTest fixture.

This file defines the setup and teardown routines for the UndoCommand integration test fixture, along with helper methods to simplify test case creation by automating file and directory creation, staging, committing, and output verification.

Note
The simulateUserInput method currently contains a placeholder comment, as mocking std::cin requires more complex setup, which is omitted here. For full interactive testing, the command/event bus must support injectable input streams.