mocks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 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 Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. 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 (*Client) ApplySnapshotChunk

ApplySnapshotChunk provides a mock function with given fields: _a0, _a1

func (*Client) CheckTx

func (_m *Client) CheckTx(_a0 context.Context, _a1 *types.RequestCheckTx) (*types.ResponseCheckTx, error)

CheckTx provides a mock function with given fields: _a0, _a1

func (*Client) EXPECT added in v1.4.0

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) Echo

func (_m *Client) Echo(_a0 context.Context, _a1 string) (*types.ResponseEcho, error)

Echo provides a mock function with given fields: _a0, _a1

func (*Client) Error

func (_m *Client) Error() error

Error provides a mock function with no fields

func (*Client) ExtendVote

ExtendVote provides a mock function with given fields: _a0, _a1

func (*Client) FinalizeBlock

FinalizeBlock provides a mock function with given fields: _a0, _a1

func (*Client) Flush

func (_m *Client) Flush(_a0 context.Context) error

Flush provides a mock function with given fields: _a0

func (*Client) Info

func (_m *Client) Info(_a0 context.Context, _a1 *types.RequestInfo) (*types.ResponseInfo, error)

Info provides a mock function with given fields: _a0, _a1

func (*Client) InitChain

InitChain provides a mock function with given fields: _a0, _a1

func (*Client) IsRunning

func (_m *Client) IsRunning() bool

IsRunning provides a mock function with no fields

func (*Client) ListSnapshots

ListSnapshots provides a mock function with given fields: _a0, _a1

func (*Client) LoadSnapshotChunk

LoadSnapshotChunk provides a mock function with given fields: _a0, _a1

func (*Client) OfferSnapshot

OfferSnapshot provides a mock function with given fields: _a0, _a1

func (*Client) PrepareProposal

PrepareProposal provides a mock function with given fields: _a0, _a1

func (*Client) ProcessProposal

ProcessProposal provides a mock function with given fields: _a0, _a1

func (*Client) Query

func (_m *Client) Query(_a0 context.Context, _a1 *types.RequestQuery) (*types.ResponseQuery, error)

Query provides a mock function with given fields: _a0, _a1

func (*Client) Start

func (_m *Client) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

func (*Client) VerifyVoteExtension

VerifyVoteExtension provides a mock function with given fields: _a0, _a1

func (*Client) Wait

func (_m *Client) Wait()

Wait provides a mock function with no fields

type Client_ApplySnapshotChunk_Call added in v1.4.0

type Client_ApplySnapshotChunk_Call struct {
	*mock.Call
}

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

func (*Client_ApplySnapshotChunk_Call) Return added in v1.4.0

func (*Client_ApplySnapshotChunk_Call) Run added in v1.4.0

func (*Client_ApplySnapshotChunk_Call) RunAndReturn added in v1.4.0

type Client_CheckTx_Call added in v1.4.0

type Client_CheckTx_Call struct {
	*mock.Call
}

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

func (*Client_CheckTx_Call) Return added in v1.4.0

func (*Client_CheckTx_Call) Run added in v1.4.0

func (*Client_CheckTx_Call) RunAndReturn added in v1.4.0

type Client_Echo_Call added in v1.4.0

type Client_Echo_Call struct {
	*mock.Call
}

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

func (*Client_Echo_Call) Return added in v1.4.0

func (_c *Client_Echo_Call) Return(_a0 *types.ResponseEcho, _a1 error) *Client_Echo_Call

func (*Client_Echo_Call) Run added in v1.4.0

func (_c *Client_Echo_Call) Run(run func(_a0 context.Context, _a1 string)) *Client_Echo_Call

func (*Client_Echo_Call) RunAndReturn added in v1.4.0

func (_c *Client_Echo_Call) RunAndReturn(run func(context.Context, string) (*types.ResponseEcho, error)) *Client_Echo_Call

type Client_Error_Call added in v1.4.0

type Client_Error_Call struct {
	*mock.Call
}

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

func (*Client_Error_Call) Return added in v1.4.0

func (_c *Client_Error_Call) Return(_a0 error) *Client_Error_Call

func (*Client_Error_Call) Run added in v1.4.0

func (_c *Client_Error_Call) Run(run func()) *Client_Error_Call

func (*Client_Error_Call) RunAndReturn added in v1.4.0

func (_c *Client_Error_Call) RunAndReturn(run func() error) *Client_Error_Call

type Client_Expecter added in v1.4.0

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

func (*Client_Expecter) ApplySnapshotChunk added in v1.4.0

func (_e *Client_Expecter) ApplySnapshotChunk(_a0 interface{}, _a1 interface{}) *Client_ApplySnapshotChunk_Call

ApplySnapshotChunk is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *types.RequestApplySnapshotChunk

func (*Client_Expecter) CheckTx added in v1.4.0

func (_e *Client_Expecter) CheckTx(_a0 interface{}, _a1 interface{}) *Client_CheckTx_Call

CheckTx is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *types.RequestCheckTx

func (*Client_Expecter) Echo added in v1.4.0

func (_e *Client_Expecter) Echo(_a0 interface{}, _a1 interface{}) *Client_Echo_Call

Echo is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*Client_Expecter) Error added in v1.4.0

func (_e *Client_Expecter) Error() *Client_Error_Call

Error is a helper method to define mock.On call

func (*Client_Expecter) ExtendVote added in v1.4.0

func (_e *Client_Expecter) ExtendVote(_a0 interface{}, _a1 interface{}) *Client_ExtendVote_Call

ExtendVote is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *types.RequestExtendVote

func (*Client_Expecter) FinalizeBlock added in v1.4.0

func (_e *Client_Expecter) FinalizeBlock(_a0 interface{}, _a1 interface{}) *Client_FinalizeBlock_Call

FinalizeBlock is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *types.RequestFinalizeBlock

func (*Client_Expecter) Flush added in v1.4.0

func (_e *Client_Expecter) Flush(_a0 interface{}) *Client_Flush_Call

Flush is a helper method to define mock.On call

  • _a0 context.Context

func (*Client_Expecter) Info added in v1.4.0

func (_e *Client_Expecter) Info(_a0 interface{}, _a1 interface{}) *Client_Info_Call

Info is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *types.RequestInfo

func (*Client_Expecter) InitChain added in v1.4.0

func (_e *Client_Expecter) InitChain(_a0 interface{}, _a1 interface{}) *Client_InitChain_Call

InitChain is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *types.RequestInitChain

func (*Client_Expecter) IsRunning added in v1.4.0

func (_e *Client_Expecter) IsRunning() *Client_IsRunning_Call

IsRunning is a helper method to define mock.On call

func (*Client_Expecter) ListSnapshots added in v1.4.0

func (_e *Client_Expecter) ListSnapshots(_a0 interface{}, _a1 interface{}) *Client_ListSnapshots_Call

ListSnapshots is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *types.RequestListSnapshots

func (*Client_Expecter) LoadSnapshotChunk added in v1.4.0

func (_e *Client_Expecter) LoadSnapshotChunk(_a0 interface{}, _a1 interface{}) *Client_LoadSnapshotChunk_Call

LoadSnapshotChunk is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *types.RequestLoadSnapshotChunk

func (*Client_Expecter) OfferSnapshot added in v1.4.0

func (_e *Client_Expecter) OfferSnapshot(_a0 interface{}, _a1 interface{}) *Client_OfferSnapshot_Call

OfferSnapshot is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *types.RequestOfferSnapshot

func (*Client_Expecter) PrepareProposal added in v1.4.0

func (_e *Client_Expecter) PrepareProposal(_a0 interface{}, _a1 interface{}) *Client_PrepareProposal_Call

PrepareProposal is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *types.RequestPrepareProposal

func (*Client_Expecter) ProcessProposal added in v1.4.0

func (_e *Client_Expecter) ProcessProposal(_a0 interface{}, _a1 interface{}) *Client_ProcessProposal_Call

ProcessProposal is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *types.RequestProcessProposal

func (*Client_Expecter) Query added in v1.4.0

func (_e *Client_Expecter) Query(_a0 interface{}, _a1 interface{}) *Client_Query_Call

Query is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *types.RequestQuery

func (*Client_Expecter) Start added in v1.4.0

func (_e *Client_Expecter) Start(_a0 interface{}) *Client_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

func (*Client_Expecter) VerifyVoteExtension added in v1.4.0

func (_e *Client_Expecter) VerifyVoteExtension(_a0 interface{}, _a1 interface{}) *Client_VerifyVoteExtension_Call

VerifyVoteExtension is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *types.RequestVerifyVoteExtension

func (*Client_Expecter) Wait added in v1.4.0

func (_e *Client_Expecter) Wait() *Client_Wait_Call

Wait is a helper method to define mock.On call

type Client_ExtendVote_Call added in v1.4.0

type Client_ExtendVote_Call struct {
	*mock.Call
}

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

func (*Client_ExtendVote_Call) Return added in v1.4.0

func (*Client_ExtendVote_Call) Run added in v1.4.0

func (*Client_ExtendVote_Call) RunAndReturn added in v1.4.0

type Client_FinalizeBlock_Call added in v1.4.0

type Client_FinalizeBlock_Call struct {
	*mock.Call
}

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

func (*Client_FinalizeBlock_Call) Return added in v1.4.0

func (*Client_FinalizeBlock_Call) Run added in v1.4.0

func (*Client_FinalizeBlock_Call) RunAndReturn added in v1.4.0

type Client_Flush_Call added in v1.4.0

type Client_Flush_Call struct {
	*mock.Call
}

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

func (*Client_Flush_Call) Return added in v1.4.0

func (_c *Client_Flush_Call) Return(_a0 error) *Client_Flush_Call

func (*Client_Flush_Call) Run added in v1.4.0

func (_c *Client_Flush_Call) Run(run func(_a0 context.Context)) *Client_Flush_Call

func (*Client_Flush_Call) RunAndReturn added in v1.4.0

func (_c *Client_Flush_Call) RunAndReturn(run func(context.Context) error) *Client_Flush_Call

type Client_Info_Call added in v1.4.0

type Client_Info_Call struct {
	*mock.Call
}

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

func (*Client_Info_Call) Return added in v1.4.0

func (_c *Client_Info_Call) Return(_a0 *types.ResponseInfo, _a1 error) *Client_Info_Call

func (*Client_Info_Call) Run added in v1.4.0

func (_c *Client_Info_Call) Run(run func(_a0 context.Context, _a1 *types.RequestInfo)) *Client_Info_Call

func (*Client_Info_Call) RunAndReturn added in v1.4.0

type Client_InitChain_Call added in v1.4.0

type Client_InitChain_Call struct {
	*mock.Call
}

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

func (*Client_InitChain_Call) Return added in v1.4.0

func (*Client_InitChain_Call) Run added in v1.4.0

func (*Client_InitChain_Call) RunAndReturn added in v1.4.0

type Client_IsRunning_Call added in v1.4.0

type Client_IsRunning_Call struct {
	*mock.Call
}

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

func (*Client_IsRunning_Call) Return added in v1.4.0

func (*Client_IsRunning_Call) Run added in v1.4.0

func (_c *Client_IsRunning_Call) Run(run func()) *Client_IsRunning_Call

func (*Client_IsRunning_Call) RunAndReturn added in v1.4.0

func (_c *Client_IsRunning_Call) RunAndReturn(run func() bool) *Client_IsRunning_Call

type Client_ListSnapshots_Call added in v1.4.0

type Client_ListSnapshots_Call struct {
	*mock.Call
}

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

func (*Client_ListSnapshots_Call) Return added in v1.4.0

func (*Client_ListSnapshots_Call) Run added in v1.4.0

func (*Client_ListSnapshots_Call) RunAndReturn added in v1.4.0

type Client_LoadSnapshotChunk_Call added in v1.4.0

type Client_LoadSnapshotChunk_Call struct {
	*mock.Call
}

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

func (*Client_LoadSnapshotChunk_Call) Return added in v1.4.0

func (*Client_LoadSnapshotChunk_Call) Run added in v1.4.0

func (*Client_LoadSnapshotChunk_Call) RunAndReturn added in v1.4.0

type Client_OfferSnapshot_Call added in v1.4.0

type Client_OfferSnapshot_Call struct {
	*mock.Call
}

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

func (*Client_OfferSnapshot_Call) Return added in v1.4.0

func (*Client_OfferSnapshot_Call) Run added in v1.4.0

func (*Client_OfferSnapshot_Call) RunAndReturn added in v1.4.0

type Client_PrepareProposal_Call added in v1.4.0

type Client_PrepareProposal_Call struct {
	*mock.Call
}

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

func (*Client_PrepareProposal_Call) Return added in v1.4.0

func (*Client_PrepareProposal_Call) Run added in v1.4.0

func (*Client_PrepareProposal_Call) RunAndReturn added in v1.4.0

type Client_ProcessProposal_Call added in v1.4.0

type Client_ProcessProposal_Call struct {
	*mock.Call
}

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

func (*Client_ProcessProposal_Call) Return added in v1.4.0

func (*Client_ProcessProposal_Call) Run added in v1.4.0

func (*Client_ProcessProposal_Call) RunAndReturn added in v1.4.0

type Client_Query_Call added in v1.4.0

type Client_Query_Call struct {
	*mock.Call
}

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

func (*Client_Query_Call) Return added in v1.4.0

func (*Client_Query_Call) Run added in v1.4.0

func (_c *Client_Query_Call) Run(run func(_a0 context.Context, _a1 *types.RequestQuery)) *Client_Query_Call

func (*Client_Query_Call) RunAndReturn added in v1.4.0

type Client_Start_Call added in v1.4.0

type Client_Start_Call struct {
	*mock.Call
}

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

func (*Client_Start_Call) Return added in v1.4.0

func (_c *Client_Start_Call) Return(_a0 error) *Client_Start_Call

func (*Client_Start_Call) Run added in v1.4.0

func (_c *Client_Start_Call) Run(run func(_a0 context.Context)) *Client_Start_Call

func (*Client_Start_Call) RunAndReturn added in v1.4.0

func (_c *Client_Start_Call) RunAndReturn(run func(context.Context) error) *Client_Start_Call

type Client_VerifyVoteExtension_Call added in v1.4.0

type Client_VerifyVoteExtension_Call struct {
	*mock.Call
}

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

func (*Client_VerifyVoteExtension_Call) Return added in v1.4.0

func (*Client_VerifyVoteExtension_Call) Run added in v1.4.0

func (*Client_VerifyVoteExtension_Call) RunAndReturn added in v1.4.0

type Client_Wait_Call added in v1.4.0

type Client_Wait_Call struct {
	*mock.Call
}

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

func (*Client_Wait_Call) Return added in v1.4.0

func (_c *Client_Wait_Call) Return() *Client_Wait_Call

func (*Client_Wait_Call) Run added in v1.4.0

func (_c *Client_Wait_Call) Run(run func()) *Client_Wait_Call

func (*Client_Wait_Call) RunAndReturn added in v1.4.0

func (_c *Client_Wait_Call) RunAndReturn(run func()) *Client_Wait_Call

Jump to

Keyboard shortcuts

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