mock_message

package
v0.0.0-...-572c485 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockImmutableMessage

type MockImmutableMessage struct {
	mock.Mock
}

MockImmutableMessage is an autogenerated mock type for the ImmutableMessage type

func NewMockImmutableMessage

func NewMockImmutableMessage(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockImmutableMessage

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

func (*MockImmutableMessage) EstimateSize

func (_m *MockImmutableMessage) EstimateSize() int

EstimateSize provides a mock function with given fields:

func (*MockImmutableMessage) LastConfirmedMessageID

func (_m *MockImmutableMessage) LastConfirmedMessageID() message.MessageID

LastConfirmedMessageID provides a mock function with given fields:

func (*MockImmutableMessage) MessageID

func (_m *MockImmutableMessage) MessageID() message.MessageID

MessageID provides a mock function with given fields:

func (*MockImmutableMessage) MessageType

func (_m *MockImmutableMessage) MessageType() message.MessageType

MessageType provides a mock function with given fields:

func (*MockImmutableMessage) Payload

func (_m *MockImmutableMessage) Payload() []byte

Payload provides a mock function with given fields:

func (*MockImmutableMessage) Properties

func (_m *MockImmutableMessage) Properties() message.RProperties

Properties provides a mock function with given fields:

func (*MockImmutableMessage) TimeTick

func (_m *MockImmutableMessage) TimeTick() uint64

TimeTick provides a mock function with given fields:

func (*MockImmutableMessage) VChannel

func (_m *MockImmutableMessage) VChannel() string

VChannel provides a mock function with given fields:

func (*MockImmutableMessage) Version

func (_m *MockImmutableMessage) Version() message.Version

Version provides a mock function with given fields:

func (*MockImmutableMessage) WALName

func (_m *MockImmutableMessage) WALName() string

WALName provides a mock function with given fields:

type MockImmutableMessage_EstimateSize_Call

type MockImmutableMessage_EstimateSize_Call struct {
	*mock.Call
}

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

func (*MockImmutableMessage_EstimateSize_Call) Return

func (*MockImmutableMessage_EstimateSize_Call) Run

func (*MockImmutableMessage_EstimateSize_Call) RunAndReturn

type MockImmutableMessage_Expecter

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

func (*MockImmutableMessage_Expecter) EstimateSize

EstimateSize is a helper method to define mock.On call

func (*MockImmutableMessage_Expecter) LastConfirmedMessageID

LastConfirmedMessageID is a helper method to define mock.On call

func (*MockImmutableMessage_Expecter) MessageID

MessageID is a helper method to define mock.On call

func (*MockImmutableMessage_Expecter) MessageType

MessageType is a helper method to define mock.On call

func (*MockImmutableMessage_Expecter) Payload

Payload is a helper method to define mock.On call

func (*MockImmutableMessage_Expecter) Properties

Properties is a helper method to define mock.On call

func (*MockImmutableMessage_Expecter) TimeTick

TimeTick is a helper method to define mock.On call

func (*MockImmutableMessage_Expecter) VChannel

VChannel is a helper method to define mock.On call

func (*MockImmutableMessage_Expecter) Version

Version is a helper method to define mock.On call

func (*MockImmutableMessage_Expecter) WALName

WALName is a helper method to define mock.On call

type MockImmutableMessage_LastConfirmedMessageID_Call

type MockImmutableMessage_LastConfirmedMessageID_Call struct {
	*mock.Call
}

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

func (*MockImmutableMessage_LastConfirmedMessageID_Call) Return

func (*MockImmutableMessage_LastConfirmedMessageID_Call) Run

func (*MockImmutableMessage_LastConfirmedMessageID_Call) RunAndReturn

type MockImmutableMessage_MessageID_Call

type MockImmutableMessage_MessageID_Call struct {
	*mock.Call
}

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

func (*MockImmutableMessage_MessageID_Call) Return

func (*MockImmutableMessage_MessageID_Call) Run

func (*MockImmutableMessage_MessageID_Call) RunAndReturn

type MockImmutableMessage_MessageType_Call

type MockImmutableMessage_MessageType_Call struct {
	*mock.Call
}

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

func (*MockImmutableMessage_MessageType_Call) Return

func (*MockImmutableMessage_MessageType_Call) Run

func (*MockImmutableMessage_MessageType_Call) RunAndReturn

type MockImmutableMessage_Payload_Call

type MockImmutableMessage_Payload_Call struct {
	*mock.Call
}

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

func (*MockImmutableMessage_Payload_Call) Return

func (*MockImmutableMessage_Payload_Call) Run

func (*MockImmutableMessage_Payload_Call) RunAndReturn

type MockImmutableMessage_Properties_Call

type MockImmutableMessage_Properties_Call struct {
	*mock.Call
}

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

func (*MockImmutableMessage_Properties_Call) Return

func (*MockImmutableMessage_Properties_Call) Run

func (*MockImmutableMessage_Properties_Call) RunAndReturn

type MockImmutableMessage_TimeTick_Call

type MockImmutableMessage_TimeTick_Call struct {
	*mock.Call
}

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

func (*MockImmutableMessage_TimeTick_Call) Return

func (*MockImmutableMessage_TimeTick_Call) Run

func (*MockImmutableMessage_TimeTick_Call) RunAndReturn

type MockImmutableMessage_VChannel_Call

type MockImmutableMessage_VChannel_Call struct {
	*mock.Call
}

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

func (*MockImmutableMessage_VChannel_Call) Return

func (*MockImmutableMessage_VChannel_Call) Run

func (*MockImmutableMessage_VChannel_Call) RunAndReturn

type MockImmutableMessage_Version_Call

type MockImmutableMessage_Version_Call struct {
	*mock.Call
}

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

func (*MockImmutableMessage_Version_Call) Return

func (*MockImmutableMessage_Version_Call) Run

func (*MockImmutableMessage_Version_Call) RunAndReturn

type MockImmutableMessage_WALName_Call

type MockImmutableMessage_WALName_Call struct {
	*mock.Call
}

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

func (*MockImmutableMessage_WALName_Call) Return

func (*MockImmutableMessage_WALName_Call) Run

func (*MockImmutableMessage_WALName_Call) RunAndReturn

type MockMessageID

type MockMessageID struct {
	mock.Mock
}

MockMessageID is an autogenerated mock type for the MessageID type

func NewMockMessageID

func NewMockMessageID(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMessageID

NewMockMessageID creates a new instance of MockMessageID. 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 (*MockMessageID) EQ

func (_m *MockMessageID) EQ(_a0 message.MessageID) bool

EQ provides a mock function with given fields: _a0

func (*MockMessageID) EXPECT

func (_m *MockMessageID) EXPECT() *MockMessageID_Expecter

func (*MockMessageID) LT

func (_m *MockMessageID) LT(_a0 message.MessageID) bool

LT provides a mock function with given fields: _a0

func (*MockMessageID) LTE

func (_m *MockMessageID) LTE(_a0 message.MessageID) bool

LTE provides a mock function with given fields: _a0

func (*MockMessageID) Marshal

func (_m *MockMessageID) Marshal() string

Marshal provides a mock function with given fields:

func (*MockMessageID) WALName

func (_m *MockMessageID) WALName() string

WALName provides a mock function with given fields:

type MockMessageID_EQ_Call

type MockMessageID_EQ_Call struct {
	*mock.Call
}

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

func (*MockMessageID_EQ_Call) Return

func (*MockMessageID_EQ_Call) Run

func (*MockMessageID_EQ_Call) RunAndReturn

func (_c *MockMessageID_EQ_Call) RunAndReturn(run func(message.MessageID) bool) *MockMessageID_EQ_Call

type MockMessageID_Expecter

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

func (*MockMessageID_Expecter) EQ

func (_e *MockMessageID_Expecter) EQ(_a0 interface{}) *MockMessageID_EQ_Call

EQ is a helper method to define mock.On call

  • _a0 message.MessageID

func (*MockMessageID_Expecter) LT

func (_e *MockMessageID_Expecter) LT(_a0 interface{}) *MockMessageID_LT_Call

LT is a helper method to define mock.On call

  • _a0 message.MessageID

func (*MockMessageID_Expecter) LTE

func (_e *MockMessageID_Expecter) LTE(_a0 interface{}) *MockMessageID_LTE_Call

LTE is a helper method to define mock.On call

  • _a0 message.MessageID

func (*MockMessageID_Expecter) Marshal

Marshal is a helper method to define mock.On call

func (*MockMessageID_Expecter) WALName

WALName is a helper method to define mock.On call

type MockMessageID_LTE_Call

type MockMessageID_LTE_Call struct {
	*mock.Call
}

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

func (*MockMessageID_LTE_Call) Return

func (*MockMessageID_LTE_Call) Run

func (*MockMessageID_LTE_Call) RunAndReturn

type MockMessageID_LT_Call

type MockMessageID_LT_Call struct {
	*mock.Call
}

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

func (*MockMessageID_LT_Call) Return

func (*MockMessageID_LT_Call) Run

func (*MockMessageID_LT_Call) RunAndReturn

func (_c *MockMessageID_LT_Call) RunAndReturn(run func(message.MessageID) bool) *MockMessageID_LT_Call

type MockMessageID_Marshal_Call

type MockMessageID_Marshal_Call struct {
	*mock.Call
}

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

func (*MockMessageID_Marshal_Call) Return

func (*MockMessageID_Marshal_Call) Run

func (*MockMessageID_Marshal_Call) RunAndReturn

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

type MockMessageID_WALName_Call

type MockMessageID_WALName_Call struct {
	*mock.Call
}

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

func (*MockMessageID_WALName_Call) Return

func (*MockMessageID_WALName_Call) Run

func (*MockMessageID_WALName_Call) RunAndReturn

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

type MockMutableMessage

type MockMutableMessage struct {
	mock.Mock
}

MockMutableMessage is an autogenerated mock type for the MutableMessage type

func NewMockMutableMessage

func NewMockMutableMessage(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMutableMessage

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

func (*MockMutableMessage) EstimateSize

func (_m *MockMutableMessage) EstimateSize() int

EstimateSize provides a mock function with given fields:

func (*MockMutableMessage) IntoImmutableMessage

func (_m *MockMutableMessage) IntoImmutableMessage(msgID message.MessageID) message.ImmutableMessage

IntoImmutableMessage provides a mock function with given fields: msgID

func (*MockMutableMessage) MessageType

func (_m *MockMutableMessage) MessageType() message.MessageType

MessageType provides a mock function with given fields:

func (*MockMutableMessage) Payload

func (_m *MockMutableMessage) Payload() []byte

Payload provides a mock function with given fields:

func (*MockMutableMessage) Properties

func (_m *MockMutableMessage) Properties() message.RProperties

Properties provides a mock function with given fields:

func (*MockMutableMessage) TimeTick

func (_m *MockMutableMessage) TimeTick() uint64

TimeTick provides a mock function with given fields:

func (*MockMutableMessage) VChannel

func (_m *MockMutableMessage) VChannel() string

VChannel provides a mock function with given fields:

func (*MockMutableMessage) Version

func (_m *MockMutableMessage) Version() message.Version

Version provides a mock function with given fields:

func (*MockMutableMessage) WithLastConfirmed

func (_m *MockMutableMessage) WithLastConfirmed(id message.MessageID) message.MutableMessage

WithLastConfirmed provides a mock function with given fields: id

func (*MockMutableMessage) WithTimeTick

func (_m *MockMutableMessage) WithTimeTick(tt uint64) message.MutableMessage

WithTimeTick provides a mock function with given fields: tt

type MockMutableMessage_EstimateSize_Call

type MockMutableMessage_EstimateSize_Call struct {
	*mock.Call
}

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

func (*MockMutableMessage_EstimateSize_Call) Return

func (*MockMutableMessage_EstimateSize_Call) Run

func (*MockMutableMessage_EstimateSize_Call) RunAndReturn

type MockMutableMessage_Expecter

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

func (*MockMutableMessage_Expecter) EstimateSize

EstimateSize is a helper method to define mock.On call

func (*MockMutableMessage_Expecter) IntoImmutableMessage

func (_e *MockMutableMessage_Expecter) IntoImmutableMessage(msgID interface{}) *MockMutableMessage_IntoImmutableMessage_Call

IntoImmutableMessage is a helper method to define mock.On call

  • msgID message.MessageID

func (*MockMutableMessage_Expecter) MessageType

MessageType is a helper method to define mock.On call

func (*MockMutableMessage_Expecter) Payload

Payload is a helper method to define mock.On call

func (*MockMutableMessage_Expecter) Properties

Properties is a helper method to define mock.On call

func (*MockMutableMessage_Expecter) TimeTick

TimeTick is a helper method to define mock.On call

func (*MockMutableMessage_Expecter) VChannel

VChannel is a helper method to define mock.On call

func (*MockMutableMessage_Expecter) Version

Version is a helper method to define mock.On call

func (*MockMutableMessage_Expecter) WithLastConfirmed

func (_e *MockMutableMessage_Expecter) WithLastConfirmed(id interface{}) *MockMutableMessage_WithLastConfirmed_Call

WithLastConfirmed is a helper method to define mock.On call

  • id message.MessageID

func (*MockMutableMessage_Expecter) WithTimeTick

func (_e *MockMutableMessage_Expecter) WithTimeTick(tt interface{}) *MockMutableMessage_WithTimeTick_Call

WithTimeTick is a helper method to define mock.On call

  • tt uint64

type MockMutableMessage_IntoImmutableMessage_Call

type MockMutableMessage_IntoImmutableMessage_Call struct {
	*mock.Call
}

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

func (*MockMutableMessage_IntoImmutableMessage_Call) Return

func (*MockMutableMessage_IntoImmutableMessage_Call) Run

func (*MockMutableMessage_IntoImmutableMessage_Call) RunAndReturn

type MockMutableMessage_MessageType_Call

type MockMutableMessage_MessageType_Call struct {
	*mock.Call
}

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

func (*MockMutableMessage_MessageType_Call) Return

func (*MockMutableMessage_MessageType_Call) Run

func (*MockMutableMessage_MessageType_Call) RunAndReturn

type MockMutableMessage_Payload_Call

type MockMutableMessage_Payload_Call struct {
	*mock.Call
}

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

func (*MockMutableMessage_Payload_Call) Return

func (*MockMutableMessage_Payload_Call) Run

func (*MockMutableMessage_Payload_Call) RunAndReturn

type MockMutableMessage_Properties_Call

type MockMutableMessage_Properties_Call struct {
	*mock.Call
}

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

func (*MockMutableMessage_Properties_Call) Return

func (*MockMutableMessage_Properties_Call) Run

func (*MockMutableMessage_Properties_Call) RunAndReturn

type MockMutableMessage_TimeTick_Call

type MockMutableMessage_TimeTick_Call struct {
	*mock.Call
}

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

func (*MockMutableMessage_TimeTick_Call) Return

func (*MockMutableMessage_TimeTick_Call) Run

func (*MockMutableMessage_TimeTick_Call) RunAndReturn

type MockMutableMessage_VChannel_Call

type MockMutableMessage_VChannel_Call struct {
	*mock.Call
}

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

func (*MockMutableMessage_VChannel_Call) Return

func (*MockMutableMessage_VChannel_Call) Run

func (*MockMutableMessage_VChannel_Call) RunAndReturn

type MockMutableMessage_Version_Call

type MockMutableMessage_Version_Call struct {
	*mock.Call
}

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

func (*MockMutableMessage_Version_Call) Return

func (*MockMutableMessage_Version_Call) Run

func (*MockMutableMessage_Version_Call) RunAndReturn

type MockMutableMessage_WithLastConfirmed_Call

type MockMutableMessage_WithLastConfirmed_Call struct {
	*mock.Call
}

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

func (*MockMutableMessage_WithLastConfirmed_Call) Return

func (*MockMutableMessage_WithLastConfirmed_Call) Run

func (*MockMutableMessage_WithLastConfirmed_Call) RunAndReturn

type MockMutableMessage_WithTimeTick_Call

type MockMutableMessage_WithTimeTick_Call struct {
	*mock.Call
}

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

func (*MockMutableMessage_WithTimeTick_Call) Return

func (*MockMutableMessage_WithTimeTick_Call) Run

func (*MockMutableMessage_WithTimeTick_Call) RunAndReturn

type MockRProperties

type MockRProperties struct {
	mock.Mock
}

MockRProperties is an autogenerated mock type for the RProperties type

func NewMockRProperties

func NewMockRProperties(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRProperties

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

func (*MockRProperties) Exist

func (_m *MockRProperties) Exist(key string) bool

Exist provides a mock function with given fields: key

func (*MockRProperties) Get

func (_m *MockRProperties) Get(key string) (string, bool)

Get provides a mock function with given fields: key

func (*MockRProperties) ToRawMap

func (_m *MockRProperties) ToRawMap() map[string]string

ToRawMap provides a mock function with given fields:

type MockRProperties_Exist_Call

type MockRProperties_Exist_Call struct {
	*mock.Call
}

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

func (*MockRProperties_Exist_Call) Return

func (*MockRProperties_Exist_Call) Run

func (*MockRProperties_Exist_Call) RunAndReturn

type MockRProperties_Expecter

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

func (*MockRProperties_Expecter) Exist

func (_e *MockRProperties_Expecter) Exist(key interface{}) *MockRProperties_Exist_Call

Exist is a helper method to define mock.On call

  • key string

func (*MockRProperties_Expecter) Get

func (_e *MockRProperties_Expecter) Get(key interface{}) *MockRProperties_Get_Call

Get is a helper method to define mock.On call

  • key string

func (*MockRProperties_Expecter) ToRawMap

ToRawMap is a helper method to define mock.On call

type MockRProperties_Get_Call

type MockRProperties_Get_Call struct {
	*mock.Call
}

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

func (*MockRProperties_Get_Call) Return

func (*MockRProperties_Get_Call) Run

func (*MockRProperties_Get_Call) RunAndReturn

func (_c *MockRProperties_Get_Call) RunAndReturn(run func(string) (string, bool)) *MockRProperties_Get_Call

type MockRProperties_ToRawMap_Call

type MockRProperties_ToRawMap_Call struct {
	*mock.Call
}

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

func (*MockRProperties_ToRawMap_Call) Return

func (*MockRProperties_ToRawMap_Call) Run

func (*MockRProperties_ToRawMap_Call) RunAndReturn

Jump to

Keyboard shortcuts

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