Documentation
¶
Index ¶
- func KeyDown(model *teatest.TestModel)
- func KeyEnter(model *teatest.TestModel)
- func KeyLeft(model *teatest.TestModel)
- func KeyQ(model *teatest.TestModel)
- func KeyRight(model *teatest.TestModel)
- func KeyUp(model *teatest.TestModel)
- func NewSaveBuffer() *safeBuffer
- func NewTestDeployEngine(stubValidationEvents []*types.BlueprintValidationEvent) engine.DeployEngine
- func WaitFor(t *testing.T, output io.Reader, condition func(output []byte) bool)
- func WaitForContains(t *testing.T, output io.Reader, text string)
- func WaitForContainsAll(t *testing.T, output io.Reader, texts ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSaveBuffer ¶
func NewSaveBuffer() *safeBuffer
NewSaveBuffer creates a new buffer that can be used to capture output from TUI apps in headless mode in a thread-safe manner.
func NewTestDeployEngine ¶
func NewTestDeployEngine(stubValidationEvents []*types.BlueprintValidationEvent) engine.DeployEngine
func WaitFor ¶
WaitFor is a helper function to wait for a condition to be true with a pre-defined check interval (20ms) and timeout duration (10 seconds).
func WaitForContains ¶
WaitForContains is a helper function to wait for a string to be present in the output.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.