Documentation ¶
Index ¶
- type TestCmd
- func (tt *TestCmd) CloseStdin()
- func (tt *TestCmd) Expect(tplsource string)
- func (tt *TestCmd) ExpectExit()
- func (tt *TestCmd) ExpectRegexp(regex string) (*regexp.Regexp, []string)
- func (tt *TestCmd) InputLine(s string) string
- func (tt *TestCmd) Interrupt()
- func (tt *TestCmd) Kill()
- func (tt *TestCmd) Run(name string, args ...string)
- func (tt *TestCmd) SetTemplateFunc(name string, fn interface{})
- func (tt *TestCmd) StderrText() string
- func (tt *TestCmd) WaitExit()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestCmd ¶
type TestCmd struct { *testing.T Func template.FuncMap Data interface{} Cleanup func() // contains filtered or unexported fields }
func NewTestCmd ¶
func (*TestCmd) CloseStdin ¶
func (tt *TestCmd) CloseStdin()
func (*TestCmd) ExpectExit ¶
func (tt *TestCmd) ExpectExit()
func (*TestCmd) ExpectRegexp ¶
func (*TestCmd) SetTemplateFunc ¶
func (*TestCmd) StderrText ¶
Click to show internal directories.
Click to hide internal directories.