mocks

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtoCodec

type ProtoCodec struct {
	mock.Mock
}

ProtoCodec is an autogenerated mock type for the ProtoCodec type

func NewProtoCodec

func NewProtoCodec(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProtoCodec

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

func (_m *ProtoCodec) EXPECT() *ProtoCodec_Expecter

func (*ProtoCodec) MarshalJSON

func (_m *ProtoCodec) MarshalJSON(msg proto.Message) ([]byte, error)

MarshalJSON provides a mock function with given fields: msg

func (*ProtoCodec) Unmarshal

func (_m *ProtoCodec) Unmarshal(data []byte, msg proto.Message) error

Unmarshal provides a mock function with given fields: data, msg

func (*ProtoCodec) UnpackAny

func (_m *ProtoCodec) UnpackAny(any *types.Any, iface interface{}) error

UnpackAny provides a mock function with given fields: any, iface

type ProtoCodec_Expecter

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

func (*ProtoCodec_Expecter) MarshalJSON

func (_e *ProtoCodec_Expecter) MarshalJSON(msg interface{}) *ProtoCodec_MarshalJSON_Call

MarshalJSON is a helper method to define mock.On call

  • msg proto.Message

func (*ProtoCodec_Expecter) Unmarshal

func (_e *ProtoCodec_Expecter) Unmarshal(data interface{}, msg interface{}) *ProtoCodec_Unmarshal_Call

Unmarshal is a helper method to define mock.On call

  • data []byte
  • msg proto.Message

func (*ProtoCodec_Expecter) UnpackAny

func (_e *ProtoCodec_Expecter) UnpackAny(any interface{}, iface interface{}) *ProtoCodec_UnpackAny_Call

UnpackAny is a helper method to define mock.On call

  • any *types.Any
  • iface interface{}

type ProtoCodec_MarshalJSON_Call

type ProtoCodec_MarshalJSON_Call struct {
	*mock.Call
}

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

func (*ProtoCodec_MarshalJSON_Call) Return

func (*ProtoCodec_MarshalJSON_Call) Run

func (*ProtoCodec_MarshalJSON_Call) RunAndReturn

type ProtoCodec_Unmarshal_Call

type ProtoCodec_Unmarshal_Call struct {
	*mock.Call
}

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

func (*ProtoCodec_Unmarshal_Call) Return

func (*ProtoCodec_Unmarshal_Call) Run

func (_c *ProtoCodec_Unmarshal_Call) Run(run func(data []byte, msg proto.Message)) *ProtoCodec_Unmarshal_Call

func (*ProtoCodec_Unmarshal_Call) RunAndReturn

type ProtoCodec_UnpackAny_Call

type ProtoCodec_UnpackAny_Call struct {
	*mock.Call
}

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

func (*ProtoCodec_UnpackAny_Call) Return

func (*ProtoCodec_UnpackAny_Call) Run

func (_c *ProtoCodec_UnpackAny_Call) Run(run func(any *types.Any, iface interface{})) *ProtoCodec_UnpackAny_Call

func (*ProtoCodec_UnpackAny_Call) RunAndReturn

func (_c *ProtoCodec_UnpackAny_Call) RunAndReturn(run func(*types.Any, interface{}) error) *ProtoCodec_UnpackAny_Call

type SDKTypes

type SDKTypes struct {
	mock.Mock
}

SDKTypes is an autogenerated mock type for the SDKTypes type

func NewSDKTypes

func NewSDKTypes(t interface {
	mock.TestingT
	Cleanup(func())
}) *SDKTypes

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

func (_m *SDKTypes) EXPECT() *SDKTypes_Expecter

func (*SDKTypes) ParseTypedEvent

func (_m *SDKTypes) ParseTypedEvent(event types.Event) (proto.Message, error)

ParseTypedEvent provides a mock function with given fields: event

type SDKTypes_Expecter

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

func (*SDKTypes_Expecter) ParseTypedEvent

func (_e *SDKTypes_Expecter) ParseTypedEvent(event interface{}) *SDKTypes_ParseTypedEvent_Call

ParseTypedEvent is a helper method to define mock.On call

  • event types.Event

type SDKTypes_ParseTypedEvent_Call

type SDKTypes_ParseTypedEvent_Call struct {
	*mock.Call
}

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

func (*SDKTypes_ParseTypedEvent_Call) Return

func (*SDKTypes_ParseTypedEvent_Call) Run

func (*SDKTypes_ParseTypedEvent_Call) RunAndReturn

Jump to

Keyboard shortcuts

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