mocks

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 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 Application

type Application struct {
	mock.Mock
}

Application is an autogenerated mock type for the Application type

func NewApplication

func NewApplication(t interface {
	mock.TestingT
	Cleanup(func())
}) *Application

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

func (_mock *Application) ApplySnapshotChunk(context1 context.Context, requestApplySnapshotChunk *types.RequestApplySnapshotChunk) (*types.ResponseApplySnapshotChunk, error)

ApplySnapshotChunk provides a mock function for the type Application

func (*Application) CheckTx

func (_mock *Application) CheckTx(context1 context.Context, requestCheckTx *types.RequestCheckTx) (*types.ResponseCheckTx, error)

CheckTx provides a mock function for the type Application

func (*Application) EXPECT added in v1.4.0

func (_m *Application) EXPECT() *Application_Expecter

func (*Application) ExtendVote

func (_mock *Application) ExtendVote(context1 context.Context, requestExtendVote *types.RequestExtendVote) (*types.ResponseExtendVote, error)

ExtendVote provides a mock function for the type Application

func (*Application) FinalizeBlock

func (_mock *Application) FinalizeBlock(context1 context.Context, requestFinalizeBlock *types.RequestFinalizeBlock) (*types.ResponseFinalizeBlock, error)

FinalizeBlock provides a mock function for the type Application

func (*Application) Info

func (_mock *Application) Info(context1 context.Context, requestInfo *types.RequestInfo) (*types.ResponseInfo, error)

Info provides a mock function for the type Application

func (*Application) InitChain

func (_mock *Application) InitChain(context1 context.Context, requestInitChain *types.RequestInitChain) (*types.ResponseInitChain, error)

InitChain provides a mock function for the type Application

func (*Application) ListSnapshots

func (_mock *Application) ListSnapshots(context1 context.Context, requestListSnapshots *types.RequestListSnapshots) (*types.ResponseListSnapshots, error)

ListSnapshots provides a mock function for the type Application

func (*Application) LoadSnapshotChunk

func (_mock *Application) LoadSnapshotChunk(context1 context.Context, requestLoadSnapshotChunk *types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error)

LoadSnapshotChunk provides a mock function for the type Application

func (*Application) OfferSnapshot

func (_mock *Application) OfferSnapshot(context1 context.Context, requestOfferSnapshot *types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error)

OfferSnapshot provides a mock function for the type Application

func (*Application) PrepareProposal

func (_mock *Application) PrepareProposal(context1 context.Context, requestPrepareProposal *types.RequestPrepareProposal) (*types.ResponsePrepareProposal, error)

PrepareProposal provides a mock function for the type Application

func (*Application) ProcessProposal

func (_mock *Application) ProcessProposal(context1 context.Context, requestProcessProposal *types.RequestProcessProposal) (*types.ResponseProcessProposal, error)

ProcessProposal provides a mock function for the type Application

func (*Application) Query

func (_mock *Application) Query(context1 context.Context, requestQuery *types.RequestQuery) (*types.ResponseQuery, error)

Query provides a mock function for the type Application

func (*Application) VerifyVoteExtension

func (_mock *Application) VerifyVoteExtension(context1 context.Context, requestVerifyVoteExtension *types.RequestVerifyVoteExtension) (*types.ResponseVerifyVoteExtension, error)

VerifyVoteExtension provides a mock function for the type Application

type Application_ApplySnapshotChunk_Call added in v1.4.0

type Application_ApplySnapshotChunk_Call struct {
	*mock.Call
}

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

func (*Application_ApplySnapshotChunk_Call) Return added in v1.4.0

func (*Application_ApplySnapshotChunk_Call) Run added in v1.4.0

func (*Application_ApplySnapshotChunk_Call) RunAndReturn added in v1.4.0

type Application_CheckTx_Call added in v1.4.0

type Application_CheckTx_Call struct {
	*mock.Call
}

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

func (*Application_CheckTx_Call) Return added in v1.4.0

func (*Application_CheckTx_Call) Run added in v1.4.0

func (_c *Application_CheckTx_Call) Run(run func(context1 context.Context, requestCheckTx *types.RequestCheckTx)) *Application_CheckTx_Call

func (*Application_CheckTx_Call) RunAndReturn added in v1.4.0

func (_c *Application_CheckTx_Call) RunAndReturn(run func(context1 context.Context, requestCheckTx *types.RequestCheckTx) (*types.ResponseCheckTx, error)) *Application_CheckTx_Call

type Application_Expecter added in v1.4.0

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

func (*Application_Expecter) ApplySnapshotChunk added in v1.4.0

func (_e *Application_Expecter) ApplySnapshotChunk(context1 interface{}, requestApplySnapshotChunk interface{}) *Application_ApplySnapshotChunk_Call

ApplySnapshotChunk is a helper method to define mock.On call

  • context1 context.Context
  • requestApplySnapshotChunk *types.RequestApplySnapshotChunk

func (*Application_Expecter) CheckTx added in v1.4.0

func (_e *Application_Expecter) CheckTx(context1 interface{}, requestCheckTx interface{}) *Application_CheckTx_Call

CheckTx is a helper method to define mock.On call

  • context1 context.Context
  • requestCheckTx *types.RequestCheckTx

func (*Application_Expecter) ExtendVote added in v1.4.0

func (_e *Application_Expecter) ExtendVote(context1 interface{}, requestExtendVote interface{}) *Application_ExtendVote_Call

ExtendVote is a helper method to define mock.On call

  • context1 context.Context
  • requestExtendVote *types.RequestExtendVote

func (*Application_Expecter) FinalizeBlock added in v1.4.0

func (_e *Application_Expecter) FinalizeBlock(context1 interface{}, requestFinalizeBlock interface{}) *Application_FinalizeBlock_Call

FinalizeBlock is a helper method to define mock.On call

  • context1 context.Context
  • requestFinalizeBlock *types.RequestFinalizeBlock

func (*Application_Expecter) Info added in v1.4.0

func (_e *Application_Expecter) Info(context1 interface{}, requestInfo interface{}) *Application_Info_Call

Info is a helper method to define mock.On call

  • context1 context.Context
  • requestInfo *types.RequestInfo

func (*Application_Expecter) InitChain added in v1.4.0

func (_e *Application_Expecter) InitChain(context1 interface{}, requestInitChain interface{}) *Application_InitChain_Call

InitChain is a helper method to define mock.On call

  • context1 context.Context
  • requestInitChain *types.RequestInitChain

func (*Application_Expecter) ListSnapshots added in v1.4.0

func (_e *Application_Expecter) ListSnapshots(context1 interface{}, requestListSnapshots interface{}) *Application_ListSnapshots_Call

ListSnapshots is a helper method to define mock.On call

  • context1 context.Context
  • requestListSnapshots *types.RequestListSnapshots

func (*Application_Expecter) LoadSnapshotChunk added in v1.4.0

func (_e *Application_Expecter) LoadSnapshotChunk(context1 interface{}, requestLoadSnapshotChunk interface{}) *Application_LoadSnapshotChunk_Call

LoadSnapshotChunk is a helper method to define mock.On call

  • context1 context.Context
  • requestLoadSnapshotChunk *types.RequestLoadSnapshotChunk

func (*Application_Expecter) OfferSnapshot added in v1.4.0

func (_e *Application_Expecter) OfferSnapshot(context1 interface{}, requestOfferSnapshot interface{}) *Application_OfferSnapshot_Call

OfferSnapshot is a helper method to define mock.On call

  • context1 context.Context
  • requestOfferSnapshot *types.RequestOfferSnapshot

func (*Application_Expecter) PrepareProposal added in v1.4.0

func (_e *Application_Expecter) PrepareProposal(context1 interface{}, requestPrepareProposal interface{}) *Application_PrepareProposal_Call

PrepareProposal is a helper method to define mock.On call

  • context1 context.Context
  • requestPrepareProposal *types.RequestPrepareProposal

func (*Application_Expecter) ProcessProposal added in v1.4.0

func (_e *Application_Expecter) ProcessProposal(context1 interface{}, requestProcessProposal interface{}) *Application_ProcessProposal_Call

ProcessProposal is a helper method to define mock.On call

  • context1 context.Context
  • requestProcessProposal *types.RequestProcessProposal

func (*Application_Expecter) Query added in v1.4.0

func (_e *Application_Expecter) Query(context1 interface{}, requestQuery interface{}) *Application_Query_Call

Query is a helper method to define mock.On call

  • context1 context.Context
  • requestQuery *types.RequestQuery

func (*Application_Expecter) VerifyVoteExtension added in v1.4.0

func (_e *Application_Expecter) VerifyVoteExtension(context1 interface{}, requestVerifyVoteExtension interface{}) *Application_VerifyVoteExtension_Call

VerifyVoteExtension is a helper method to define mock.On call

  • context1 context.Context
  • requestVerifyVoteExtension *types.RequestVerifyVoteExtension

type Application_ExtendVote_Call added in v1.4.0

type Application_ExtendVote_Call struct {
	*mock.Call
}

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

func (*Application_ExtendVote_Call) Return added in v1.4.0

func (*Application_ExtendVote_Call) Run added in v1.4.0

func (_c *Application_ExtendVote_Call) Run(run func(context1 context.Context, requestExtendVote *types.RequestExtendVote)) *Application_ExtendVote_Call

func (*Application_ExtendVote_Call) RunAndReturn added in v1.4.0

func (_c *Application_ExtendVote_Call) RunAndReturn(run func(context1 context.Context, requestExtendVote *types.RequestExtendVote) (*types.ResponseExtendVote, error)) *Application_ExtendVote_Call

type Application_FinalizeBlock_Call added in v1.4.0

type Application_FinalizeBlock_Call struct {
	*mock.Call
}

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

func (*Application_FinalizeBlock_Call) Return added in v1.4.0

func (*Application_FinalizeBlock_Call) Run added in v1.4.0

func (_c *Application_FinalizeBlock_Call) Run(run func(context1 context.Context, requestFinalizeBlock *types.RequestFinalizeBlock)) *Application_FinalizeBlock_Call

func (*Application_FinalizeBlock_Call) RunAndReturn added in v1.4.0

type Application_Info_Call added in v1.4.0

type Application_Info_Call struct {
	*mock.Call
}

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

func (*Application_Info_Call) Return added in v1.4.0

func (_c *Application_Info_Call) Return(responseInfo *types.ResponseInfo, err error) *Application_Info_Call

func (*Application_Info_Call) Run added in v1.4.0

func (_c *Application_Info_Call) Run(run func(context1 context.Context, requestInfo *types.RequestInfo)) *Application_Info_Call

func (*Application_Info_Call) RunAndReturn added in v1.4.0

func (_c *Application_Info_Call) RunAndReturn(run func(context1 context.Context, requestInfo *types.RequestInfo) (*types.ResponseInfo, error)) *Application_Info_Call

type Application_InitChain_Call added in v1.4.0

type Application_InitChain_Call struct {
	*mock.Call
}

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

func (*Application_InitChain_Call) Return added in v1.4.0

func (*Application_InitChain_Call) Run added in v1.4.0

func (_c *Application_InitChain_Call) Run(run func(context1 context.Context, requestInitChain *types.RequestInitChain)) *Application_InitChain_Call

func (*Application_InitChain_Call) RunAndReturn added in v1.4.0

func (_c *Application_InitChain_Call) RunAndReturn(run func(context1 context.Context, requestInitChain *types.RequestInitChain) (*types.ResponseInitChain, error)) *Application_InitChain_Call

type Application_ListSnapshots_Call added in v1.4.0

type Application_ListSnapshots_Call struct {
	*mock.Call
}

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

func (*Application_ListSnapshots_Call) Return added in v1.4.0

func (*Application_ListSnapshots_Call) Run added in v1.4.0

func (_c *Application_ListSnapshots_Call) Run(run func(context1 context.Context, requestListSnapshots *types.RequestListSnapshots)) *Application_ListSnapshots_Call

func (*Application_ListSnapshots_Call) RunAndReturn added in v1.4.0

type Application_LoadSnapshotChunk_Call added in v1.4.0

type Application_LoadSnapshotChunk_Call struct {
	*mock.Call
}

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

func (*Application_LoadSnapshotChunk_Call) Return added in v1.4.0

func (*Application_LoadSnapshotChunk_Call) Run added in v1.4.0

func (*Application_LoadSnapshotChunk_Call) RunAndReturn added in v1.4.0

type Application_OfferSnapshot_Call added in v1.4.0

type Application_OfferSnapshot_Call struct {
	*mock.Call
}

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

func (*Application_OfferSnapshot_Call) Return added in v1.4.0

func (*Application_OfferSnapshot_Call) Run added in v1.4.0

func (_c *Application_OfferSnapshot_Call) Run(run func(context1 context.Context, requestOfferSnapshot *types.RequestOfferSnapshot)) *Application_OfferSnapshot_Call

func (*Application_OfferSnapshot_Call) RunAndReturn added in v1.4.0

type Application_PrepareProposal_Call added in v1.4.0

type Application_PrepareProposal_Call struct {
	*mock.Call
}

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

func (*Application_PrepareProposal_Call) Return added in v1.4.0

func (*Application_PrepareProposal_Call) Run added in v1.4.0

func (*Application_PrepareProposal_Call) RunAndReturn added in v1.4.0

type Application_ProcessProposal_Call added in v1.4.0

type Application_ProcessProposal_Call struct {
	*mock.Call
}

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

func (*Application_ProcessProposal_Call) Return added in v1.4.0

func (*Application_ProcessProposal_Call) Run added in v1.4.0

func (*Application_ProcessProposal_Call) RunAndReturn added in v1.4.0

type Application_Query_Call added in v1.4.0

type Application_Query_Call struct {
	*mock.Call
}

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

func (*Application_Query_Call) Return added in v1.4.0

func (_c *Application_Query_Call) Return(responseQuery *types.ResponseQuery, err error) *Application_Query_Call

func (*Application_Query_Call) Run added in v1.4.0

func (_c *Application_Query_Call) Run(run func(context1 context.Context, requestQuery *types.RequestQuery)) *Application_Query_Call

func (*Application_Query_Call) RunAndReturn added in v1.4.0

func (_c *Application_Query_Call) RunAndReturn(run func(context1 context.Context, requestQuery *types.RequestQuery) (*types.ResponseQuery, error)) *Application_Query_Call

type Application_VerifyVoteExtension_Call added in v1.4.0

type Application_VerifyVoteExtension_Call struct {
	*mock.Call
}

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

func (*Application_VerifyVoteExtension_Call) Return added in v1.4.0

func (*Application_VerifyVoteExtension_Call) Run added in v1.4.0

func (*Application_VerifyVoteExtension_Call) RunAndReturn added in v1.4.0

Jump to

Keyboard shortcuts

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