Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandExecutor ¶
CommandExecutor - An interface for both real and mock command execution.
type MockCommandExecutor ¶
type MockCommandExecutor struct { ProcessFunc func(m *MockCommandExecutor, name string, arg ...string) ([]byte, error) Outputs map[string]any Errors map[string]error }
MockCommandExecutor - A mock implementation of the CommandExecutor
type RealCommandExecutor ¶
type RealCommandExecutor struct{}
RealCommandExecutor - A concrete implementation of CommandExecutor.
type SimpleMockCommandExecutor ¶
type SimpleMockCommandExecutor struct { ProcessFunc func(m *SimpleMockCommandExecutor, name string, arg ...string) ([]byte, error) Outputs map[string]any Errors map[string]error }
SimpleMockCommandExecutor - A mock implementation of the CommandExecutor
Click to show internal directories.
Click to hide internal directories.