mocks

package
v0.12.15 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 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) EXPECT

func (_m *Handler) EXPECT() *Handler_Expecter

func (*Handler) Handle

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

type Handler_Expecter

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

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

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 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) Close

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

Close provides a mock function with given fields: _a0

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) Open

func (_m *MsgReceiver) Open() error

Open 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_Close_Call

type MsgReceiver_Close_Call struct {
	*mock.Call
}

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

func (*MsgReceiver_Close_Call) Return

func (*MsgReceiver_Close_Call) Run

func (*MsgReceiver_Close_Call) RunAndReturn

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

type MsgReceiver_Expecter

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

func (*MsgReceiver_Expecter) Close

func (_e *MsgReceiver_Expecter) Close(_a0 interface{}) *MsgReceiver_Close_Call

Close is a helper method to define mock.On call

  • _a0 context.Context

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) Open

Open 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_Open_Call

type MsgReceiver_Open_Call struct {
	*mock.Call
}

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

func (*MsgReceiver_Open_Call) Return

func (*MsgReceiver_Open_Call) Run

func (_c *MsgReceiver_Open_Call) Run(run func()) *MsgReceiver_Open_Call

func (*MsgReceiver_Open_Call) RunAndReturn

func (_c *MsgReceiver_Open_Call) RunAndReturn(run func() error) *MsgReceiver_Open_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 []byte, _a2 ...azbus.OutMessageOption) error

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

func (*MsgSender) SendMsg

func (_m *MsgSender) SendMsg(_a0 context.Context, _a1 azservicebus.Message, _a2 ...azbus.OutMessageOption) error

SendMsg provides a mock function with given fields: _a0, _a1, _a2

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{}, _a2 ...interface{}) *MsgSender_Send_Call

Send is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []byte
  • _a2 ...azbus.OutMessageOption

func (*MsgSender_Expecter) SendMsg

func (_e *MsgSender_Expecter) SendMsg(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MsgSender_SendMsg_Call

SendMsg is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 azservicebus.Message
  • _a2 ...azbus.OutMessageOption

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_SendMsg_Call

type MsgSender_SendMsg_Call struct {
	*mock.Call
}

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

func (*MsgSender_SendMsg_Call) Return

func (*MsgSender_SendMsg_Call) Run

func (*MsgSender_SendMsg_Call) RunAndReturn

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 (_c *MsgSender_Send_Call) Run(run func(_a0 context.Context, _a1 []byte, _a2 ...azbus.OutMessageOption)) *MsgSender_Send_Call

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 OutMessageOption

type OutMessageOption struct {
	mock.Mock
}

OutMessageOption is an autogenerated mock type for the OutMessageOption type

func NewOutMessageOption

func NewOutMessageOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *OutMessageOption

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

func (*OutMessageOption) Execute

func (_m *OutMessageOption) Execute(_a0 *azservicebus.Message)

Execute provides a mock function with given fields: _a0

type OutMessageOption_Execute_Call

type OutMessageOption_Execute_Call struct {
	*mock.Call
}

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

func (*OutMessageOption_Execute_Call) Return

func (*OutMessageOption_Execute_Call) Run

func (*OutMessageOption_Execute_Call) RunAndReturn

type OutMessageOption_Expecter

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

func (*OutMessageOption_Expecter) Execute

func (_e *OutMessageOption_Expecter) Execute(_a0 interface{}) *OutMessageOption_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 *azservicebus.Message

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