mocks

package
v0.0.0-...-3bd12b5 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	mock.Mock
}

Bar is an autogenerated mock type for the Bar type

func NewBar

func NewBar(t interface {
	mock.TestingT
	Cleanup(func())
}) *Bar

NewBar creates a new instance of Bar. 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 (*Bar) EXPECT

func (_m *Bar) EXPECT() *Bar_Expecter

func (*Bar) IWantWine

func (_m *Bar) IWantWine() string

IWantWine provides a mock function with given fields:

type Bar_Expecter

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

func (*Bar_Expecter) IWantWine

func (_e *Bar_Expecter) IWantWine() *Bar_IWantWine_Call

IWantWine is a helper method to define mock.On call

type Bar_IWantWine_Call

type Bar_IWantWine_Call struct {
	*mock.Call
}

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

func (*Bar_IWantWine_Call) Return

func (_c *Bar_IWantWine_Call) Return(_a0 string) *Bar_IWantWine_Call

func (*Bar_IWantWine_Call) Run

func (_c *Bar_IWantWine_Call) Run(run func()) *Bar_IWantWine_Call

func (*Bar_IWantWine_Call) RunAndReturn

func (_c *Bar_IWantWine_Call) RunAndReturn(run func() string) *Bar_IWantWine_Call

Jump to

Keyboard shortcuts

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