Documentation ¶
Index ¶
- func ExitCode(exitCode int) runOptionsFn
- func StripAnsi(str string) string
- func StripAnsiSlice(slice []string) []string
- func Timeout(dur time.Duration) runOptionsFn
- type Config
- type TestContext
- func (c *TestContext) AssertContains(path, expected string)
- func (c *TestContext) AssertExist(path string)
- func (c *TestContext) Cat(path string) string
- func (c *TestContext) Cd(path string)
- func (c *TestContext) Close() error
- func (c *TestContext) Cwd() string
- func (c *TestContext) Debug()
- func (c *TestContext) GetEnv(name string) string
- func (c *TestContext) Ls(path string) []string
- func (c *TestContext) Run(cmd string, optFns ...runOptionsFn) []string
- func (c *TestContext) Verbose()
- func (c *TestContext) Write(path, content string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripAnsiSlice ¶
Types ¶
type Config ¶
func LoadConfig ¶
func LoadConfig() Config
type TestContext ¶
type TestContext struct {
// contains filtered or unexported fields
}
func (*TestContext) AssertContains ¶ added in v0.13.0
func (c *TestContext) AssertContains(path, expected string)
func (*TestContext) AssertExist ¶
func (c *TestContext) AssertExist(path string)
func (*TestContext) Cat ¶
func (c *TestContext) Cat(path string) string
func (*TestContext) Cd ¶
func (c *TestContext) Cd(path string)
func (*TestContext) Close ¶
func (c *TestContext) Close() error
func (*TestContext) Cwd ¶
func (c *TestContext) Cwd() string
func (*TestContext) Debug ¶
func (c *TestContext) Debug()
func (*TestContext) GetEnv ¶
func (c *TestContext) GetEnv(name string) string
func (*TestContext) Ls ¶
func (c *TestContext) Ls(path string) []string
func (*TestContext) Run ¶
func (c *TestContext) Run(cmd string, optFns ...runOptionsFn) []string
func (*TestContext) Verbose ¶
func (c *TestContext) Verbose()
func (*TestContext) Write ¶
func (c *TestContext) Write(path, content string)
Click to show internal directories.
Click to hide internal directories.