Documentation
¶
Index ¶
- func NewTestContext(commandRunner appContext.CommandRunner) *appContext.MainContext
- type CommandRunner
- func (t *CommandRunner) Expect(args []string) *ExpectedCommand
- func (t *CommandRunner) IsVerified() bool
- func (t *CommandRunner) RunCommand(args []string, continuations ...tea.Cmd) tea.Cmd
- func (t *CommandRunner) RunCommandImmediate(args []string) ([]byte, error)
- func (t *CommandRunner) RunCommandStreaming(_ context.Context, args []string) (*appContext.StreamingCommand, error)
- func (t *CommandRunner) RunInteractiveCommand(args []string, continuation tea.Cmd) tea.Cmd
- func (t *CommandRunner) Verify()
- type ExpectedCommand
- type LogBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestContext ¶
func NewTestContext(commandRunner appContext.CommandRunner) *appContext.MainContext
Types ¶
type CommandRunner ¶ added in v0.9.0
func NewTestCommandRunner ¶ added in v0.8.12
func NewTestCommandRunner(t *testing.T) *CommandRunner
func (*CommandRunner) Expect ¶ added in v0.9.0
func (t *CommandRunner) Expect(args []string) *ExpectedCommand
func (*CommandRunner) IsVerified ¶ added in v0.9.4
func (t *CommandRunner) IsVerified() bool
func (*CommandRunner) RunCommand ¶ added in v0.9.0
func (*CommandRunner) RunCommandImmediate ¶ added in v0.9.0
func (t *CommandRunner) RunCommandImmediate(args []string) ([]byte, error)
func (*CommandRunner) RunCommandStreaming ¶ added in v0.9.0
func (t *CommandRunner) RunCommandStreaming(_ context.Context, args []string) (*appContext.StreamingCommand, error)
func (*CommandRunner) RunInteractiveCommand ¶ added in v0.9.0
func (*CommandRunner) Verify ¶ added in v0.9.0
func (t *CommandRunner) Verify()
type ExpectedCommand ¶
type ExpectedCommand struct {
// contains filtered or unexported fields
}
func (*ExpectedCommand) SetError ¶ added in v0.9.4
func (e *ExpectedCommand) SetError(err error) *ExpectedCommand
func (*ExpectedCommand) SetOutput ¶
func (e *ExpectedCommand) SetOutput(output []byte) *ExpectedCommand
type LogBuilder ¶ added in v0.8.9
type LogBuilder struct {
// contains filtered or unexported fields
}
func (*LogBuilder) Append ¶ added in v0.8.9
func (l *LogBuilder) Append(value string)
func (*LogBuilder) Author ¶ added in v0.8.9
func (l *LogBuilder) Author(value string)
func (*LogBuilder) Bookmarks ¶ added in v0.8.9
func (l *LogBuilder) Bookmarks(value string)
func (*LogBuilder) Id ¶ added in v0.8.9
func (l *LogBuilder) Id(short string, rest string)
func (*LogBuilder) ShortId ¶ added in v0.8.9
func (l *LogBuilder) ShortId(sid string)
func (*LogBuilder) String ¶ added in v0.8.9
func (l *LogBuilder) String() string
func (*LogBuilder) Write ¶ added in v0.8.9
func (l *LogBuilder) Write(line string)
Click to show internal directories.
Click to hide internal directories.