Documentation ¶
Index ¶
- type ExtendedCommitCodec
- type ExtendedCommitCodec_Decode_Call
- func (_c *ExtendedCommitCodec_Decode_Call) Return(_a0 types.ExtendedCommitInfo, _a1 error) *ExtendedCommitCodec_Decode_Call
- func (_c *ExtendedCommitCodec_Decode_Call) Run(run func(_a0 []byte)) *ExtendedCommitCodec_Decode_Call
- func (_c *ExtendedCommitCodec_Decode_Call) RunAndReturn(run func([]byte) (types.ExtendedCommitInfo, error)) *ExtendedCommitCodec_Decode_Call
- type ExtendedCommitCodec_Encode_Call
- func (_c *ExtendedCommitCodec_Encode_Call) Return(_a0 []byte, _a1 error) *ExtendedCommitCodec_Encode_Call
- func (_c *ExtendedCommitCodec_Encode_Call) Run(run func(_a0 types.ExtendedCommitInfo)) *ExtendedCommitCodec_Encode_Call
- func (_c *ExtendedCommitCodec_Encode_Call) RunAndReturn(run func(types.ExtendedCommitInfo) ([]byte, error)) *ExtendedCommitCodec_Encode_Call
- type ExtendedCommitCodec_Expecter
- type VoteExtensionCodec
- type VoteExtensionCodec_Decode_Call
- func (_c *VoteExtensionCodec_Decode_Call) Return(_a0 types.OracleVoteExtension, _a1 error) *VoteExtensionCodec_Decode_Call
- func (_c *VoteExtensionCodec_Decode_Call) Run(run func(_a0 []byte)) *VoteExtensionCodec_Decode_Call
- func (_c *VoteExtensionCodec_Decode_Call) RunAndReturn(run func([]byte) (types.OracleVoteExtension, error)) *VoteExtensionCodec_Decode_Call
- type VoteExtensionCodec_Encode_Call
- func (_c *VoteExtensionCodec_Encode_Call) Return(_a0 []byte, _a1 error) *VoteExtensionCodec_Encode_Call
- func (_c *VoteExtensionCodec_Encode_Call) Run(run func(ve types.OracleVoteExtension)) *VoteExtensionCodec_Encode_Call
- func (_c *VoteExtensionCodec_Encode_Call) RunAndReturn(run func(types.OracleVoteExtension) ([]byte, error)) *VoteExtensionCodec_Encode_Call
- type VoteExtensionCodec_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtendedCommitCodec ¶
ExtendedCommitCodec is an autogenerated mock type for the ExtendedCommitCodec type
func NewExtendedCommitCodec ¶
func NewExtendedCommitCodec(t interface { mock.TestingT Cleanup(func()) }) *ExtendedCommitCodec
NewExtendedCommitCodec creates a new instance of ExtendedCommitCodec. 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 (*ExtendedCommitCodec) Decode ¶
func (_m *ExtendedCommitCodec) Decode(_a0 []byte) (types.ExtendedCommitInfo, error)
Decode provides a mock function with given fields: _a0
func (*ExtendedCommitCodec) EXPECT ¶
func (_m *ExtendedCommitCodec) EXPECT() *ExtendedCommitCodec_Expecter
func (*ExtendedCommitCodec) Encode ¶
func (_m *ExtendedCommitCodec) Encode(_a0 types.ExtendedCommitInfo) ([]byte, error)
Encode provides a mock function with given fields: _a0
type ExtendedCommitCodec_Decode_Call ¶
ExtendedCommitCodec_Decode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decode'
func (*ExtendedCommitCodec_Decode_Call) Return ¶
func (_c *ExtendedCommitCodec_Decode_Call) Return(_a0 types.ExtendedCommitInfo, _a1 error) *ExtendedCommitCodec_Decode_Call
func (*ExtendedCommitCodec_Decode_Call) Run ¶
func (_c *ExtendedCommitCodec_Decode_Call) Run(run func(_a0 []byte)) *ExtendedCommitCodec_Decode_Call
func (*ExtendedCommitCodec_Decode_Call) RunAndReturn ¶
func (_c *ExtendedCommitCodec_Decode_Call) RunAndReturn(run func([]byte) (types.ExtendedCommitInfo, error)) *ExtendedCommitCodec_Decode_Call
type ExtendedCommitCodec_Encode_Call ¶
ExtendedCommitCodec_Encode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encode'
func (*ExtendedCommitCodec_Encode_Call) Return ¶
func (_c *ExtendedCommitCodec_Encode_Call) Return(_a0 []byte, _a1 error) *ExtendedCommitCodec_Encode_Call
func (*ExtendedCommitCodec_Encode_Call) Run ¶
func (_c *ExtendedCommitCodec_Encode_Call) Run(run func(_a0 types.ExtendedCommitInfo)) *ExtendedCommitCodec_Encode_Call
func (*ExtendedCommitCodec_Encode_Call) RunAndReturn ¶
func (_c *ExtendedCommitCodec_Encode_Call) RunAndReturn(run func(types.ExtendedCommitInfo) ([]byte, error)) *ExtendedCommitCodec_Encode_Call
type ExtendedCommitCodec_Expecter ¶
type ExtendedCommitCodec_Expecter struct {
// contains filtered or unexported fields
}
func (*ExtendedCommitCodec_Expecter) Decode ¶
func (_e *ExtendedCommitCodec_Expecter) Decode(_a0 interface{}) *ExtendedCommitCodec_Decode_Call
Decode is a helper method to define mock.On call
- _a0 []byte
func (*ExtendedCommitCodec_Expecter) Encode ¶
func (_e *ExtendedCommitCodec_Expecter) Encode(_a0 interface{}) *ExtendedCommitCodec_Encode_Call
Encode is a helper method to define mock.On call
- _a0 types.ExtendedCommitInfo
type VoteExtensionCodec ¶
VoteExtensionCodec is an autogenerated mock type for the VoteExtensionCodec type
func NewVoteExtensionCodec ¶
func NewVoteExtensionCodec(t interface { mock.TestingT Cleanup(func()) }) *VoteExtensionCodec
NewVoteExtensionCodec creates a new instance of VoteExtensionCodec. 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 (*VoteExtensionCodec) Decode ¶
func (_m *VoteExtensionCodec) Decode(_a0 []byte) (types.OracleVoteExtension, error)
Decode provides a mock function with given fields: _a0
func (*VoteExtensionCodec) EXPECT ¶
func (_m *VoteExtensionCodec) EXPECT() *VoteExtensionCodec_Expecter
func (*VoteExtensionCodec) Encode ¶
func (_m *VoteExtensionCodec) Encode(ve types.OracleVoteExtension) ([]byte, error)
Encode provides a mock function with given fields: ve
type VoteExtensionCodec_Decode_Call ¶
VoteExtensionCodec_Decode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decode'
func (*VoteExtensionCodec_Decode_Call) Return ¶
func (_c *VoteExtensionCodec_Decode_Call) Return(_a0 types.OracleVoteExtension, _a1 error) *VoteExtensionCodec_Decode_Call
func (*VoteExtensionCodec_Decode_Call) Run ¶
func (_c *VoteExtensionCodec_Decode_Call) Run(run func(_a0 []byte)) *VoteExtensionCodec_Decode_Call
func (*VoteExtensionCodec_Decode_Call) RunAndReturn ¶
func (_c *VoteExtensionCodec_Decode_Call) RunAndReturn(run func([]byte) (types.OracleVoteExtension, error)) *VoteExtensionCodec_Decode_Call
type VoteExtensionCodec_Encode_Call ¶
VoteExtensionCodec_Encode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encode'
func (*VoteExtensionCodec_Encode_Call) Return ¶
func (_c *VoteExtensionCodec_Encode_Call) Return(_a0 []byte, _a1 error) *VoteExtensionCodec_Encode_Call
func (*VoteExtensionCodec_Encode_Call) Run ¶
func (_c *VoteExtensionCodec_Encode_Call) Run(run func(ve types.OracleVoteExtension)) *VoteExtensionCodec_Encode_Call
func (*VoteExtensionCodec_Encode_Call) RunAndReturn ¶
func (_c *VoteExtensionCodec_Encode_Call) RunAndReturn(run func(types.OracleVoteExtension) ([]byte, error)) *VoteExtensionCodec_Encode_Call
type VoteExtensionCodec_Expecter ¶
type VoteExtensionCodec_Expecter struct {
// contains filtered or unexported fields
}
func (*VoteExtensionCodec_Expecter) Decode ¶
func (_e *VoteExtensionCodec_Expecter) Decode(_a0 interface{}) *VoteExtensionCodec_Decode_Call
Decode is a helper method to define mock.On call
- _a0 []byte
func (*VoteExtensionCodec_Expecter) Encode ¶
func (_e *VoteExtensionCodec_Expecter) Encode(ve interface{}) *VoteExtensionCodec_Encode_Call
Encode is a helper method to define mock.On call
- ve types.OracleVoteExtension