testhelper

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stackify

func Stackify(m tea.Model) tea.Model

Types

type FakeDimensionModel

type FakeDimensionModel struct {
	Value  string
	Width  int
	Height int
}

func (*FakeDimensionModel) Init

func (f *FakeDimensionModel) Init() tea.Cmd

func (*FakeDimensionModel) SetHeight

func (f *FakeDimensionModel) SetHeight(height int)

func (*FakeDimensionModel) SetWidth

func (f *FakeDimensionModel) SetWidth(width int)

func (*FakeDimensionModel) Update

func (f *FakeDimensionModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*FakeDimensionModel) View

func (f *FakeDimensionModel) View() string

type SimpleModel

type SimpleModel struct {
	Str string
}

func (*SimpleModel) Init

func (m *SimpleModel) Init() tea.Cmd

func (*SimpleModel) Update

func (m *SimpleModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*SimpleModel) View

func (m *SimpleModel) View() string

Jump to

Keyboard shortcuts

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