Documentation ¶
Index ¶
- type ProtoCodec
- type ProtoCodec_Expecter
- type ProtoCodec_MarshalJSON_Call
- func (_c *ProtoCodec_MarshalJSON_Call) Return(_a0 []byte, _a1 error) *ProtoCodec_MarshalJSON_Call
- func (_c *ProtoCodec_MarshalJSON_Call) Run(run func(msg proto.Message)) *ProtoCodec_MarshalJSON_Call
- func (_c *ProtoCodec_MarshalJSON_Call) RunAndReturn(run func(proto.Message) ([]byte, error)) *ProtoCodec_MarshalJSON_Call
- type ProtoCodec_Unmarshal_Call
- func (_c *ProtoCodec_Unmarshal_Call) Return(_a0 error) *ProtoCodec_Unmarshal_Call
- func (_c *ProtoCodec_Unmarshal_Call) Run(run func(data []byte, msg proto.Message)) *ProtoCodec_Unmarshal_Call
- func (_c *ProtoCodec_Unmarshal_Call) RunAndReturn(run func([]byte, proto.Message) error) *ProtoCodec_Unmarshal_Call
- type ProtoCodec_UnpackAny_Call
- func (_c *ProtoCodec_UnpackAny_Call) Return(_a0 error) *ProtoCodec_UnpackAny_Call
- func (_c *ProtoCodec_UnpackAny_Call) Run(run func(any *types.Any, iface interface{})) *ProtoCodec_UnpackAny_Call
- func (_c *ProtoCodec_UnpackAny_Call) RunAndReturn(run func(*types.Any, interface{}) error) *ProtoCodec_UnpackAny_Call
- type SDKTypes
- type SDKTypes_Expecter
- type SDKTypes_ParseTypedEvent_Call
- func (_c *SDKTypes_ParseTypedEvent_Call) Return(_a0 proto.Message, _a1 error) *SDKTypes_ParseTypedEvent_Call
- func (_c *SDKTypes_ParseTypedEvent_Call) Run(run func(event types.Event)) *SDKTypes_ParseTypedEvent_Call
- func (_c *SDKTypes_ParseTypedEvent_Call) RunAndReturn(run func(types.Event) (proto.Message, error)) *SDKTypes_ParseTypedEvent_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProtoCodec ¶
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
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 ¶
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 (_c *ProtoCodec_MarshalJSON_Call) Return(_a0 []byte, _a1 error) *ProtoCodec_MarshalJSON_Call
func (*ProtoCodec_MarshalJSON_Call) Run ¶
func (_c *ProtoCodec_MarshalJSON_Call) Run(run func(msg proto.Message)) *ProtoCodec_MarshalJSON_Call
func (*ProtoCodec_MarshalJSON_Call) RunAndReturn ¶
func (_c *ProtoCodec_MarshalJSON_Call) RunAndReturn(run func(proto.Message) ([]byte, error)) *ProtoCodec_MarshalJSON_Call
type ProtoCodec_Unmarshal_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 (_c *ProtoCodec_Unmarshal_Call) Return(_a0 error) *ProtoCodec_Unmarshal_Call
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 ¶
func (_c *ProtoCodec_Unmarshal_Call) RunAndReturn(run func([]byte, proto.Message) error) *ProtoCodec_Unmarshal_Call
type ProtoCodec_UnpackAny_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 (_c *ProtoCodec_UnpackAny_Call) Return(_a0 error) *ProtoCodec_UnpackAny_Call
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 ¶
SDKTypes is an autogenerated mock type for the SDKTypes type
func NewSDKTypes ¶
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
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 ¶
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 (_c *SDKTypes_ParseTypedEvent_Call) Return(_a0 proto.Message, _a1 error) *SDKTypes_ParseTypedEvent_Call
func (*SDKTypes_ParseTypedEvent_Call) Run ¶
func (_c *SDKTypes_ParseTypedEvent_Call) Run(run func(event types.Event)) *SDKTypes_ParseTypedEvent_Call
func (*SDKTypes_ParseTypedEvent_Call) RunAndReturn ¶
func (_c *SDKTypes_ParseTypedEvent_Call) RunAndReturn(run func(types.Event) (proto.Message, error)) *SDKTypes_ParseTypedEvent_Call