Documentation ¶
Overview ¶
Package testutil is a generated GoMock package.
Index ¶
- type MockCometRPC
- func (m *MockCometRPC) ABCIInfo(ctx context.Context) (*coretypes.ResultABCIInfo, error)
- func (m *MockCometRPC) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)
- func (m *MockCometRPC) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, ...) (*coretypes.ResultABCIQuery, error)
- func (m *MockCometRPC) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)
- func (m *MockCometRPC) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error)
- func (m *MockCometRPC) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)
- func (m *MockCometRPC) BlockSearch(ctx context.Context, query string, page, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)
- func (m *MockCometRPC) BlockchainInfo(ctx context.Context, minHeight, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)
- func (m *MockCometRPC) BroadcastTxAsync(ctx context.Context, tx types.Tx) (*coretypes.ResultBroadcastTx, error)
- func (m *MockCometRPC) BroadcastTxCommit(ctx context.Context, tx types.Tx) (*coretypes.ResultBroadcastTxCommit, error)
- func (m *MockCometRPC) BroadcastTxSync(ctx context.Context, tx types.Tx) (*coretypes.ResultBroadcastTx, error)
- func (m *MockCometRPC) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)
- func (m *MockCometRPC) EXPECT() *MockCometRPCMockRecorder
- func (m *MockCometRPC) Status(arg0 context.Context) (*coretypes.ResultStatus, error)
- func (m *MockCometRPC) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error)
- func (m *MockCometRPC) TxSearch(ctx context.Context, query string, prove bool, page, perPage *int, ...) (*coretypes.ResultTxSearch, error)
- func (m *MockCometRPC) Validators(ctx context.Context, height *int64, page, perPage *int) (*coretypes.ResultValidators, error)
- type MockCometRPCMockRecorder
- func (mr *MockCometRPCMockRecorder) ABCIInfo(ctx any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) ABCIQuery(ctx, path, data any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) ABCIQueryWithOptions(ctx, path, data, opts any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) Block(ctx, height any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) BlockByHash(ctx, hash any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) BlockResults(ctx, height any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) BlockSearch(ctx, query, page, perPage, orderBy any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) BlockchainInfo(ctx, minHeight, maxHeight any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) BroadcastTxAsync(ctx, tx any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) BroadcastTxCommit(ctx, tx any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) BroadcastTxSync(ctx, tx any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) Commit(ctx, height any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) Status(arg0 any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) Tx(ctx, hash, prove any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) TxSearch(ctx, query, prove, page, perPage, orderBy any) *gomock.Call
- func (mr *MockCometRPCMockRecorder) Validators(ctx, height, page, perPage any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCometRPC ¶
type MockCometRPC struct {
// contains filtered or unexported fields
}
MockCometRPC is a mock of CometRPC interface.
func NewMockCometRPC ¶
func NewMockCometRPC(ctrl *gomock.Controller) *MockCometRPC
NewMockCometRPC creates a new mock instance.
func (*MockCometRPC) ABCIInfo ¶
func (m *MockCometRPC) ABCIInfo(ctx context.Context) (*coretypes.ResultABCIInfo, error)
ABCIInfo mocks base method.
func (*MockCometRPC) ABCIQuery ¶
func (m *MockCometRPC) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)
ABCIQuery mocks base method.
func (*MockCometRPC) ABCIQueryWithOptions ¶
func (m *MockCometRPC) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*coretypes.ResultABCIQuery, error)
ABCIQueryWithOptions mocks base method.
func (*MockCometRPC) Block ¶
func (m *MockCometRPC) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)
Block mocks base method.
func (*MockCometRPC) BlockByHash ¶
func (m *MockCometRPC) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error)
BlockByHash mocks base method.
func (*MockCometRPC) BlockResults ¶
func (m *MockCometRPC) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)
BlockResults mocks base method.
func (*MockCometRPC) BlockSearch ¶
func (m *MockCometRPC) BlockSearch(ctx context.Context, query string, page, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)
BlockSearch mocks base method.
func (*MockCometRPC) BlockchainInfo ¶
func (m *MockCometRPC) BlockchainInfo(ctx context.Context, minHeight, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)
BlockchainInfo mocks base method.
func (*MockCometRPC) BroadcastTxAsync ¶
func (m *MockCometRPC) BroadcastTxAsync(ctx context.Context, tx types.Tx) (*coretypes.ResultBroadcastTx, error)
BroadcastTxAsync mocks base method.
func (*MockCometRPC) BroadcastTxCommit ¶
func (m *MockCometRPC) BroadcastTxCommit(ctx context.Context, tx types.Tx) (*coretypes.ResultBroadcastTxCommit, error)
BroadcastTxCommit mocks base method.
func (*MockCometRPC) BroadcastTxSync ¶
func (m *MockCometRPC) BroadcastTxSync(ctx context.Context, tx types.Tx) (*coretypes.ResultBroadcastTx, error)
BroadcastTxSync mocks base method.
func (*MockCometRPC) Commit ¶
func (m *MockCometRPC) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)
Commit mocks base method.
func (*MockCometRPC) EXPECT ¶
func (m *MockCometRPC) EXPECT() *MockCometRPCMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCometRPC) Status ¶
func (m *MockCometRPC) Status(arg0 context.Context) (*coretypes.ResultStatus, error)
Status mocks base method.
func (*MockCometRPC) Tx ¶
func (m *MockCometRPC) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error)
Tx mocks base method.
func (*MockCometRPC) TxSearch ¶
func (m *MockCometRPC) TxSearch(ctx context.Context, query string, prove bool, page, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error)
TxSearch mocks base method.
func (*MockCometRPC) Validators ¶
func (m *MockCometRPC) Validators(ctx context.Context, height *int64, page, perPage *int) (*coretypes.ResultValidators, error)
Validators mocks base method.
type MockCometRPCMockRecorder ¶
type MockCometRPCMockRecorder struct {
// contains filtered or unexported fields
}
MockCometRPCMockRecorder is the mock recorder for MockCometRPC.
func (*MockCometRPCMockRecorder) ABCIInfo ¶
func (mr *MockCometRPCMockRecorder) ABCIInfo(ctx any) *gomock.Call
ABCIInfo indicates an expected call of ABCIInfo.
func (*MockCometRPCMockRecorder) ABCIQuery ¶
func (mr *MockCometRPCMockRecorder) ABCIQuery(ctx, path, data any) *gomock.Call
ABCIQuery indicates an expected call of ABCIQuery.
func (*MockCometRPCMockRecorder) ABCIQueryWithOptions ¶
func (mr *MockCometRPCMockRecorder) ABCIQueryWithOptions(ctx, path, data, opts any) *gomock.Call
ABCIQueryWithOptions indicates an expected call of ABCIQueryWithOptions.
func (*MockCometRPCMockRecorder) Block ¶
func (mr *MockCometRPCMockRecorder) Block(ctx, height any) *gomock.Call
Block indicates an expected call of Block.
func (*MockCometRPCMockRecorder) BlockByHash ¶
func (mr *MockCometRPCMockRecorder) BlockByHash(ctx, hash any) *gomock.Call
BlockByHash indicates an expected call of BlockByHash.
func (*MockCometRPCMockRecorder) BlockResults ¶
func (mr *MockCometRPCMockRecorder) BlockResults(ctx, height any) *gomock.Call
BlockResults indicates an expected call of BlockResults.
func (*MockCometRPCMockRecorder) BlockSearch ¶
func (mr *MockCometRPCMockRecorder) BlockSearch(ctx, query, page, perPage, orderBy any) *gomock.Call
BlockSearch indicates an expected call of BlockSearch.
func (*MockCometRPCMockRecorder) BlockchainInfo ¶
func (mr *MockCometRPCMockRecorder) BlockchainInfo(ctx, minHeight, maxHeight any) *gomock.Call
BlockchainInfo indicates an expected call of BlockchainInfo.
func (*MockCometRPCMockRecorder) BroadcastTxAsync ¶
func (mr *MockCometRPCMockRecorder) BroadcastTxAsync(ctx, tx any) *gomock.Call
BroadcastTxAsync indicates an expected call of BroadcastTxAsync.
func (*MockCometRPCMockRecorder) BroadcastTxCommit ¶
func (mr *MockCometRPCMockRecorder) BroadcastTxCommit(ctx, tx any) *gomock.Call
BroadcastTxCommit indicates an expected call of BroadcastTxCommit.
func (*MockCometRPCMockRecorder) BroadcastTxSync ¶
func (mr *MockCometRPCMockRecorder) BroadcastTxSync(ctx, tx any) *gomock.Call
BroadcastTxSync indicates an expected call of BroadcastTxSync.
func (*MockCometRPCMockRecorder) Commit ¶
func (mr *MockCometRPCMockRecorder) Commit(ctx, height any) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockCometRPCMockRecorder) Status ¶
func (mr *MockCometRPCMockRecorder) Status(arg0 any) *gomock.Call
Status indicates an expected call of Status.
func (*MockCometRPCMockRecorder) Tx ¶
func (mr *MockCometRPCMockRecorder) Tx(ctx, hash, prove any) *gomock.Call
Tx indicates an expected call of Tx.
func (*MockCometRPCMockRecorder) TxSearch ¶
func (mr *MockCometRPCMockRecorder) TxSearch(ctx, query, prove, page, perPage, orderBy any) *gomock.Call
TxSearch indicates an expected call of TxSearch.
func (*MockCometRPCMockRecorder) Validators ¶
func (mr *MockCometRPCMockRecorder) Validators(ctx, height, page, perPage any) *gomock.Call
Validators indicates an expected call of Validators.