Documentation
¶
Index ¶
- type CmdMock
- type TestConsole
- type TestConsoleMock
- func (s TestConsoleMock) AddCmd(cmd CmdMock)
- func (s TestConsoleMock) AddCmds(cmds []CmdMock)
- func (s TestConsoleMock) PopCmd() *CmdMock
- func (s TestConsoleMock) Run(cmd string, opts ...func(*exec.Cmd)) (string, error)
- func (s TestConsoleMock) RunTemplate(st []string, template string) error
- func (s TestConsoleMock) Start(cmd *exec.Cmd, opts ...func(*exec.Cmd)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestConsole ¶
type TestConsole struct {
Commands []string
}
func (*TestConsole) Reset ¶ added in v1.16.4
func (s *TestConsole) Reset()
func (*TestConsole) RunTemplate ¶
func (s *TestConsole) RunTemplate(st []string, template string) error
type TestConsoleMock ¶
func New ¶
func New() *TestConsoleMock
func (TestConsoleMock) AddCmd ¶
func (s TestConsoleMock) AddCmd(cmd CmdMock)
func (TestConsoleMock) AddCmds ¶
func (s TestConsoleMock) AddCmds(cmds []CmdMock)
func (TestConsoleMock) PopCmd ¶
func (s TestConsoleMock) PopCmd() *CmdMock
func (TestConsoleMock) RunTemplate ¶
func (s TestConsoleMock) RunTemplate(st []string, template string) error
Click to show internal directories.
Click to hide internal directories.