Documentation ¶
Index ¶
- type Application
- func (_m *Application) ApplySnapshotChunk(_a0 types.RequestApplySnapshotChunk) types.ResponseApplySnapshotChunk
- func (_m *Application) BeginBlock(_a0 types.RequestBeginBlock) types.ResponseBeginBlock
- func (_m *Application) CheckTx(_a0 types.RequestCheckTx) types.ResponseCheckTx
- func (_m *Application) Commit() types.ResponseCommit
- func (_m *Application) DeliverTx(_a0 types.RequestDeliverTx) types.ResponseDeliverTx
- func (_m *Application) EndBlock(_a0 types.RequestEndBlock) types.ResponseEndBlock
- func (_m *Application) Info(_a0 types.RequestInfo) types.ResponseInfo
- func (_m *Application) InitChain(_a0 types.RequestInitChain) types.ResponseInitChain
- func (_m *Application) ListSnapshots(_a0 types.RequestListSnapshots) types.ResponseListSnapshots
- func (_m *Application) LoadSnapshotChunk(_a0 types.RequestLoadSnapshotChunk) types.ResponseLoadSnapshotChunk
- func (_m *Application) OfferSnapshot(_a0 types.RequestOfferSnapshot) types.ResponseOfferSnapshot
- func (_m *Application) PrepareProposal(_a0 types.RequestPrepareProposal) types.ResponsePrepareProposal
- func (_m *Application) ProcessProposal(_a0 types.RequestProcessProposal) types.ResponseProcessProposal
- func (_m *Application) Query(_a0 types.RequestQuery) types.ResponseQuery
- type BaseMock
- func (m BaseMock) ApplySnapshotChunk(input types.RequestApplySnapshotChunk) types.ResponseApplySnapshotChunk
- func (m BaseMock) BeginBlock(input types.RequestBeginBlock) types.ResponseBeginBlock
- func (m BaseMock) CheckTx(input types.RequestCheckTx) types.ResponseCheckTx
- func (m BaseMock) Commit() types.ResponseCommit
- func (m BaseMock) DeliverTx(input types.RequestDeliverTx) types.ResponseDeliverTx
- func (m BaseMock) EndBlock(input types.RequestEndBlock) types.ResponseEndBlock
- func (m BaseMock) Info(input types.RequestInfo) types.ResponseInfo
- func (m BaseMock) InitChain(input types.RequestInitChain) types.ResponseInitChain
- func (m BaseMock) ListSnapshots(input types.RequestListSnapshots) types.ResponseListSnapshots
- func (m BaseMock) LoadSnapshotChunk(input types.RequestLoadSnapshotChunk) types.ResponseLoadSnapshotChunk
- func (m BaseMock) OfferSnapshot(input types.RequestOfferSnapshot) types.ResponseOfferSnapshot
- func (m BaseMock) PrepareProposal(input types.RequestPrepareProposal) types.ResponsePrepareProposal
- func (m BaseMock) ProcessProposal(input types.RequestProcessProposal) types.ResponseProcessProposal
- func (m BaseMock) Query(input types.RequestQuery) types.ResponseQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
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 (_m *Application) ApplySnapshotChunk(_a0 types.RequestApplySnapshotChunk) types.ResponseApplySnapshotChunk
ApplySnapshotChunk provides a mock function with given fields: _a0
func (*Application) BeginBlock ¶
func (_m *Application) BeginBlock(_a0 types.RequestBeginBlock) types.ResponseBeginBlock
BeginBlock provides a mock function with given fields: _a0
func (*Application) CheckTx ¶
func (_m *Application) CheckTx(_a0 types.RequestCheckTx) types.ResponseCheckTx
CheckTx provides a mock function with given fields: _a0
func (*Application) Commit ¶
func (_m *Application) Commit() types.ResponseCommit
Commit provides a mock function with given fields:
func (*Application) DeliverTx ¶
func (_m *Application) DeliverTx(_a0 types.RequestDeliverTx) types.ResponseDeliverTx
DeliverTx provides a mock function with given fields: _a0
func (*Application) EndBlock ¶
func (_m *Application) EndBlock(_a0 types.RequestEndBlock) types.ResponseEndBlock
EndBlock provides a mock function with given fields: _a0
func (*Application) Info ¶
func (_m *Application) Info(_a0 types.RequestInfo) types.ResponseInfo
Info provides a mock function with given fields: _a0
func (*Application) InitChain ¶
func (_m *Application) InitChain(_a0 types.RequestInitChain) types.ResponseInitChain
InitChain provides a mock function with given fields: _a0
func (*Application) ListSnapshots ¶
func (_m *Application) ListSnapshots(_a0 types.RequestListSnapshots) types.ResponseListSnapshots
ListSnapshots provides a mock function with given fields: _a0
func (*Application) LoadSnapshotChunk ¶
func (_m *Application) LoadSnapshotChunk(_a0 types.RequestLoadSnapshotChunk) types.ResponseLoadSnapshotChunk
LoadSnapshotChunk provides a mock function with given fields: _a0
func (*Application) OfferSnapshot ¶
func (_m *Application) OfferSnapshot(_a0 types.RequestOfferSnapshot) types.ResponseOfferSnapshot
OfferSnapshot provides a mock function with given fields: _a0
func (*Application) PrepareProposal ¶
func (_m *Application) PrepareProposal(_a0 types.RequestPrepareProposal) types.ResponsePrepareProposal
PrepareProposal provides a mock function with given fields: _a0
func (*Application) ProcessProposal ¶
func (_m *Application) ProcessProposal(_a0 types.RequestProcessProposal) types.ResponseProcessProposal
ProcessProposal provides a mock function with given fields: _a0
func (*Application) Query ¶
func (_m *Application) Query(_a0 types.RequestQuery) types.ResponseQuery
Query provides a mock function with given fields: _a0
type BaseMock ¶
type BaseMock struct { *Application // contains filtered or unexported fields }
BaseMock provides a wrapper around the generated Application mock and a BaseApplication. BaseMock first tries to use the mock's implementation of the method. If no functionality was provided for the mock by the user, BaseMock dispatches to the BaseApplication and uses its functionality. BaseMock allows users to provide mocked functionality for only the methods that matter for their test while avoiding a panic if the code calls Application methods that are not relevant to the test.
func NewBaseMock ¶
func NewBaseMock() BaseMock
func (BaseMock) ApplySnapshotChunk ¶
func (m BaseMock) ApplySnapshotChunk(input types.RequestApplySnapshotChunk) types.ResponseApplySnapshotChunk
func (BaseMock) BeginBlock ¶
func (m BaseMock) BeginBlock(input types.RequestBeginBlock) types.ResponseBeginBlock
func (BaseMock) CheckTx ¶
func (m BaseMock) CheckTx(input types.RequestCheckTx) types.ResponseCheckTx
Mempool Connection Validate a tx for the mempool
func (BaseMock) Commit ¶
func (m BaseMock) Commit() types.ResponseCommit
Commit the state and return the application Merkle root hash
func (BaseMock) DeliverTx ¶
func (m BaseMock) DeliverTx(input types.RequestDeliverTx) types.ResponseDeliverTx
func (BaseMock) EndBlock ¶
func (m BaseMock) EndBlock(input types.RequestEndBlock) types.ResponseEndBlock
func (BaseMock) Info ¶
func (m BaseMock) Info(input types.RequestInfo) types.ResponseInfo
Info/Query Connection Return application info
func (BaseMock) InitChain ¶
func (m BaseMock) InitChain(input types.RequestInitChain) types.ResponseInitChain
Consensus Connection Initialize blockchain w validators/other info from CometBFT
func (BaseMock) ListSnapshots ¶
func (m BaseMock) ListSnapshots(input types.RequestListSnapshots) types.ResponseListSnapshots
State Sync Connection List available snapshots
func (BaseMock) LoadSnapshotChunk ¶
func (m BaseMock) LoadSnapshotChunk(input types.RequestLoadSnapshotChunk) types.ResponseLoadSnapshotChunk
func (BaseMock) OfferSnapshot ¶
func (m BaseMock) OfferSnapshot(input types.RequestOfferSnapshot) types.ResponseOfferSnapshot
func (BaseMock) PrepareProposal ¶
func (m BaseMock) PrepareProposal(input types.RequestPrepareProposal) types.ResponsePrepareProposal
func (BaseMock) ProcessProposal ¶
func (m BaseMock) ProcessProposal(input types.RequestProcessProposal) types.ResponseProcessProposal
func (BaseMock) Query ¶
func (m BaseMock) Query(input types.RequestQuery) types.ResponseQuery