testutil

package
v3.0.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 11 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 MockAuthQuerier

type MockAuthQuerier struct {
	// contains filtered or unexported fields
}

MockAuthQuerier is a mock of AuthQuerier interface.

func NewMockAuthQuerier

func NewMockAuthQuerier(ctrl *gomock.Controller) *MockAuthQuerier

NewMockAuthQuerier creates a new mock instance.

func (*MockAuthQuerier) EXPECT

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

func (*MockAuthQuerier) QueryAccount

func (m *MockAuthQuerier) QueryAccount(address types0.Address) (*types1.QueryAccountResponse, error)

QueryAccount mocks base method.

type MockAuthQuerierMockRecorder

type MockAuthQuerierMockRecorder struct {
	// contains filtered or unexported fields
}

MockAuthQuerierMockRecorder is the mock recorder for MockAuthQuerier.

func (*MockAuthQuerierMockRecorder) QueryAccount

func (mr *MockAuthQuerierMockRecorder) QueryAccount(address any) *gomock.Call

QueryAccount indicates an expected call of QueryAccount.

type MockBothanClient

type MockBothanClient struct {
	// contains filtered or unexported fields
}

MockBothanClient is a mock of BothanClient interface.

func NewMockBothanClient

func NewMockBothanClient(ctrl *gomock.Controller) *MockBothanClient

NewMockBothanClient creates a new mock instance.

func (*MockBothanClient) EXPECT

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

func (*MockBothanClient) GetInfo

func (m *MockBothanClient) GetInfo() (*proto.GetInfoResponse, error)

GetInfo mocks base method.

func (*MockBothanClient) GetPrices

func (m *MockBothanClient) GetPrices(signalIDs []string) (*proto.GetPricesResponse, error)

GetPrices mocks base method.

func (*MockBothanClient) PushMonitoringRecords

func (m *MockBothanClient) PushMonitoringRecords(uuid, txHash string) error

PushMonitoringRecords mocks base method.

func (*MockBothanClient) UpdateRegistry

func (m *MockBothanClient) UpdateRegistry(ipfsHash, version string) error

UpdateRegistry mocks base method.

type MockBothanClientMockRecorder

type MockBothanClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockBothanClientMockRecorder is the mock recorder for MockBothanClient.

func (*MockBothanClientMockRecorder) GetInfo

func (mr *MockBothanClientMockRecorder) GetInfo() *gomock.Call

GetInfo indicates an expected call of GetInfo.

func (*MockBothanClientMockRecorder) GetPrices

func (mr *MockBothanClientMockRecorder) GetPrices(signalIDs any) *gomock.Call

GetPrices indicates an expected call of GetPrices.

func (*MockBothanClientMockRecorder) PushMonitoringRecords

func (mr *MockBothanClientMockRecorder) PushMonitoringRecords(uuid, txHash any) *gomock.Call

PushMonitoringRecords indicates an expected call of PushMonitoringRecords.

func (*MockBothanClientMockRecorder) UpdateRegistry

func (mr *MockBothanClientMockRecorder) UpdateRegistry(ipfsHash, version any) *gomock.Call

UpdateRegistry indicates an expected call of UpdateRegistry.

type MockRemoteClient

type MockRemoteClient struct {
	// contains filtered or unexported fields
}

MockRemoteClient is a mock of RemoteClient interface.

func NewMockRemoteClient

func NewMockRemoteClient(ctrl *gomock.Controller) *MockRemoteClient

NewMockRemoteClient creates a new mock instance.

func (*MockRemoteClient) ABCIInfo

ABCIInfo mocks base method.

func (*MockRemoteClient) ABCIQuery

ABCIQuery mocks base method.

func (*MockRemoteClient) ABCIQueryWithOptions

func (m *MockRemoteClient) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*coretypes.ResultABCIQuery, error)

ABCIQueryWithOptions mocks base method.

func (*MockRemoteClient) Block

func (m *MockRemoteClient) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)

Block mocks base method.

func (*MockRemoteClient) BlockByHash

func (m *MockRemoteClient) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error)

BlockByHash mocks base method.

func (*MockRemoteClient) BlockResults

func (m *MockRemoteClient) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)

BlockResults mocks base method.

func (*MockRemoteClient) BlockSearch

func (m *MockRemoteClient) BlockSearch(ctx context.Context, query string, page, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)

BlockSearch mocks base method.

func (*MockRemoteClient) BlockchainInfo

func (m *MockRemoteClient) BlockchainInfo(ctx context.Context, minHeight, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)

BlockchainInfo mocks base method.

func (*MockRemoteClient) BroadcastEvidence

BroadcastEvidence mocks base method.

func (*MockRemoteClient) BroadcastTxAsync

func (m *MockRemoteClient) BroadcastTxAsync(arg0 context.Context, arg1 types.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTxAsync mocks base method.

func (*MockRemoteClient) BroadcastTxCommit

func (m *MockRemoteClient) BroadcastTxCommit(arg0 context.Context, arg1 types.Tx) (*coretypes.ResultBroadcastTxCommit, error)

BroadcastTxCommit mocks base method.

func (*MockRemoteClient) BroadcastTxSync

func (m *MockRemoteClient) BroadcastTxSync(arg0 context.Context, arg1 types.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTxSync mocks base method.

func (*MockRemoteClient) CheckTx

func (m *MockRemoteClient) CheckTx(arg0 context.Context, arg1 types.Tx) (*coretypes.ResultCheckTx, error)

CheckTx mocks base method.

func (*MockRemoteClient) Commit

func (m *MockRemoteClient) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)

Commit mocks base method.

func (*MockRemoteClient) ConsensusParams

func (m *MockRemoteClient) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error)

ConsensusParams mocks base method.

func (*MockRemoteClient) ConsensusState

ConsensusState mocks base method.

func (*MockRemoteClient) DumpConsensusState

func (m *MockRemoteClient) DumpConsensusState(arg0 context.Context) (*coretypes.ResultDumpConsensusState, error)

DumpConsensusState mocks base method.

func (*MockRemoteClient) EXPECT

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

func (*MockRemoteClient) Genesis

Genesis mocks base method.

func (*MockRemoteClient) GenesisChunked

func (m *MockRemoteClient) GenesisChunked(arg0 context.Context, arg1 uint) (*coretypes.ResultGenesisChunk, error)

GenesisChunked mocks base method.

func (*MockRemoteClient) Header

func (m *MockRemoteClient) Header(ctx context.Context, height *int64) (*coretypes.ResultHeader, error)

Header mocks base method.

func (*MockRemoteClient) HeaderByHash

func (m *MockRemoteClient) HeaderByHash(ctx context.Context, hash bytes.HexBytes) (*coretypes.ResultHeader, error)

HeaderByHash mocks base method.

func (*MockRemoteClient) Health

Health mocks base method.

func (*MockRemoteClient) IsRunning

func (m *MockRemoteClient) IsRunning() bool

IsRunning mocks base method.

func (*MockRemoteClient) NetInfo

NetInfo mocks base method.

func (*MockRemoteClient) NumUnconfirmedTxs

func (m *MockRemoteClient) NumUnconfirmedTxs(arg0 context.Context) (*coretypes.ResultUnconfirmedTxs, error)

NumUnconfirmedTxs mocks base method.

func (*MockRemoteClient) OnReset

func (m *MockRemoteClient) OnReset() error

OnReset mocks base method.

func (*MockRemoteClient) OnStart

func (m *MockRemoteClient) OnStart() error

OnStart mocks base method.

func (*MockRemoteClient) OnStop

func (m *MockRemoteClient) OnStop()

OnStop mocks base method.

func (*MockRemoteClient) Quit

func (m *MockRemoteClient) Quit() <-chan struct{}

Quit mocks base method.

func (*MockRemoteClient) Remote

func (m *MockRemoteClient) Remote() string

Remote mocks base method.

func (*MockRemoteClient) Reset

func (m *MockRemoteClient) Reset() error

Reset mocks base method.

func (*MockRemoteClient) SetLogger

func (m *MockRemoteClient) SetLogger(arg0 log.Logger)

SetLogger mocks base method.

func (*MockRemoteClient) Start

func (m *MockRemoteClient) Start() error

Start mocks base method.

func (*MockRemoteClient) Status

Status mocks base method.

func (*MockRemoteClient) Stop

func (m *MockRemoteClient) Stop() error

Stop mocks base method.

func (*MockRemoteClient) String

func (m *MockRemoteClient) String() string

String mocks base method.

func (*MockRemoteClient) Subscribe

func (m *MockRemoteClient) Subscribe(ctx context.Context, subscriber, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error)

Subscribe mocks base method.

func (*MockRemoteClient) Tx

func (m *MockRemoteClient) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error)

Tx mocks base method.

func (*MockRemoteClient) TxSearch

func (m *MockRemoteClient) TxSearch(ctx context.Context, query string, prove bool, page, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error)

TxSearch mocks base method.

func (*MockRemoteClient) UnconfirmedTxs

func (m *MockRemoteClient) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error)

UnconfirmedTxs mocks base method.

func (*MockRemoteClient) Unsubscribe

func (m *MockRemoteClient) Unsubscribe(ctx context.Context, subscriber, query string) error

Unsubscribe mocks base method.

func (*MockRemoteClient) UnsubscribeAll

func (m *MockRemoteClient) UnsubscribeAll(ctx context.Context, subscriber string) error

UnsubscribeAll mocks base method.

func (*MockRemoteClient) Validators

func (m *MockRemoteClient) Validators(ctx context.Context, height *int64, page, perPage *int) (*coretypes.ResultValidators, error)

Validators mocks base method.

type MockRemoteClientMockRecorder

type MockRemoteClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockRemoteClientMockRecorder is the mock recorder for MockRemoteClient.

func (*MockRemoteClientMockRecorder) ABCIInfo

func (mr *MockRemoteClientMockRecorder) ABCIInfo(arg0 any) *gomock.Call

ABCIInfo indicates an expected call of ABCIInfo.

func (*MockRemoteClientMockRecorder) ABCIQuery

func (mr *MockRemoteClientMockRecorder) ABCIQuery(ctx, path, data any) *gomock.Call

ABCIQuery indicates an expected call of ABCIQuery.

func (*MockRemoteClientMockRecorder) ABCIQueryWithOptions

func (mr *MockRemoteClientMockRecorder) ABCIQueryWithOptions(ctx, path, data, opts any) *gomock.Call

ABCIQueryWithOptions indicates an expected call of ABCIQueryWithOptions.

func (*MockRemoteClientMockRecorder) Block

func (mr *MockRemoteClientMockRecorder) Block(ctx, height any) *gomock.Call

Block indicates an expected call of Block.

func (*MockRemoteClientMockRecorder) BlockByHash

func (mr *MockRemoteClientMockRecorder) BlockByHash(ctx, hash any) *gomock.Call

BlockByHash indicates an expected call of BlockByHash.

func (*MockRemoteClientMockRecorder) BlockResults

func (mr *MockRemoteClientMockRecorder) BlockResults(ctx, height any) *gomock.Call

BlockResults indicates an expected call of BlockResults.

func (*MockRemoteClientMockRecorder) BlockSearch

func (mr *MockRemoteClientMockRecorder) BlockSearch(ctx, query, page, perPage, orderBy any) *gomock.Call

BlockSearch indicates an expected call of BlockSearch.

func (*MockRemoteClientMockRecorder) BlockchainInfo

func (mr *MockRemoteClientMockRecorder) BlockchainInfo(ctx, minHeight, maxHeight any) *gomock.Call

BlockchainInfo indicates an expected call of BlockchainInfo.

func (*MockRemoteClientMockRecorder) BroadcastEvidence

func (mr *MockRemoteClientMockRecorder) BroadcastEvidence(arg0, arg1 any) *gomock.Call

BroadcastEvidence indicates an expected call of BroadcastEvidence.

func (*MockRemoteClientMockRecorder) BroadcastTxAsync

func (mr *MockRemoteClientMockRecorder) BroadcastTxAsync(arg0, arg1 any) *gomock.Call

BroadcastTxAsync indicates an expected call of BroadcastTxAsync.

func (*MockRemoteClientMockRecorder) BroadcastTxCommit

func (mr *MockRemoteClientMockRecorder) BroadcastTxCommit(arg0, arg1 any) *gomock.Call

BroadcastTxCommit indicates an expected call of BroadcastTxCommit.

func (*MockRemoteClientMockRecorder) BroadcastTxSync

func (mr *MockRemoteClientMockRecorder) BroadcastTxSync(arg0, arg1 any) *gomock.Call

BroadcastTxSync indicates an expected call of BroadcastTxSync.

func (*MockRemoteClientMockRecorder) CheckTx

func (mr *MockRemoteClientMockRecorder) CheckTx(arg0, arg1 any) *gomock.Call

CheckTx indicates an expected call of CheckTx.

func (*MockRemoteClientMockRecorder) Commit

func (mr *MockRemoteClientMockRecorder) Commit(ctx, height any) *gomock.Call

Commit indicates an expected call of Commit.

func (*MockRemoteClientMockRecorder) ConsensusParams

func (mr *MockRemoteClientMockRecorder) ConsensusParams(ctx, height any) *gomock.Call

ConsensusParams indicates an expected call of ConsensusParams.

func (*MockRemoteClientMockRecorder) ConsensusState

func (mr *MockRemoteClientMockRecorder) ConsensusState(arg0 any) *gomock.Call

ConsensusState indicates an expected call of ConsensusState.

func (*MockRemoteClientMockRecorder) DumpConsensusState

func (mr *MockRemoteClientMockRecorder) DumpConsensusState(arg0 any) *gomock.Call

DumpConsensusState indicates an expected call of DumpConsensusState.

func (*MockRemoteClientMockRecorder) Genesis

func (mr *MockRemoteClientMockRecorder) Genesis(arg0 any) *gomock.Call

Genesis indicates an expected call of Genesis.

func (*MockRemoteClientMockRecorder) GenesisChunked

func (mr *MockRemoteClientMockRecorder) GenesisChunked(arg0, arg1 any) *gomock.Call

GenesisChunked indicates an expected call of GenesisChunked.

func (*MockRemoteClientMockRecorder) Header

func (mr *MockRemoteClientMockRecorder) Header(ctx, height any) *gomock.Call

Header indicates an expected call of Header.

func (*MockRemoteClientMockRecorder) HeaderByHash

func (mr *MockRemoteClientMockRecorder) HeaderByHash(ctx, hash any) *gomock.Call

HeaderByHash indicates an expected call of HeaderByHash.

func (*MockRemoteClientMockRecorder) Health

func (mr *MockRemoteClientMockRecorder) Health(arg0 any) *gomock.Call

Health indicates an expected call of Health.

func (*MockRemoteClientMockRecorder) IsRunning

func (mr *MockRemoteClientMockRecorder) IsRunning() *gomock.Call

IsRunning indicates an expected call of IsRunning.

func (*MockRemoteClientMockRecorder) NetInfo

func (mr *MockRemoteClientMockRecorder) NetInfo(arg0 any) *gomock.Call

NetInfo indicates an expected call of NetInfo.

func (*MockRemoteClientMockRecorder) NumUnconfirmedTxs

func (mr *MockRemoteClientMockRecorder) NumUnconfirmedTxs(arg0 any) *gomock.Call

NumUnconfirmedTxs indicates an expected call of NumUnconfirmedTxs.

func (*MockRemoteClientMockRecorder) OnReset

func (mr *MockRemoteClientMockRecorder) OnReset() *gomock.Call

OnReset indicates an expected call of OnReset.

func (*MockRemoteClientMockRecorder) OnStart

func (mr *MockRemoteClientMockRecorder) OnStart() *gomock.Call

OnStart indicates an expected call of OnStart.

func (*MockRemoteClientMockRecorder) OnStop

OnStop indicates an expected call of OnStop.

func (*MockRemoteClientMockRecorder) Quit

Quit indicates an expected call of Quit.

func (*MockRemoteClientMockRecorder) Remote

Remote indicates an expected call of Remote.

func (*MockRemoteClientMockRecorder) Reset

Reset indicates an expected call of Reset.

func (*MockRemoteClientMockRecorder) SetLogger

func (mr *MockRemoteClientMockRecorder) SetLogger(arg0 any) *gomock.Call

SetLogger indicates an expected call of SetLogger.

func (*MockRemoteClientMockRecorder) Start

Start indicates an expected call of Start.

func (*MockRemoteClientMockRecorder) Status

func (mr *MockRemoteClientMockRecorder) Status(arg0 any) *gomock.Call

Status indicates an expected call of Status.

func (*MockRemoteClientMockRecorder) Stop

Stop indicates an expected call of Stop.

func (*MockRemoteClientMockRecorder) String

String indicates an expected call of String.

func (*MockRemoteClientMockRecorder) Subscribe

func (mr *MockRemoteClientMockRecorder) Subscribe(ctx, subscriber, query any, outCapacity ...any) *gomock.Call

Subscribe indicates an expected call of Subscribe.

func (*MockRemoteClientMockRecorder) Tx

func (mr *MockRemoteClientMockRecorder) Tx(ctx, hash, prove any) *gomock.Call

Tx indicates an expected call of Tx.

func (*MockRemoteClientMockRecorder) TxSearch

func (mr *MockRemoteClientMockRecorder) TxSearch(ctx, query, prove, page, perPage, orderBy any) *gomock.Call

TxSearch indicates an expected call of TxSearch.

func (*MockRemoteClientMockRecorder) UnconfirmedTxs

func (mr *MockRemoteClientMockRecorder) UnconfirmedTxs(ctx, limit any) *gomock.Call

UnconfirmedTxs indicates an expected call of UnconfirmedTxs.

func (*MockRemoteClientMockRecorder) Unsubscribe

func (mr *MockRemoteClientMockRecorder) Unsubscribe(ctx, subscriber, query any) *gomock.Call

Unsubscribe indicates an expected call of Unsubscribe.

func (*MockRemoteClientMockRecorder) UnsubscribeAll

func (mr *MockRemoteClientMockRecorder) UnsubscribeAll(ctx, subscriber any) *gomock.Call

UnsubscribeAll indicates an expected call of UnsubscribeAll.

func (*MockRemoteClientMockRecorder) Validators

func (mr *MockRemoteClientMockRecorder) Validators(ctx, height, page, perPage any) *gomock.Call

Validators indicates an expected call of Validators.

type MockTxQuerier

type MockTxQuerier struct {
	// contains filtered or unexported fields
}

MockTxQuerier is a mock of TxQuerier interface.

func NewMockTxQuerier

func NewMockTxQuerier(ctrl *gomock.Controller) *MockTxQuerier

NewMockTxQuerier creates a new mock instance.

func (*MockTxQuerier) EXPECT

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

func (*MockTxQuerier) QueryTx

func (m *MockTxQuerier) QueryTx(hash string) (*types0.TxResponse, error)

QueryTx mocks base method.

type MockTxQuerierMockRecorder

type MockTxQuerierMockRecorder struct {
	// contains filtered or unexported fields
}

MockTxQuerierMockRecorder is the mock recorder for MockTxQuerier.

func (*MockTxQuerierMockRecorder) QueryTx

func (mr *MockTxQuerierMockRecorder) QueryTx(hash any) *gomock.Call

QueryTx indicates an expected call of QueryTx.

Jump to

Keyboard shortcuts

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