mocks

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtendedCommitCodec

type ExtendedCommitCodec struct {
	mock.Mock
}

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 (*ExtendedCommitCodec) Encode

func (_m *ExtendedCommitCodec) Encode(_a0 types.ExtendedCommitInfo) ([]byte, error)

Encode provides a mock function with given fields: _a0

type ExtendedCommitCodec_Decode_Call

type ExtendedCommitCodec_Decode_Call struct {
	*mock.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 (*ExtendedCommitCodec_Decode_Call) Run

func (*ExtendedCommitCodec_Decode_Call) RunAndReturn

type ExtendedCommitCodec_Encode_Call

type ExtendedCommitCodec_Encode_Call struct {
	*mock.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 (*ExtendedCommitCodec_Encode_Call) Run

func (*ExtendedCommitCodec_Encode_Call) RunAndReturn

type ExtendedCommitCodec_Expecter

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

func (*ExtendedCommitCodec_Expecter) Decode

Decode is a helper method to define mock.On call

  • _a0 []byte

func (*ExtendedCommitCodec_Expecter) Encode

Encode is a helper method to define mock.On call

  • _a0 types.ExtendedCommitInfo

type VoteExtensionCodec

type VoteExtensionCodec struct {
	mock.Mock
}

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 (*VoteExtensionCodec) Encode

Encode provides a mock function with given fields: ve

type VoteExtensionCodec_Decode_Call

type VoteExtensionCodec_Decode_Call struct {
	*mock.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 (*VoteExtensionCodec_Decode_Call) Run

func (*VoteExtensionCodec_Decode_Call) RunAndReturn

type VoteExtensionCodec_Encode_Call

type VoteExtensionCodec_Encode_Call struct {
	*mock.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 (*VoteExtensionCodec_Encode_Call) Run

func (*VoteExtensionCodec_Encode_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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