test

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewShell

func NewShell[T teaModelLike](embeddedModel T) tea.Model

NewShell creates a new shell wrapping the provided model

func NewTestContext

func NewTestContext(commandRunner appContext.CommandRunner) *appContext.MainContext

Types

type CommandRunner added in v0.9.0

type CommandRunner struct {
	*testing.T
	// contains filtered or unexported fields
}

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) RunCommand added in v0.9.0

func (t *CommandRunner) RunCommand(args []string, continuations ...tea.Cmd) tea.Cmd

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 (t *CommandRunner) RunInteractiveCommand(args []string, continuation tea.Cmd) tea.Cmd

func (*CommandRunner) Verify added in v0.9.0

func (t *CommandRunner) Verify()

type ExpectedCommand

type ExpectedCommand struct {
	// contains filtered or unexported fields
}

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)

type OperationHost

type OperationHost struct {
	Operation operations.Operation
	Commit    *jj.Commit
	// contains filtered or unexported fields
}

func NewOperationHost added in v0.8.12

func NewOperationHost(op operations.Operation, commit *jj.Commit) OperationHost

func (OperationHost) Init

func (o OperationHost) Init() tea.Cmd

func (OperationHost) Update

func (o OperationHost) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (OperationHost) View

func (o OperationHost) View() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL