Documentation ¶
Index ¶
- type Client
- type ClientMock
- func (mock *ClientMock) ABCIInfo(contextMoqParam context.Context) (*coretypes.ResultABCIInfo, error)
- func (mock *ClientMock) ABCIInfoCalls() []struct{ ... }
- func (mock *ClientMock) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)
- func (mock *ClientMock) ABCIQueryCalls() []struct{ ... }
- func (mock *ClientMock) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, ...) (*coretypes.ResultABCIQuery, error)
- func (mock *ClientMock) ABCIQueryWithOptionsCalls() []struct{ ... }
- func (mock *ClientMock) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)
- func (mock *ClientMock) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error)
- func (mock *ClientMock) BlockByHashCalls() []struct{ ... }
- func (mock *ClientMock) BlockCalls() []struct{ ... }
- func (mock *ClientMock) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)
- func (mock *ClientMock) BlockResultsCalls() []struct{ ... }
- func (mock *ClientMock) BlockSearch(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)
- func (mock *ClientMock) BlockSearchCalls() []struct{ ... }
- func (mock *ClientMock) BlockchainInfo(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)
- func (mock *ClientMock) BlockchainInfoCalls() []struct{ ... }
- func (mock *ClientMock) BroadcastEvidence(contextMoqParam context.Context, evidence types.Evidence) (*coretypes.ResultBroadcastEvidence, error)
- func (mock *ClientMock) BroadcastEvidenceCalls() []struct{ ... }
- func (mock *ClientMock) BroadcastTxAsync(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultBroadcastTx, error)
- func (mock *ClientMock) BroadcastTxAsyncCalls() []struct{ ... }
- func (mock *ClientMock) BroadcastTxCommit(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultBroadcastTxCommit, error)
- func (mock *ClientMock) BroadcastTxCommitCalls() []struct{ ... }
- func (mock *ClientMock) BroadcastTxSync(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultBroadcastTx, error)
- func (mock *ClientMock) BroadcastTxSyncCalls() []struct{ ... }
- func (mock *ClientMock) CheckTx(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultCheckTx, error)
- func (mock *ClientMock) CheckTxCalls() []struct{ ... }
- func (mock *ClientMock) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)
- func (mock *ClientMock) CommitCalls() []struct{ ... }
- func (mock *ClientMock) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error)
- func (mock *ClientMock) ConsensusParamsCalls() []struct{ ... }
- func (mock *ClientMock) ConsensusState(contextMoqParam context.Context) (*coretypes.ResultConsensusState, error)
- func (mock *ClientMock) ConsensusStateCalls() []struct{ ... }
- func (mock *ClientMock) DumpConsensusState(contextMoqParam context.Context) (*coretypes.ResultDumpConsensusState, error)
- func (mock *ClientMock) DumpConsensusStateCalls() []struct{ ... }
- func (mock *ClientMock) Genesis(contextMoqParam context.Context) (*coretypes.ResultGenesis, error)
- func (mock *ClientMock) GenesisCalls() []struct{ ... }
- func (mock *ClientMock) GenesisChunked(contextMoqParam context.Context, v uint) (*coretypes.ResultGenesisChunk, error)
- func (mock *ClientMock) GenesisChunkedCalls() []struct{ ... }
- func (mock *ClientMock) Health(contextMoqParam context.Context) (*coretypes.ResultHealth, error)
- func (mock *ClientMock) HealthCalls() []struct{ ... }
- func (mock *ClientMock) IsRunning() bool
- func (mock *ClientMock) IsRunningCalls() []struct{}
- func (mock *ClientMock) NetInfo(contextMoqParam context.Context) (*coretypes.ResultNetInfo, error)
- func (mock *ClientMock) NetInfoCalls() []struct{ ... }
- func (mock *ClientMock) NumUnconfirmedTxs(contextMoqParam context.Context) (*coretypes.ResultUnconfirmedTxs, error)
- func (mock *ClientMock) NumUnconfirmedTxsCalls() []struct{ ... }
- func (mock *ClientMock) OnReset() error
- func (mock *ClientMock) OnResetCalls() []struct{}
- func (mock *ClientMock) OnStart() error
- func (mock *ClientMock) OnStartCalls() []struct{}
- func (mock *ClientMock) OnStop()
- func (mock *ClientMock) OnStopCalls() []struct{}
- func (mock *ClientMock) Quit() <-chan struct{}
- func (mock *ClientMock) QuitCalls() []struct{}
- func (mock *ClientMock) Reset() error
- func (mock *ClientMock) ResetCalls() []struct{}
- func (mock *ClientMock) SetLogger(logger log.Logger)
- func (mock *ClientMock) SetLoggerCalls() []struct{ ... }
- func (mock *ClientMock) Start() error
- func (mock *ClientMock) StartCalls() []struct{}
- func (mock *ClientMock) Status(contextMoqParam context.Context) (*coretypes.ResultStatus, error)
- func (mock *ClientMock) StatusCalls() []struct{ ... }
- func (mock *ClientMock) Stop() error
- func (mock *ClientMock) StopCalls() []struct{}
- func (mock *ClientMock) String() string
- func (mock *ClientMock) StringCalls() []struct{}
- func (mock *ClientMock) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error)
- func (mock *ClientMock) SubscribeCalls() []struct{ ... }
- func (mock *ClientMock) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error)
- func (mock *ClientMock) TxCalls() []struct{ ... }
- func (mock *ClientMock) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, ...) (*coretypes.ResultTxSearch, error)
- func (mock *ClientMock) TxSearchCalls() []struct{ ... }
- func (mock *ClientMock) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error)
- func (mock *ClientMock) UnconfirmedTxsCalls() []struct{ ... }
- func (mock *ClientMock) Unsubscribe(ctx context.Context, subscriber string, query string) error
- func (mock *ClientMock) UnsubscribeAll(ctx context.Context, subscriber string) error
- func (mock *ClientMock) UnsubscribeAllCalls() []struct{ ... }
- func (mock *ClientMock) UnsubscribeCalls() []struct{ ... }
- func (mock *ClientMock) Validators(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error)
- func (mock *ClientMock) ValidatorsCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMock ¶
type ClientMock struct { // ABCIInfoFunc mocks the ABCIInfo method. ABCIInfoFunc func(contextMoqParam context.Context) (*coretypes.ResultABCIInfo, error) // ABCIQueryFunc mocks the ABCIQuery method. ABCIQueryFunc func(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error) // ABCIQueryWithOptionsFunc mocks the ABCIQueryWithOptions method. ABCIQueryWithOptionsFunc func(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*coretypes.ResultABCIQuery, error) // BlockFunc mocks the Block method. BlockFunc func(ctx context.Context, height *int64) (*coretypes.ResultBlock, error) // BlockByHashFunc mocks the BlockByHash method. BlockByHashFunc func(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error) // BlockResultsFunc mocks the BlockResults method. BlockResultsFunc func(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error) // BlockSearchFunc mocks the BlockSearch method. BlockSearchFunc func(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error) // BlockchainInfoFunc mocks the BlockchainInfo method. BlockchainInfoFunc func(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error) // BroadcastEvidenceFunc mocks the BroadcastEvidence method. BroadcastEvidenceFunc func(contextMoqParam context.Context, evidence types.Evidence) (*coretypes.ResultBroadcastEvidence, error) // BroadcastTxAsyncFunc mocks the BroadcastTxAsync method. BroadcastTxAsyncFunc func(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultBroadcastTx, error) // BroadcastTxCommitFunc mocks the BroadcastTxCommit method. BroadcastTxCommitFunc func(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultBroadcastTxCommit, error) // BroadcastTxSyncFunc mocks the BroadcastTxSync method. BroadcastTxSyncFunc func(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultBroadcastTx, error) // CheckTxFunc mocks the CheckTx method. CheckTxFunc func(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultCheckTx, error) // CommitFunc mocks the Commit method. CommitFunc func(ctx context.Context, height *int64) (*coretypes.ResultCommit, error) // ConsensusParamsFunc mocks the ConsensusParams method. ConsensusParamsFunc func(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error) // ConsensusStateFunc mocks the ConsensusState method. ConsensusStateFunc func(contextMoqParam context.Context) (*coretypes.ResultConsensusState, error) // DumpConsensusStateFunc mocks the DumpConsensusState method. DumpConsensusStateFunc func(contextMoqParam context.Context) (*coretypes.ResultDumpConsensusState, error) // GenesisFunc mocks the Genesis method. GenesisFunc func(contextMoqParam context.Context) (*coretypes.ResultGenesis, error) // GenesisChunkedFunc mocks the GenesisChunked method. GenesisChunkedFunc func(contextMoqParam context.Context, v uint) (*coretypes.ResultGenesisChunk, error) // HealthFunc mocks the Health method. HealthFunc func(contextMoqParam context.Context) (*coretypes.ResultHealth, error) // IsRunningFunc mocks the IsRunning method. IsRunningFunc func() bool // NetInfoFunc mocks the NetInfo method. NetInfoFunc func(contextMoqParam context.Context) (*coretypes.ResultNetInfo, error) // NumUnconfirmedTxsFunc mocks the NumUnconfirmedTxs method. NumUnconfirmedTxsFunc func(contextMoqParam context.Context) (*coretypes.ResultUnconfirmedTxs, error) // OnResetFunc mocks the OnReset method. OnResetFunc func() error // OnStartFunc mocks the OnStart method. OnStartFunc func() error // OnStopFunc mocks the OnStop method. OnStopFunc func() // QuitFunc mocks the Quit method. QuitFunc func() <-chan struct{} // ResetFunc mocks the Reset method. ResetFunc func() error // SetLoggerFunc mocks the SetLogger method. SetLoggerFunc func(logger log.Logger) // StartFunc mocks the Start method. StartFunc func() error // StatusFunc mocks the Status method. StatusFunc func(contextMoqParam context.Context) (*coretypes.ResultStatus, error) // StopFunc mocks the Stop method. StopFunc func() error // StringFunc mocks the String method. StringFunc func() string // SubscribeFunc mocks the Subscribe method. SubscribeFunc func(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error) // TxFunc mocks the Tx method. TxFunc func(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error) // TxSearchFunc mocks the TxSearch method. TxSearchFunc func(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error) // UnconfirmedTxsFunc mocks the UnconfirmedTxs method. UnconfirmedTxsFunc func(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error) // UnsubscribeFunc mocks the Unsubscribe method. UnsubscribeFunc func(ctx context.Context, subscriber string, query string) error // UnsubscribeAllFunc mocks the UnsubscribeAll method. UnsubscribeAllFunc func(ctx context.Context, subscriber string) error // ValidatorsFunc mocks the Validators method. ValidatorsFunc func(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error) // contains filtered or unexported fields }
ClientMock is a mock implementation of Client.
func TestSomethingThatUsesClient(t *testing.T) { // make and configure a mocked Client mockedClient := &ClientMock{ ABCIInfoFunc: func(contextMoqParam context.Context) (*coretypes.ResultABCIInfo, error) { panic("mock out the ABCIInfo method") }, ABCIQueryFunc: func(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error) { panic("mock out the ABCIQuery method") }, ABCIQueryWithOptionsFunc: func(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*coretypes.ResultABCIQuery, error) { panic("mock out the ABCIQueryWithOptions method") }, BlockFunc: func(ctx context.Context, height *int64) (*coretypes.ResultBlock, error) { panic("mock out the Block method") }, BlockByHashFunc: func(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error) { panic("mock out the BlockByHash method") }, BlockResultsFunc: func(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error) { panic("mock out the BlockResults method") }, BlockSearchFunc: func(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error) { panic("mock out the BlockSearch method") }, BlockchainInfoFunc: func(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error) { panic("mock out the BlockchainInfo method") }, BroadcastEvidenceFunc: func(contextMoqParam context.Context, evidence types.Evidence) (*coretypes.ResultBroadcastEvidence, error) { panic("mock out the BroadcastEvidence method") }, BroadcastTxAsyncFunc: func(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultBroadcastTx, error) { panic("mock out the BroadcastTxAsync method") }, BroadcastTxCommitFunc: func(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultBroadcastTxCommit, error) { panic("mock out the BroadcastTxCommit method") }, BroadcastTxSyncFunc: func(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultBroadcastTx, error) { panic("mock out the BroadcastTxSync method") }, CheckTxFunc: func(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultCheckTx, error) { panic("mock out the CheckTx method") }, CommitFunc: func(ctx context.Context, height *int64) (*coretypes.ResultCommit, error) { panic("mock out the Commit method") }, ConsensusParamsFunc: func(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error) { panic("mock out the ConsensusParams method") }, ConsensusStateFunc: func(contextMoqParam context.Context) (*coretypes.ResultConsensusState, error) { panic("mock out the ConsensusState method") }, DumpConsensusStateFunc: func(contextMoqParam context.Context) (*coretypes.ResultDumpConsensusState, error) { panic("mock out the DumpConsensusState method") }, GenesisFunc: func(contextMoqParam context.Context) (*coretypes.ResultGenesis, error) { panic("mock out the Genesis method") }, GenesisChunkedFunc: func(contextMoqParam context.Context, v uint) (*coretypes.ResultGenesisChunk, error) { panic("mock out the GenesisChunked method") }, HealthFunc: func(contextMoqParam context.Context) (*coretypes.ResultHealth, error) { panic("mock out the Health method") }, IsRunningFunc: func() bool { panic("mock out the IsRunning method") }, NetInfoFunc: func(contextMoqParam context.Context) (*coretypes.ResultNetInfo, error) { panic("mock out the NetInfo method") }, NumUnconfirmedTxsFunc: func(contextMoqParam context.Context) (*coretypes.ResultUnconfirmedTxs, error) { panic("mock out the NumUnconfirmedTxs method") }, OnResetFunc: func() error { panic("mock out the OnReset method") }, OnStartFunc: func() error { panic("mock out the OnStart method") }, OnStopFunc: func() { panic("mock out the OnStop method") }, QuitFunc: func() <-chan struct{} { panic("mock out the Quit method") }, ResetFunc: func() error { panic("mock out the Reset method") }, SetLoggerFunc: func(logger log.Logger) { panic("mock out the SetLogger method") }, StartFunc: func() error { panic("mock out the Start method") }, StatusFunc: func(contextMoqParam context.Context) (*coretypes.ResultStatus, error) { panic("mock out the Status method") }, StopFunc: func() error { panic("mock out the Stop method") }, StringFunc: func() string { panic("mock out the String method") }, SubscribeFunc: func(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error) { panic("mock out the Subscribe method") }, TxFunc: func(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error) { panic("mock out the Tx method") }, TxSearchFunc: func(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error) { panic("mock out the TxSearch method") }, UnconfirmedTxsFunc: func(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error) { panic("mock out the UnconfirmedTxs method") }, UnsubscribeFunc: func(ctx context.Context, subscriber string, query string) error { panic("mock out the Unsubscribe method") }, UnsubscribeAllFunc: func(ctx context.Context, subscriber string) error { panic("mock out the UnsubscribeAll method") }, ValidatorsFunc: func(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error) { panic("mock out the Validators method") }, } // use mockedClient in code that requires Client // and then make assertions. }
func (*ClientMock) ABCIInfo ¶
func (mock *ClientMock) ABCIInfo(contextMoqParam context.Context) (*coretypes.ResultABCIInfo, error)
ABCIInfo calls ABCIInfoFunc.
func (*ClientMock) ABCIInfoCalls ¶
func (mock *ClientMock) ABCIInfoCalls() []struct { ContextMoqParam context.Context }
ABCIInfoCalls gets all the calls that were made to ABCIInfo. Check the length with:
len(mockedClient.ABCIInfoCalls())
func (*ClientMock) ABCIQuery ¶
func (mock *ClientMock) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)
ABCIQuery calls ABCIQueryFunc.
func (*ClientMock) ABCIQueryCalls ¶
func (mock *ClientMock) ABCIQueryCalls() []struct { Ctx context.Context Path string Data bytes.HexBytes }
ABCIQueryCalls gets all the calls that were made to ABCIQuery. Check the length with:
len(mockedClient.ABCIQueryCalls())
func (*ClientMock) ABCIQueryWithOptions ¶
func (mock *ClientMock) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*coretypes.ResultABCIQuery, error)
ABCIQueryWithOptions calls ABCIQueryWithOptionsFunc.
func (*ClientMock) ABCIQueryWithOptionsCalls ¶
func (mock *ClientMock) ABCIQueryWithOptionsCalls() []struct { Ctx context.Context Path string Data bytes.HexBytes Opts client.ABCIQueryOptions }
ABCIQueryWithOptionsCalls gets all the calls that were made to ABCIQueryWithOptions. Check the length with:
len(mockedClient.ABCIQueryWithOptionsCalls())
func (*ClientMock) Block ¶
func (mock *ClientMock) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)
Block calls BlockFunc.
func (*ClientMock) BlockByHash ¶
func (mock *ClientMock) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error)
BlockByHash calls BlockByHashFunc.
func (*ClientMock) BlockByHashCalls ¶
func (mock *ClientMock) BlockByHashCalls() []struct { Ctx context.Context Hash []byte }
BlockByHashCalls gets all the calls that were made to BlockByHash. Check the length with:
len(mockedClient.BlockByHashCalls())
func (*ClientMock) BlockCalls ¶
func (mock *ClientMock) BlockCalls() []struct { Ctx context.Context Height *int64 }
BlockCalls gets all the calls that were made to Block. Check the length with:
len(mockedClient.BlockCalls())
func (*ClientMock) BlockResults ¶
func (mock *ClientMock) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)
BlockResults calls BlockResultsFunc.
func (*ClientMock) BlockResultsCalls ¶
func (mock *ClientMock) BlockResultsCalls() []struct { Ctx context.Context Height *int64 }
BlockResultsCalls gets all the calls that were made to BlockResults. Check the length with:
len(mockedClient.BlockResultsCalls())
func (*ClientMock) BlockSearch ¶
func (mock *ClientMock) BlockSearch(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)
BlockSearch calls BlockSearchFunc.
func (*ClientMock) BlockSearchCalls ¶
func (mock *ClientMock) BlockSearchCalls() []struct { Ctx context.Context Query string Page *int PerPage *int OrderBy string }
BlockSearchCalls gets all the calls that were made to BlockSearch. Check the length with:
len(mockedClient.BlockSearchCalls())
func (*ClientMock) BlockchainInfo ¶
func (mock *ClientMock) BlockchainInfo(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)
BlockchainInfo calls BlockchainInfoFunc.
func (*ClientMock) BlockchainInfoCalls ¶
func (mock *ClientMock) BlockchainInfoCalls() []struct { Ctx context.Context MinHeight int64 MaxHeight int64 }
BlockchainInfoCalls gets all the calls that were made to BlockchainInfo. Check the length with:
len(mockedClient.BlockchainInfoCalls())
func (*ClientMock) BroadcastEvidence ¶
func (mock *ClientMock) BroadcastEvidence(contextMoqParam context.Context, evidence types.Evidence) (*coretypes.ResultBroadcastEvidence, error)
BroadcastEvidence calls BroadcastEvidenceFunc.
func (*ClientMock) BroadcastEvidenceCalls ¶
func (mock *ClientMock) BroadcastEvidenceCalls() []struct { ContextMoqParam context.Context Evidence types.Evidence }
BroadcastEvidenceCalls gets all the calls that were made to BroadcastEvidence. Check the length with:
len(mockedClient.BroadcastEvidenceCalls())
func (*ClientMock) BroadcastTxAsync ¶
func (mock *ClientMock) BroadcastTxAsync(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultBroadcastTx, error)
BroadcastTxAsync calls BroadcastTxAsyncFunc.
func (*ClientMock) BroadcastTxAsyncCalls ¶
func (mock *ClientMock) BroadcastTxAsyncCalls() []struct { ContextMoqParam context.Context Tx types.Tx }
BroadcastTxAsyncCalls gets all the calls that were made to BroadcastTxAsync. Check the length with:
len(mockedClient.BroadcastTxAsyncCalls())
func (*ClientMock) BroadcastTxCommit ¶
func (mock *ClientMock) BroadcastTxCommit(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultBroadcastTxCommit, error)
BroadcastTxCommit calls BroadcastTxCommitFunc.
func (*ClientMock) BroadcastTxCommitCalls ¶
func (mock *ClientMock) BroadcastTxCommitCalls() []struct { ContextMoqParam context.Context Tx types.Tx }
BroadcastTxCommitCalls gets all the calls that were made to BroadcastTxCommit. Check the length with:
len(mockedClient.BroadcastTxCommitCalls())
func (*ClientMock) BroadcastTxSync ¶
func (mock *ClientMock) BroadcastTxSync(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultBroadcastTx, error)
BroadcastTxSync calls BroadcastTxSyncFunc.
func (*ClientMock) BroadcastTxSyncCalls ¶
func (mock *ClientMock) BroadcastTxSyncCalls() []struct { ContextMoqParam context.Context Tx types.Tx }
BroadcastTxSyncCalls gets all the calls that were made to BroadcastTxSync. Check the length with:
len(mockedClient.BroadcastTxSyncCalls())
func (*ClientMock) CheckTx ¶
func (mock *ClientMock) CheckTx(contextMoqParam context.Context, tx types.Tx) (*coretypes.ResultCheckTx, error)
CheckTx calls CheckTxFunc.
func (*ClientMock) CheckTxCalls ¶
func (mock *ClientMock) CheckTxCalls() []struct { ContextMoqParam context.Context Tx types.Tx }
CheckTxCalls gets all the calls that were made to CheckTx. Check the length with:
len(mockedClient.CheckTxCalls())
func (*ClientMock) Commit ¶
func (mock *ClientMock) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)
Commit calls CommitFunc.
func (*ClientMock) CommitCalls ¶
func (mock *ClientMock) CommitCalls() []struct { Ctx context.Context Height *int64 }
CommitCalls gets all the calls that were made to Commit. Check the length with:
len(mockedClient.CommitCalls())
func (*ClientMock) ConsensusParams ¶
func (mock *ClientMock) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error)
ConsensusParams calls ConsensusParamsFunc.
func (*ClientMock) ConsensusParamsCalls ¶
func (mock *ClientMock) ConsensusParamsCalls() []struct { Ctx context.Context Height *int64 }
ConsensusParamsCalls gets all the calls that were made to ConsensusParams. Check the length with:
len(mockedClient.ConsensusParamsCalls())
func (*ClientMock) ConsensusState ¶
func (mock *ClientMock) ConsensusState(contextMoqParam context.Context) (*coretypes.ResultConsensusState, error)
ConsensusState calls ConsensusStateFunc.
func (*ClientMock) ConsensusStateCalls ¶
func (mock *ClientMock) ConsensusStateCalls() []struct { ContextMoqParam context.Context }
ConsensusStateCalls gets all the calls that were made to ConsensusState. Check the length with:
len(mockedClient.ConsensusStateCalls())
func (*ClientMock) DumpConsensusState ¶
func (mock *ClientMock) DumpConsensusState(contextMoqParam context.Context) (*coretypes.ResultDumpConsensusState, error)
DumpConsensusState calls DumpConsensusStateFunc.
func (*ClientMock) DumpConsensusStateCalls ¶
func (mock *ClientMock) DumpConsensusStateCalls() []struct { ContextMoqParam context.Context }
DumpConsensusStateCalls gets all the calls that were made to DumpConsensusState. Check the length with:
len(mockedClient.DumpConsensusStateCalls())
func (*ClientMock) Genesis ¶
func (mock *ClientMock) Genesis(contextMoqParam context.Context) (*coretypes.ResultGenesis, error)
Genesis calls GenesisFunc.
func (*ClientMock) GenesisCalls ¶
func (mock *ClientMock) GenesisCalls() []struct { ContextMoqParam context.Context }
GenesisCalls gets all the calls that were made to Genesis. Check the length with:
len(mockedClient.GenesisCalls())
func (*ClientMock) GenesisChunked ¶
func (mock *ClientMock) GenesisChunked(contextMoqParam context.Context, v uint) (*coretypes.ResultGenesisChunk, error)
GenesisChunked calls GenesisChunkedFunc.
func (*ClientMock) GenesisChunkedCalls ¶
func (mock *ClientMock) GenesisChunkedCalls() []struct { ContextMoqParam context.Context V uint }
GenesisChunkedCalls gets all the calls that were made to GenesisChunked. Check the length with:
len(mockedClient.GenesisChunkedCalls())
func (*ClientMock) Health ¶
func (mock *ClientMock) Health(contextMoqParam context.Context) (*coretypes.ResultHealth, error)
Health calls HealthFunc.
func (*ClientMock) HealthCalls ¶
func (mock *ClientMock) HealthCalls() []struct { ContextMoqParam context.Context }
HealthCalls gets all the calls that were made to Health. Check the length with:
len(mockedClient.HealthCalls())
func (*ClientMock) IsRunning ¶
func (mock *ClientMock) IsRunning() bool
IsRunning calls IsRunningFunc.
func (*ClientMock) IsRunningCalls ¶
func (mock *ClientMock) IsRunningCalls() []struct { }
IsRunningCalls gets all the calls that were made to IsRunning. Check the length with:
len(mockedClient.IsRunningCalls())
func (*ClientMock) NetInfo ¶
func (mock *ClientMock) NetInfo(contextMoqParam context.Context) (*coretypes.ResultNetInfo, error)
NetInfo calls NetInfoFunc.
func (*ClientMock) NetInfoCalls ¶
func (mock *ClientMock) NetInfoCalls() []struct { ContextMoqParam context.Context }
NetInfoCalls gets all the calls that were made to NetInfo. Check the length with:
len(mockedClient.NetInfoCalls())
func (*ClientMock) NumUnconfirmedTxs ¶
func (mock *ClientMock) NumUnconfirmedTxs(contextMoqParam context.Context) (*coretypes.ResultUnconfirmedTxs, error)
NumUnconfirmedTxs calls NumUnconfirmedTxsFunc.
func (*ClientMock) NumUnconfirmedTxsCalls ¶
func (mock *ClientMock) NumUnconfirmedTxsCalls() []struct { ContextMoqParam context.Context }
NumUnconfirmedTxsCalls gets all the calls that were made to NumUnconfirmedTxs. Check the length with:
len(mockedClient.NumUnconfirmedTxsCalls())
func (*ClientMock) OnResetCalls ¶
func (mock *ClientMock) OnResetCalls() []struct { }
OnResetCalls gets all the calls that were made to OnReset. Check the length with:
len(mockedClient.OnResetCalls())
func (*ClientMock) OnStartCalls ¶
func (mock *ClientMock) OnStartCalls() []struct { }
OnStartCalls gets all the calls that were made to OnStart. Check the length with:
len(mockedClient.OnStartCalls())
func (*ClientMock) OnStopCalls ¶
func (mock *ClientMock) OnStopCalls() []struct { }
OnStopCalls gets all the calls that were made to OnStop. Check the length with:
len(mockedClient.OnStopCalls())
func (*ClientMock) QuitCalls ¶
func (mock *ClientMock) QuitCalls() []struct { }
QuitCalls gets all the calls that were made to Quit. Check the length with:
len(mockedClient.QuitCalls())
func (*ClientMock) ResetCalls ¶
func (mock *ClientMock) ResetCalls() []struct { }
ResetCalls gets all the calls that were made to Reset. Check the length with:
len(mockedClient.ResetCalls())
func (*ClientMock) SetLogger ¶
func (mock *ClientMock) SetLogger(logger log.Logger)
SetLogger calls SetLoggerFunc.
func (*ClientMock) SetLoggerCalls ¶
func (mock *ClientMock) SetLoggerCalls() []struct { Logger log.Logger }
SetLoggerCalls gets all the calls that were made to SetLogger. Check the length with:
len(mockedClient.SetLoggerCalls())
func (*ClientMock) StartCalls ¶
func (mock *ClientMock) StartCalls() []struct { }
StartCalls gets all the calls that were made to Start. Check the length with:
len(mockedClient.StartCalls())
func (*ClientMock) Status ¶
func (mock *ClientMock) Status(contextMoqParam context.Context) (*coretypes.ResultStatus, error)
Status calls StatusFunc.
func (*ClientMock) StatusCalls ¶
func (mock *ClientMock) StatusCalls() []struct { ContextMoqParam context.Context }
StatusCalls gets all the calls that were made to Status. Check the length with:
len(mockedClient.StatusCalls())
func (*ClientMock) StopCalls ¶
func (mock *ClientMock) StopCalls() []struct { }
StopCalls gets all the calls that were made to Stop. Check the length with:
len(mockedClient.StopCalls())
func (*ClientMock) StringCalls ¶
func (mock *ClientMock) StringCalls() []struct { }
StringCalls gets all the calls that were made to String. Check the length with:
len(mockedClient.StringCalls())
func (*ClientMock) Subscribe ¶
func (mock *ClientMock) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error)
Subscribe calls SubscribeFunc.
func (*ClientMock) SubscribeCalls ¶
func (mock *ClientMock) SubscribeCalls() []struct { Ctx context.Context Subscriber string Query string OutCapacity []int }
SubscribeCalls gets all the calls that were made to Subscribe. Check the length with:
len(mockedClient.SubscribeCalls())
func (*ClientMock) Tx ¶
func (mock *ClientMock) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error)
Tx calls TxFunc.
func (*ClientMock) TxCalls ¶
func (mock *ClientMock) TxCalls() []struct { Ctx context.Context Hash []byte Prove bool }
TxCalls gets all the calls that were made to Tx. Check the length with:
len(mockedClient.TxCalls())
func (*ClientMock) TxSearch ¶
func (mock *ClientMock) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error)
TxSearch calls TxSearchFunc.
func (*ClientMock) TxSearchCalls ¶
func (mock *ClientMock) TxSearchCalls() []struct { Ctx context.Context Query string Prove bool Page *int PerPage *int OrderBy string }
TxSearchCalls gets all the calls that were made to TxSearch. Check the length with:
len(mockedClient.TxSearchCalls())
func (*ClientMock) UnconfirmedTxs ¶
func (mock *ClientMock) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error)
UnconfirmedTxs calls UnconfirmedTxsFunc.
func (*ClientMock) UnconfirmedTxsCalls ¶
func (mock *ClientMock) UnconfirmedTxsCalls() []struct { Ctx context.Context Limit *int }
UnconfirmedTxsCalls gets all the calls that were made to UnconfirmedTxs. Check the length with:
len(mockedClient.UnconfirmedTxsCalls())
func (*ClientMock) Unsubscribe ¶
Unsubscribe calls UnsubscribeFunc.
func (*ClientMock) UnsubscribeAll ¶
func (mock *ClientMock) UnsubscribeAll(ctx context.Context, subscriber string) error
UnsubscribeAll calls UnsubscribeAllFunc.
func (*ClientMock) UnsubscribeAllCalls ¶
func (mock *ClientMock) UnsubscribeAllCalls() []struct { Ctx context.Context Subscriber string }
UnsubscribeAllCalls gets all the calls that were made to UnsubscribeAll. Check the length with:
len(mockedClient.UnsubscribeAllCalls())
func (*ClientMock) UnsubscribeCalls ¶
func (mock *ClientMock) UnsubscribeCalls() []struct { Ctx context.Context Subscriber string Query string }
UnsubscribeCalls gets all the calls that were made to Unsubscribe. Check the length with:
len(mockedClient.UnsubscribeCalls())
func (*ClientMock) Validators ¶
func (mock *ClientMock) Validators(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error)
Validators calls ValidatorsFunc.
func (*ClientMock) ValidatorsCalls ¶
func (mock *ClientMock) ValidatorsCalls() []struct { Ctx context.Context Height *int64 Page *int PerPage *int }
ValidatorsCalls gets all the calls that were made to Validators. Check the length with:
len(mockedClient.ValidatorsCalls())