testutil

package
v2.10.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Index

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCometRPC) Status

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.

Jump to

Keyboard shortcuts

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