Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFactory ¶
MockFactory represents a mock implementation of the CommandFactory interface.
func (MockFactory) InitCommand ¶
func (mock MockFactory) InitCommand(commandType command.CommandType) (command.CommandExecutor, error)
InitCommand initializes the command based on the provided command type.
type MockFailedCommand ¶
type MockFailedCommand struct {
Parameter string `json:"parameter"`
}
MockFailedCommand represents a mock implementation of a failed command.
func (MockFailedCommand) FetchResult ¶
FetchResult returns an error to simulate a failed command execution for MockFailedCommand.
type MockSuccessCommand ¶
MockSuccessCommand represents a mock implementation of a successful command.
func (MockSuccessCommand) FetchResult ¶
FetchResult returns the mock result for the MockSuccessCommand.
type MockSuccessSecureCommand ¶
MockSuccessSecureCommand represents a mock implementation of a successful secure command.
func (MockSuccessSecureCommand) FetchResult ¶
FetchResult returns the mock result for the MockSuccessSecureCommand.
Click to show internal directories.
Click to hide internal directories.