SVCS - English Documentation
Loading...
Searching...
No Matches
MockHelpService.hxx File Reference

Mock implementation of the HelpService interface for unit testing purposes. More...

#include <string>
#include <vector>
#include <map>
#include <set>
#include <functional>
#include <memory>
#include "MockSubject.hxx"
#include "../../../services/Event.hxx"

Go to the source code of this file.

Classes

class  svcs::test::cli::mocks::MockHelpService
 A mock implementation of the HelpService for testing the HelpCommand. More...
struct  svcs::test::cli::mocks::Event
 Structure describing an event published by the VCS core. More...

Namespaces

namespace  svcs::test::cli::mocks
 Mock objects and test doubles for CLI command testing.
namespace  svcs::test
 Comprehensive testing framework for SVCS version control system.
namespace  svcs::test::cli
 Unit tests for command-line interface components.

Detailed Description

Mock implementation of the HelpService interface for unit testing purposes.

This class provides a mock implementation with the same interface as HelpService but with controlled behavior for testing. It includes utility methods (setAvailableCommands, wasCommandHelpCalled, etc.) to allow tests to configure the mock's behavior and inspect its interactions. This mock is essential for unit testing the HelpCommand without depending on the actual implementation of the CLI command registration system.