mocks

package
v0.18.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func NewHandler

func NewHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *Handler

NewHandler creates a new instance of Handler. 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 (*Handler) Close added in v0.13.3

func (_m *Handler) Close()

Close provides a mock function with given fields:

func (*Handler) EXPECT

func (_m *Handler) EXPECT() *Handler_Expecter

func (*Handler) Handle

Handle provides a mock function with given fields: _a0, _a1

func (*Handler) Open added in v0.13.3

func (_m *Handler) Open() error

Open provides a mock function with given fields:

type Handler_Close_Call added in v0.13.3

type Handler_Close_Call struct {
	*mock.Call
}

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

func (*Handler_Close_Call) Return added in v0.13.3

func (_c *Handler_Close_Call) Return() *Handler_Close_Call

func (*Handler_Close_Call) Run added in v0.13.3

func (_c *Handler_Close_Call) Run(run func()) *Handler_Close_Call

func (*Handler_Close_Call) RunAndReturn added in v0.13.3

func (_c *Handler_Close_Call) RunAndReturn(run func()) *Handler_Close_Call

type Handler_Expecter

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

func (*Handler_Expecter) Close added in v0.13.3

func (_e *Handler_Expecter) Close() *Handler_Close_Call

Close is a helper method to define mock.On call

func (*Handler_Expecter) Handle

func (_e *Handler_Expecter) Handle(_a0 interface{}, _a1 interface{}) *Handler_Handle_Call

Handle is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *azservicebus.ReceivedMessage

func (*Handler_Expecter) Open added in v0.13.3

func (_e *Handler_Expecter) Open() *Handler_Open_Call

Open is a helper method to define mock.On call

type Handler_Handle_Call

type Handler_Handle_Call struct {
	*mock.Call
}

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

func (*Handler_Handle_Call) Return

func (*Handler_Handle_Call) Run

type Handler_Open_Call added in v0.13.3

type Handler_Open_Call struct {
	*mock.Call
}

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

func (*Handler_Open_Call) Return added in v0.13.3

func (_c *Handler_Open_Call) Return(_a0 error) *Handler_Open_Call

func (*Handler_Open_Call) Run added in v0.13.3

func (_c *Handler_Open_Call) Run(run func()) *Handler_Open_Call

func (*Handler_Open_Call) RunAndReturn added in v0.13.3

func (_c *Handler_Open_Call) RunAndReturn(run func() error) *Handler_Open_Call

type MsgReceiver

type MsgReceiver struct {
	mock.Mock
}

MsgReceiver is an autogenerated mock type for the MsgReceiver type

func NewMsgReceiver

func NewMsgReceiver(t interface {
	mock.TestingT
	Cleanup(func())
}) *MsgReceiver

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

func (_m *MsgReceiver) EXPECT() *MsgReceiver_Expecter

func (*MsgReceiver) GetAZClient

func (_m *MsgReceiver) GetAZClient() azbus.AZClient

GetAZClient provides a mock function with given fields:

func (*MsgReceiver) Listen added in v0.10.3

func (_m *MsgReceiver) Listen() error

Listen provides a mock function with given fields:

func (*MsgReceiver) Shutdown added in v0.10.3

func (_m *MsgReceiver) Shutdown(_a0 context.Context) error

Shutdown provides a mock function with given fields: _a0

func (*MsgReceiver) String

func (_m *MsgReceiver) String() string

String provides a mock function with given fields:

type MsgReceiver_Expecter

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

func (*MsgReceiver_Expecter) GetAZClient

GetAZClient is a helper method to define mock.On call

func (*MsgReceiver_Expecter) Listen added in v0.10.3

Listen is a helper method to define mock.On call

func (*MsgReceiver_Expecter) Shutdown added in v0.10.3

func (_e *MsgReceiver_Expecter) Shutdown(_a0 interface{}) *MsgReceiver_Shutdown_Call

Shutdown is a helper method to define mock.On call

  • _a0 context.Context

func (*MsgReceiver_Expecter) String

String is a helper method to define mock.On call

type MsgReceiver_GetAZClient_Call

type MsgReceiver_GetAZClient_Call struct {
	*mock.Call
}

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

func (*MsgReceiver_GetAZClient_Call) Return

func (*MsgReceiver_GetAZClient_Call) Run

func (*MsgReceiver_GetAZClient_Call) RunAndReturn

type MsgReceiver_Listen_Call added in v0.10.3

type MsgReceiver_Listen_Call struct {
	*mock.Call
}

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

func (*MsgReceiver_Listen_Call) Return added in v0.10.3

func (*MsgReceiver_Listen_Call) Run added in v0.10.3

func (_c *MsgReceiver_Listen_Call) Run(run func()) *MsgReceiver_Listen_Call

func (*MsgReceiver_Listen_Call) RunAndReturn added in v0.10.3

func (_c *MsgReceiver_Listen_Call) RunAndReturn(run func() error) *MsgReceiver_Listen_Call

type MsgReceiver_Shutdown_Call added in v0.10.3

type MsgReceiver_Shutdown_Call struct {
	*mock.Call
}

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

func (*MsgReceiver_Shutdown_Call) Return added in v0.10.3

func (*MsgReceiver_Shutdown_Call) Run added in v0.10.3

func (*MsgReceiver_Shutdown_Call) RunAndReturn added in v0.10.3

type MsgReceiver_String_Call

type MsgReceiver_String_Call struct {
	*mock.Call
}

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

func (*MsgReceiver_String_Call) Return

func (*MsgReceiver_String_Call) Run

func (_c *MsgReceiver_String_Call) Run(run func()) *MsgReceiver_String_Call

func (*MsgReceiver_String_Call) RunAndReturn

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

type MsgSender

type MsgSender struct {
	mock.Mock
}

MsgSender is an autogenerated mock type for the MsgSender type

func NewMsgSender

func NewMsgSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *MsgSender

NewMsgSender creates a new instance of MsgSender. 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 (*MsgSender) Close

func (_m *MsgSender) Close(_a0 context.Context)

Close provides a mock function with given fields: _a0

func (*MsgSender) EXPECT

func (_m *MsgSender) EXPECT() *MsgSender_Expecter

func (*MsgSender) GetAZClient

func (_m *MsgSender) GetAZClient() azbus.AZClient

GetAZClient provides a mock function with given fields:

func (*MsgSender) Open

func (_m *MsgSender) Open() error

Open provides a mock function with given fields:

func (*MsgSender) Send

func (_m *MsgSender) Send(_a0 context.Context, _a1 *azservicebus.Message) error

Send provides a mock function with given fields: _a0, _a1

func (*MsgSender) String

func (_m *MsgSender) String() string

String provides a mock function with given fields:

type MsgSender_Close_Call

type MsgSender_Close_Call struct {
	*mock.Call
}

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

func (*MsgSender_Close_Call) Return

func (*MsgSender_Close_Call) Run

func (_c *MsgSender_Close_Call) Run(run func(_a0 context.Context)) *MsgSender_Close_Call

func (*MsgSender_Close_Call) RunAndReturn

func (_c *MsgSender_Close_Call) RunAndReturn(run func(context.Context)) *MsgSender_Close_Call

type MsgSender_Expecter

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

func (*MsgSender_Expecter) Close

func (_e *MsgSender_Expecter) Close(_a0 interface{}) *MsgSender_Close_Call

Close is a helper method to define mock.On call

  • _a0 context.Context

func (*MsgSender_Expecter) GetAZClient

GetAZClient is a helper method to define mock.On call

func (*MsgSender_Expecter) Open

Open is a helper method to define mock.On call

func (*MsgSender_Expecter) Send

func (_e *MsgSender_Expecter) Send(_a0 interface{}, _a1 interface{}) *MsgSender_Send_Call

Send is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *azservicebus.Message

func (*MsgSender_Expecter) String

String is a helper method to define mock.On call

type MsgSender_GetAZClient_Call

type MsgSender_GetAZClient_Call struct {
	*mock.Call
}

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

func (*MsgSender_GetAZClient_Call) Return

func (*MsgSender_GetAZClient_Call) Run

func (*MsgSender_GetAZClient_Call) RunAndReturn

type MsgSender_Open_Call

type MsgSender_Open_Call struct {
	*mock.Call
}

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

func (*MsgSender_Open_Call) Return

func (*MsgSender_Open_Call) Run

func (_c *MsgSender_Open_Call) Run(run func()) *MsgSender_Open_Call

func (*MsgSender_Open_Call) RunAndReturn

func (_c *MsgSender_Open_Call) RunAndReturn(run func() error) *MsgSender_Open_Call

type MsgSender_Send_Call

type MsgSender_Send_Call struct {
	*mock.Call
}

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

func (*MsgSender_Send_Call) Return

func (*MsgSender_Send_Call) Run

func (*MsgSender_Send_Call) RunAndReturn

type MsgSender_String_Call

type MsgSender_String_Call struct {
	*mock.Call
}

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

func (*MsgSender_String_Call) Return

func (*MsgSender_String_Call) Run

func (_c *MsgSender_String_Call) Run(run func()) *MsgSender_String_Call

func (*MsgSender_String_Call) RunAndReturn

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

type ReceiverOption added in v0.10.3

type ReceiverOption struct {
	mock.Mock
}

ReceiverOption is an autogenerated mock type for the ReceiverOption type

func NewReceiverOption added in v0.10.3

func NewReceiverOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReceiverOption

NewReceiverOption creates a new instance of ReceiverOption. 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 (*ReceiverOption) EXPECT added in v0.10.3

func (*ReceiverOption) Execute added in v0.10.3

func (_m *ReceiverOption) Execute(_a0 *azbus.Receiver)

Execute provides a mock function with given fields: _a0

type ReceiverOption_Execute_Call added in v0.10.3

type ReceiverOption_Execute_Call struct {
	*mock.Call
}

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

func (*ReceiverOption_Execute_Call) Return added in v0.10.3

func (*ReceiverOption_Execute_Call) Run added in v0.10.3

func (*ReceiverOption_Execute_Call) RunAndReturn added in v0.10.3

type ReceiverOption_Expecter added in v0.10.3

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

func (*ReceiverOption_Expecter) Execute added in v0.10.3

func (_e *ReceiverOption_Expecter) Execute(_a0 interface{}) *ReceiverOption_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 *azbus.Receiver

Jump to

Keyboard shortcuts

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