Documentation
¶
Index ¶
- type AppConnConsensus
- func (_m *AppConnConsensus) CommitSync(ctx context.Context) (*abci.ResponseCommit, error)
- func (_m *AppConnConsensus) Error() error
- func (_m *AppConnConsensus) FinalizeBlockSync(ctx context.Context, req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error)
- func (_m *AppConnConsensus) InitChainSync(ctx context.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
- func (_m *AppConnConsensus) SetResponseCallback(_a0 abcicli.Callback)
- type AppConnMempool
- func (_m *AppConnMempool) CheckTx(ctx context.Context, req *abci.RequestCheckTx) (*abci.ResponseCheckTx, error)
- func (_m *AppConnMempool) CheckTxAsync(req *abci.RequestCheckTx) *abcicli.ReqRes
- func (_m *AppConnMempool) CheckTxWithTimeout(req *abci.RequestCheckTx, timeout time.Duration) (*abci.ResponseCheckTx, error)
- func (_m *AppConnMempool) Error() error
- func (_m *AppConnMempool) FinalizeBlock(ctx context.Context, req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error)
- func (_m *AppConnMempool) Flush(ctx context.Context) error
- func (_m *AppConnMempool) Info(ctx context.Context, req *abci.RequestInfo) (*abci.ResponseInfo, error)
- func (_m *AppConnMempool) SetResponseCallback(_a0 abcicli.Callback)
- type AppConnQuery
- type ClientCreator
- type MockAppConnConsensus
- func (m *MockAppConnConsensus) Commit(ctx context.Context, req *abci.CommitRequest) (*abci.CommitResponse, error)
- func (m *MockAppConnConsensus) CommitSync(ctx context.Context, req *abci.CommitRequest) (*abci.CommitResponse, error)
- func (m *MockAppConnConsensus) ExtendVote(ctx context.Context, req *abci.ExtendVoteRequest) (*abci.ExtendVoteResponse, error)
- func (m *MockAppConnConsensus) FinalizeBlock(ctx context.Context, req *abci.FinalizeBlockRequest) (*abci.FinalizeBlockResponse, error)
- func (m *MockAppConnConsensus) PrepareProposal(ctx context.Context, req *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error)
- func (m *MockAppConnConsensus) ProcessProposal(ctx context.Context, req *abci.ProcessProposalRequest) (*abci.ProcessProposalResponse, error)
- func (m *MockAppConnConsensus) VerifyVoteExtension(ctx context.Context, req *abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error)
- type MockAppConnMempool
- type NewAppConnConsensusT
- type NewAppConnMempoolT
- type NewAppConnQueryT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConnConsensus ¶
AppConnConsensus is an autogenerated mock type for the AppConnConsensus type
func NewAppConnConsensus ¶
func NewAppConnConsensus(t NewAppConnConsensusT) *AppConnConsensus
NewAppConnConsensus creates a new instance of AppConnConsensus. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AppConnConsensus) CommitSync ¶
func (_m *AppConnConsensus) CommitSync(ctx context.Context) (*abci.ResponseCommit, error)
CommitSync provides a mock function with given fields: ctx
func (*AppConnConsensus) Error ¶
func (_m *AppConnConsensus) Error() error
Error provides a mock function with given fields:
func (*AppConnConsensus) FinalizeBlockSync ¶
func (_m *AppConnConsensus) FinalizeBlockSync(ctx context.Context, req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error)
FinalizeBlockSync provides a mock function with given fields: ctx, req
func (*AppConnConsensus) InitChainSync ¶
func (_m *AppConnConsensus) InitChainSync(ctx context.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
InitChainSync provides a mock function with given fields: ctx, req
func (*AppConnConsensus) SetResponseCallback ¶
func (_m *AppConnConsensus) SetResponseCallback(_a0 abcicli.Callback)
SetResponseCallback provides a mock function with given fields: _a0
type AppConnMempool ¶
AppConnMempool is an autogenerated mock type for the AppConnMempool type
func NewAppConnMempool ¶
func NewAppConnMempool(t NewAppConnMempoolT) *AppConnMempool
NewAppConnMempool creates a new instance of AppConnMempool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AppConnMempool) CheckTx ¶
func (_m *AppConnMempool) CheckTx(ctx context.Context, req *abci.RequestCheckTx) (*abci.ResponseCheckTx, error)
CheckTx provides a mock function with given fields: ctx, req
func (*AppConnMempool) CheckTxAsync ¶
func (_m *AppConnMempool) CheckTxAsync(req *abci.RequestCheckTx) *abcicli.ReqRes
CheckTxAsync provides a mock function with given fields: req
func (*AppConnMempool) CheckTxWithTimeout ¶
func (_m *AppConnMempool) CheckTxWithTimeout(req *abci.RequestCheckTx, timeout time.Duration) (*abci.ResponseCheckTx, error)
CheckTxWithTimeout provides a mock function with given fields: req, timeout
func (*AppConnMempool) Error ¶
func (_m *AppConnMempool) Error() error
Error provides a mock function with given fields:
func (*AppConnMempool) FinalizeBlock ¶
func (_m *AppConnMempool) FinalizeBlock(ctx context.Context, req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error)
FinalizeBlock provides a mock function with given fields: ctx, req
func (*AppConnMempool) Flush ¶
func (_m *AppConnMempool) Flush(ctx context.Context) error
Flush provides a mock function with given fields: ctx
func (*AppConnMempool) Info ¶
func (_m *AppConnMempool) Info(ctx context.Context, req *abci.RequestInfo) (*abci.ResponseInfo, error)
Info provides a mock function with given fields: ctx, req
func (*AppConnMempool) SetResponseCallback ¶
func (_m *AppConnMempool) SetResponseCallback(_a0 abcicli.Callback)
SetResponseCallback provides a mock function with given fields: _a0
type AppConnQuery ¶
AppConnQuery is an autogenerated mock type for the AppConnQuery type
func NewAppConnQuery ¶
func NewAppConnQuery(t NewAppConnQueryT) *AppConnQuery
NewAppConnQuery creates a new instance of AppConnQuery. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AppConnQuery) EchoSync ¶
func (_m *AppConnQuery) EchoSync(_a0 string) (*types.ResponseEcho, error)
EchoSync provides a mock function with given fields: _a0
func (*AppConnQuery) Error ¶
func (_m *AppConnQuery) Error() error
Error provides a mock function with given fields:
func (*AppConnQuery) InfoSync ¶
func (_m *AppConnQuery) InfoSync(_a0 types.RequestInfo) (*types.ResponseInfo, error)
InfoSync provides a mock function with given fields: _a0
func (*AppConnQuery) QuerySync ¶
func (_m *AppConnQuery) QuerySync(_a0 types.RequestQuery) (*types.ResponseQuery, error)
QuerySync provides a mock function with given fields: _a0
type ClientCreator ¶
ClientCreator is an autogenerated mock type for the ClientCreator type
func NewClientCreator ¶
func NewClientCreator(t mockConstructorTestingTNewClientCreator) *ClientCreator
NewClientCreator creates a new instance of ClientCreator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClientCreator) NewABCIClient ¶
func (_m *ClientCreator) NewABCIClient() (abcicli.Client, error)
NewABCIClient provides a mock function with given fields:
type MockAppConnConsensus ¶
type MockAppConnConsensus struct {
FinalizeBlockFn func(context.Context, *abci.FinalizeBlockRequest) (*abci.FinalizeBlockResponse, error)
PrepareProposalFn func(context.Context, *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error)
ProcessProposalFn func(context.Context, *abci.ProcessProposalRequest) (*abci.ProcessProposalResponse, error)
ExtendVoteFn func(context.Context, *abci.ExtendVoteRequest) (*abci.ExtendVoteResponse, error)
VerifyVoteExtensionFn func(context.Context, *abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error)
CommitFn func(context.Context, *abci.CommitRequest) (*abci.CommitResponse, error)
}
MockAppConnConsensus implements AppConnConsensus for testing
func (*MockAppConnConsensus) Commit ¶
func (m *MockAppConnConsensus) Commit(ctx context.Context, req *abci.CommitRequest) (*abci.CommitResponse, error)
func (*MockAppConnConsensus) CommitSync ¶
func (m *MockAppConnConsensus) CommitSync(ctx context.Context, req *abci.CommitRequest) (*abci.CommitResponse, error)
func (*MockAppConnConsensus) ExtendVote ¶
func (m *MockAppConnConsensus) ExtendVote(ctx context.Context, req *abci.ExtendVoteRequest) (*abci.ExtendVoteResponse, error)
func (*MockAppConnConsensus) FinalizeBlock ¶
func (m *MockAppConnConsensus) FinalizeBlock(ctx context.Context, req *abci.FinalizeBlockRequest) (*abci.FinalizeBlockResponse, error)
func (*MockAppConnConsensus) PrepareProposal ¶
func (m *MockAppConnConsensus) PrepareProposal(ctx context.Context, req *abci.PrepareProposalRequest) (*abci.PrepareProposalResponse, error)
func (*MockAppConnConsensus) ProcessProposal ¶
func (m *MockAppConnConsensus) ProcessProposal(ctx context.Context, req *abci.ProcessProposalRequest) (*abci.ProcessProposalResponse, error)
func (*MockAppConnConsensus) VerifyVoteExtension ¶
func (m *MockAppConnConsensus) VerifyVoteExtension(ctx context.Context, req *abci.VerifyVoteExtensionRequest) (*abci.VerifyVoteExtensionResponse, error)
type MockAppConnMempool ¶
type MockAppConnMempool struct {
CheckTxFn func(context.Context, *abci.CheckTxRequest) (*abci.CheckTxResponse, error)
CheckTxAsyncFn func(*abci.CheckTxRequest) *abcicli.ReqRes
FlushFn func(context.Context) error
}
MockAppConnMempool implements AppConnMempool for testing
func (*MockAppConnMempool) CheckTx ¶
func (m *MockAppConnMempool) CheckTx(ctx context.Context, req *abci.CheckTxRequest) (*abci.CheckTxResponse, error)
func (*MockAppConnMempool) CheckTxAsync ¶
func (m *MockAppConnMempool) CheckTxAsync(req *abci.CheckTxRequest) *abcicli.ReqRes