mocks

package
v1.0.42 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prompt

type Prompt struct {
	mock.Mock
}

Prompt is an autogenerated mock type for the Prompt type

func NewPrompt

func NewPrompt(t mockConstructorTestingTNewPrompt) *Prompt

NewPrompt creates a new instance of Prompt. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Prompt) Confirm

func (_m *Prompt) Confirm(message string, defaultYes bool) (bool, error)

Confirm provides a mock function with given fields: message, defaultYes

func (*Prompt) EXPECT

func (_m *Prompt) EXPECT() *Prompt_Expecter

type Prompt_Confirm_Call

type Prompt_Confirm_Call struct {
	*mock.Call
}

Prompt_Confirm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Confirm'

func (*Prompt_Confirm_Call) Return

func (_c *Prompt_Confirm_Call) Return(_a0 bool, _a1 error) *Prompt_Confirm_Call

func (*Prompt_Confirm_Call) Run

func (_c *Prompt_Confirm_Call) Run(run func(message string, defaultYes bool)) *Prompt_Confirm_Call

type Prompt_Expecter

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

func (*Prompt_Expecter) Confirm

func (_e *Prompt_Expecter) Confirm(message interface{}, defaultYes interface{}) *Prompt_Confirm_Call

Confirm is a helper method to define mock.On call

  • message string
  • defaultYes bool

Jump to

Keyboard shortcuts

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