testutils

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectOnScreen

func ExpectOnScreen(t *testing.T, screen TestScreen, input string)

func TypeCommand

func TypeCommand(t *testing.T, screen TestScreen, command string)

func TypeOnScreen

func TypeOnScreen(t *testing.T, screen TestScreen, input string)

Types

type TestScreen

type TestScreen interface {
	tcell.SimulationScreen

	Snapshot() []byte
}

func MockWindow

func MockWindow[T ui.Croppable](t *testing.T, getEntries func() *[]T) (screen TestScreen, win *ui.Window[T])

func NewTestScreen

func NewTestScreen() TestScreen

Jump to

Keyboard shortcuts

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