Documentation ¶
Index ¶
- Variables
- func Reset()
- 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 ¶
View Source
var Commands []string
View Source
var Stdin string
Functions ¶
Types ¶
type TestConsole ¶
type TestConsole struct { }
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.