nats

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 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 Option

type Option struct {
	mock.Mock
}

Option is an autogenerated mock type for the Option type

func NewOption

func NewOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *Option

NewOption creates a new instance of Option. 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 (*Option) Apply

func (_m *Option) Apply(disco *discoverynats.Discovery)

Apply provides a mock function with given fields: disco

func (*Option) EXPECT

func (_m *Option) EXPECT() *Option_Expecter

type OptionFunc

type OptionFunc struct {
	mock.Mock
}

OptionFunc is an autogenerated mock type for the OptionFunc type

func NewOptionFunc

func NewOptionFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *OptionFunc

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

func (_m *OptionFunc) EXPECT() *OptionFunc_Expecter

func (*OptionFunc) Execute

func (_m *OptionFunc) Execute(disco *discoverynats.Discovery)

Execute provides a mock function with given fields: disco

type OptionFunc_Execute_Call

type OptionFunc_Execute_Call struct {
	*mock.Call
}

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

func (*OptionFunc_Execute_Call) Return

func (*OptionFunc_Execute_Call) Run

func (*OptionFunc_Execute_Call) RunAndReturn

type OptionFunc_Expecter

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

func (*OptionFunc_Expecter) Execute

func (_e *OptionFunc_Expecter) Execute(disco interface{}) *OptionFunc_Execute_Call

Execute is a helper method to define mock.On call

  • disco *discoverynats.Discovery

type Option_Apply_Call

type Option_Apply_Call struct {
	*mock.Call
}

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

func (*Option_Apply_Call) Return

func (_c *Option_Apply_Call) Return() *Option_Apply_Call

func (*Option_Apply_Call) Run

func (_c *Option_Apply_Call) Run(run func(disco *discoverynats.Discovery)) *Option_Apply_Call

func (*Option_Apply_Call) RunAndReturn

func (_c *Option_Apply_Call) RunAndReturn(run func(*discoverynats.Discovery)) *Option_Apply_Call

type Option_Expecter

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

func (*Option_Expecter) Apply

func (_e *Option_Expecter) Apply(disco interface{}) *Option_Apply_Call

Apply is a helper method to define mock.On call

  • disco *discoverynats.Discovery

Jump to

Keyboard shortcuts

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