mocks

package
v2.15.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 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 GatewayConnector added in v2.4.0

type GatewayConnector struct {
	mock.Mock
}

GatewayConnector is an autogenerated mock type for the GatewayConnector type

func NewGatewayConnector added in v2.4.0

func NewGatewayConnector(t interface {
	mock.TestingT
	Cleanup(func())
}) *GatewayConnector

NewGatewayConnector creates a new instance of GatewayConnector. 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 (*GatewayConnector) ChallengeResponse added in v2.4.0

func (_m *GatewayConnector) ChallengeResponse(_a0 *url.URL, challenge []byte) ([]byte, error)

ChallengeResponse provides a mock function with given fields: _a0, challenge

func (*GatewayConnector) Close added in v2.4.0

func (_m *GatewayConnector) Close() error

Close provides a mock function with given fields:

func (*GatewayConnector) EXPECT added in v2.15.0

func (*GatewayConnector) NewAuthHeader added in v2.4.0

func (_m *GatewayConnector) NewAuthHeader(_a0 *url.URL) ([]byte, error)

NewAuthHeader provides a mock function with given fields: _a0

func (*GatewayConnector) SendToGateway added in v2.4.0

func (_m *GatewayConnector) SendToGateway(ctx context.Context, gatewayId string, msg *api.Message) error

SendToGateway provides a mock function with given fields: ctx, gatewayId, msg

func (*GatewayConnector) Start added in v2.4.0

func (_m *GatewayConnector) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type GatewayConnectorHandler

type GatewayConnectorHandler struct {
	mock.Mock
}

GatewayConnectorHandler is an autogenerated mock type for the GatewayConnectorHandler type

func NewGatewayConnectorHandler

func NewGatewayConnectorHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *GatewayConnectorHandler

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

func (_m *GatewayConnectorHandler) Close() error

Close provides a mock function with given fields:

func (*GatewayConnectorHandler) EXPECT added in v2.15.0

func (*GatewayConnectorHandler) HandleGatewayMessage

func (_m *GatewayConnectorHandler) HandleGatewayMessage(ctx context.Context, gatewayId string, msg *api.Message)

HandleGatewayMessage provides a mock function with given fields: ctx, gatewayId, msg

func (*GatewayConnectorHandler) Start

Start provides a mock function with given fields: _a0

type GatewayConnectorHandler_Close_Call added in v2.15.0

type GatewayConnectorHandler_Close_Call struct {
	*mock.Call
}

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

func (*GatewayConnectorHandler_Close_Call) Return added in v2.15.0

func (*GatewayConnectorHandler_Close_Call) Run added in v2.15.0

func (*GatewayConnectorHandler_Close_Call) RunAndReturn added in v2.15.0

type GatewayConnectorHandler_Expecter added in v2.15.0

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

func (*GatewayConnectorHandler_Expecter) Close added in v2.15.0

Close is a helper method to define mock.On call

func (*GatewayConnectorHandler_Expecter) HandleGatewayMessage added in v2.15.0

func (_e *GatewayConnectorHandler_Expecter) HandleGatewayMessage(ctx interface{}, gatewayId interface{}, msg interface{}) *GatewayConnectorHandler_HandleGatewayMessage_Call

HandleGatewayMessage is a helper method to define mock.On call

  • ctx context.Context
  • gatewayId string
  • msg *api.Message

func (*GatewayConnectorHandler_Expecter) Start added in v2.15.0

Start is a helper method to define mock.On call

  • _a0 context.Context

type GatewayConnectorHandler_HandleGatewayMessage_Call added in v2.15.0

type GatewayConnectorHandler_HandleGatewayMessage_Call struct {
	*mock.Call
}

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

func (*GatewayConnectorHandler_HandleGatewayMessage_Call) Return added in v2.15.0

func (*GatewayConnectorHandler_HandleGatewayMessage_Call) Run added in v2.15.0

func (*GatewayConnectorHandler_HandleGatewayMessage_Call) RunAndReturn added in v2.15.0

type GatewayConnectorHandler_Start_Call added in v2.15.0

type GatewayConnectorHandler_Start_Call struct {
	*mock.Call
}

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

func (*GatewayConnectorHandler_Start_Call) Return added in v2.15.0

func (*GatewayConnectorHandler_Start_Call) Run added in v2.15.0

func (*GatewayConnectorHandler_Start_Call) RunAndReturn added in v2.15.0

type GatewayConnector_ChallengeResponse_Call added in v2.15.0

type GatewayConnector_ChallengeResponse_Call struct {
	*mock.Call
}

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

func (*GatewayConnector_ChallengeResponse_Call) Return added in v2.15.0

func (*GatewayConnector_ChallengeResponse_Call) Run added in v2.15.0

func (*GatewayConnector_ChallengeResponse_Call) RunAndReturn added in v2.15.0

type GatewayConnector_Close_Call added in v2.15.0

type GatewayConnector_Close_Call struct {
	*mock.Call
}

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

func (*GatewayConnector_Close_Call) Return added in v2.15.0

func (*GatewayConnector_Close_Call) Run added in v2.15.0

func (*GatewayConnector_Close_Call) RunAndReturn added in v2.15.0

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

type GatewayConnector_Expecter added in v2.15.0

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

func (*GatewayConnector_Expecter) ChallengeResponse added in v2.15.0

func (_e *GatewayConnector_Expecter) ChallengeResponse(_a0 interface{}, challenge interface{}) *GatewayConnector_ChallengeResponse_Call

ChallengeResponse is a helper method to define mock.On call

  • _a0 *url.URL
  • challenge []byte

func (*GatewayConnector_Expecter) Close added in v2.15.0

Close is a helper method to define mock.On call

func (*GatewayConnector_Expecter) NewAuthHeader added in v2.15.0

func (_e *GatewayConnector_Expecter) NewAuthHeader(_a0 interface{}) *GatewayConnector_NewAuthHeader_Call

NewAuthHeader is a helper method to define mock.On call

  • _a0 *url.URL

func (*GatewayConnector_Expecter) SendToGateway added in v2.15.0

func (_e *GatewayConnector_Expecter) SendToGateway(ctx interface{}, gatewayId interface{}, msg interface{}) *GatewayConnector_SendToGateway_Call

SendToGateway is a helper method to define mock.On call

  • ctx context.Context
  • gatewayId string
  • msg *api.Message

func (*GatewayConnector_Expecter) Start added in v2.15.0

func (_e *GatewayConnector_Expecter) Start(_a0 interface{}) *GatewayConnector_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

type GatewayConnector_NewAuthHeader_Call added in v2.15.0

type GatewayConnector_NewAuthHeader_Call struct {
	*mock.Call
}

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

func (*GatewayConnector_NewAuthHeader_Call) Return added in v2.15.0

func (*GatewayConnector_NewAuthHeader_Call) Run added in v2.15.0

func (*GatewayConnector_NewAuthHeader_Call) RunAndReturn added in v2.15.0

type GatewayConnector_SendToGateway_Call added in v2.15.0

type GatewayConnector_SendToGateway_Call struct {
	*mock.Call
}

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

func (*GatewayConnector_SendToGateway_Call) Return added in v2.15.0

func (*GatewayConnector_SendToGateway_Call) Run added in v2.15.0

func (*GatewayConnector_SendToGateway_Call) RunAndReturn added in v2.15.0

type GatewayConnector_Start_Call added in v2.15.0

type GatewayConnector_Start_Call struct {
	*mock.Call
}

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

func (*GatewayConnector_Start_Call) Return added in v2.15.0

func (*GatewayConnector_Start_Call) Run added in v2.15.0

func (*GatewayConnector_Start_Call) RunAndReturn added in v2.15.0

type Signer

type Signer struct {
	mock.Mock
}

Signer is an autogenerated mock type for the Signer type

func NewSigner

func NewSigner(t interface {
	mock.TestingT
	Cleanup(func())
}) *Signer

NewSigner creates a new instance of Signer. 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 (*Signer) EXPECT added in v2.15.0

func (_m *Signer) EXPECT() *Signer_Expecter

func (*Signer) Sign

func (_m *Signer) Sign(data ...[]byte) ([]byte, error)

Sign provides a mock function with given fields: data

type Signer_Expecter added in v2.15.0

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

func (*Signer_Expecter) Sign added in v2.15.0

func (_e *Signer_Expecter) Sign(data ...interface{}) *Signer_Sign_Call

Sign is a helper method to define mock.On call

  • data ...[]byte

type Signer_Sign_Call added in v2.15.0

type Signer_Sign_Call struct {
	*mock.Call
}

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

func (*Signer_Sign_Call) Return added in v2.15.0

func (_c *Signer_Sign_Call) Return(_a0 []byte, _a1 error) *Signer_Sign_Call

func (*Signer_Sign_Call) Run added in v2.15.0

func (_c *Signer_Sign_Call) Run(run func(data ...[]byte)) *Signer_Sign_Call

func (*Signer_Sign_Call) RunAndReturn added in v2.15.0

func (_c *Signer_Sign_Call) RunAndReturn(run func(...[]byte) ([]byte, error)) *Signer_Sign_Call

Jump to

Keyboard shortcuts

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