mock

package
v0.0.0-...-732dc05 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

type Renderer struct {
	mock.Mock
}

Renderer is an autogenerated mock type for the Renderer type

func NewRenderer

func NewRenderer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Renderer

NewRenderer creates a new instance of Renderer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Renderer) InputMenu

func (_m *Renderer) InputMenu(ctx context.Context, title string, validateFunc func(string) error) (string, error)

InputMenu provides a mock function with given fields: ctx, title, validateFunc

func (_m *Renderer) Logo()

Logo provides a mock function with no fields

func (*Renderer) SelectionMenu

func (_m *Renderer) SelectionMenu(ctx context.Context, title string, items []string) (string, error)

SelectionMenu provides a mock function with given fields: ctx, title, items

func (*Renderer) TextMenu

func (_m *Renderer) TextMenu(ctx context.Context, title string) (string, error)

TextMenu provides a mock function with given fields: ctx, title

func (*Renderer) WithSpinner

func (_m *Renderer) WithSpinner(title string, fn func())

WithSpinner provides a mock function with given fields: title, fn

Jump to

Keyboard shortcuts

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