mocks

package
v0.0.0-...-fd95350 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountBalanceService

type AccountBalanceService struct {
	mock.Mock
}

AccountBalanceService is an autogenerated mock type for the AccountBalanceService type

func NewAccountBalanceService

func NewAccountBalanceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AccountBalanceService

NewAccountBalanceService creates a new instance of AccountBalanceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AccountBalanceService) GetCoinsAndSequenceForSubAccount

func (_m *AccountBalanceService) GetCoinsAndSequenceForSubAccount(ctx context.Context, subAccount *types.SubAccountIdentifier) (cosmos_sdktypes.Coins, uint64, error)

GetCoinsAndSequenceForSubAccount provides a mock function with given fields: ctx, subAccount

type BalanceServiceFactory

type BalanceServiceFactory struct {
	mock.Mock
}

BalanceServiceFactory is an autogenerated mock type for the BalanceServiceFactory type

func NewBalanceServiceFactory

func NewBalanceServiceFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *BalanceServiceFactory

NewBalanceServiceFactory creates a new instance of BalanceServiceFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BalanceServiceFactory) Execute

Execute provides a mock function with given fields: ctx, addr, blockHeader

type NewAccountBalanceServiceT

type NewAccountBalanceServiceT struct {
	mock.Mock
}

NewAccountBalanceServiceT is an autogenerated mock type for the NewAccountBalanceServiceT type

func NewNewAccountBalanceServiceT

func NewNewAccountBalanceServiceT(t interface {
	mock.TestingT
	Cleanup(func())
}) *NewAccountBalanceServiceT

NewNewAccountBalanceServiceT creates a new instance of NewAccountBalanceServiceT. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*NewAccountBalanceServiceT) Cleanup

func (_m *NewAccountBalanceServiceT) Cleanup(_a0 func())

Cleanup provides a mock function with given fields: _a0

func (*NewAccountBalanceServiceT) Errorf

func (_m *NewAccountBalanceServiceT) Errorf(format string, args ...interface{})

Errorf provides a mock function with given fields: format, args

func (*NewAccountBalanceServiceT) FailNow

func (_m *NewAccountBalanceServiceT) FailNow()

FailNow provides a mock function with given fields:

func (*NewAccountBalanceServiceT) Logf

func (_m *NewAccountBalanceServiceT) Logf(format string, args ...interface{})

Logf provides a mock function with given fields: format, args

type NewBalanceServiceFactoryT

type NewBalanceServiceFactoryT struct {
	mock.Mock
}

NewBalanceServiceFactoryT is an autogenerated mock type for the NewBalanceServiceFactoryT type

func NewNewBalanceServiceFactoryT

func NewNewBalanceServiceFactoryT(t interface {
	mock.TestingT
	Cleanup(func())
}) *NewBalanceServiceFactoryT

NewNewBalanceServiceFactoryT creates a new instance of NewBalanceServiceFactoryT. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*NewBalanceServiceFactoryT) Cleanup

func (_m *NewBalanceServiceFactoryT) Cleanup(_a0 func())

Cleanup provides a mock function with given fields: _a0

func (*NewBalanceServiceFactoryT) Errorf

func (_m *NewBalanceServiceFactoryT) Errorf(format string, args ...interface{})

Errorf provides a mock function with given fields: format, args

func (*NewBalanceServiceFactoryT) FailNow

func (_m *NewBalanceServiceFactoryT) FailNow()

FailNow provides a mock function with given fields:

func (*NewBalanceServiceFactoryT) Logf

func (_m *NewBalanceServiceFactoryT) Logf(format string, args ...interface{})

Logf provides a mock function with given fields: format, args

type NewRPCClientT

type NewRPCClientT struct {
	mock.Mock
}

NewRPCClientT is an autogenerated mock type for the NewRPCClientT type

func NewNewRPCClientT

func NewNewRPCClientT(t interface {
	mock.TestingT
	Cleanup(func())
}) *NewRPCClientT

NewNewRPCClientT creates a new instance of NewRPCClientT. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*NewRPCClientT) Cleanup

func (_m *NewRPCClientT) Cleanup(_a0 func())

Cleanup provides a mock function with given fields: _a0

func (*NewRPCClientT) Errorf

func (_m *NewRPCClientT) Errorf(format string, args ...interface{})

Errorf provides a mock function with given fields: format, args

func (*NewRPCClientT) FailNow

func (_m *NewRPCClientT) FailNow()

FailNow provides a mock function with given fields:

func (*NewRPCClientT) Logf

func (_m *NewRPCClientT) Logf(format string, args ...interface{})

Logf provides a mock function with given fields: format, args

type RPCClient

type RPCClient struct {
	mock.Mock
}

RPCClient is an autogenerated mock type for the RPCClient type

func NewRPCClient

func NewRPCClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *RPCClient

NewRPCClient creates a new instance of RPCClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RPCClient) ABCIInfo

func (_m *RPCClient) ABCIInfo(_a0 context.Context) (*coretypes.ResultABCIInfo, error)

ABCIInfo provides a mock function with given fields: _a0

func (*RPCClient) ABCIQuery

func (_m *RPCClient) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)

ABCIQuery provides a mock function with given fields: ctx, path, data

func (*RPCClient) ABCIQueryWithOptions

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

ABCIQueryWithOptions provides a mock function with given fields: ctx, path, data, opts

func (*RPCClient) Account

func (_m *RPCClient) Account(ctx context.Context, addr types.AccAddress, height int64) (authtypes.AccountI, error)

Account provides a mock function with given fields: ctx, addr, height

func (*RPCClient) Balance

func (_m *RPCClient) Balance(ctx context.Context, addr types.AccAddress, height int64) (types.Coins, error)

Balance provides a mock function with given fields: ctx, addr, height

func (*RPCClient) Block

func (_m *RPCClient) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)

Block provides a mock function with given fields: ctx, height

func (*RPCClient) BlockByHash

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

BlockByHash provides a mock function with given fields: ctx, hash

func (*RPCClient) BlockResults

func (_m *RPCClient) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)

BlockResults provides a mock function with given fields: ctx, height

func (*RPCClient) BlockSearch

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

BlockSearch provides a mock function with given fields: ctx, query, page, perPage, orderBy

func (*RPCClient) BlockchainInfo

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

BlockchainInfo provides a mock function with given fields: ctx, minHeight, maxHeight

func (*RPCClient) BroadcastEvidence

BroadcastEvidence provides a mock function with given fields: _a0, _a1

func (*RPCClient) BroadcastTxAsync

func (_m *RPCClient) BroadcastTxAsync(_a0 context.Context, _a1 tenderminttypes.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTxAsync provides a mock function with given fields: _a0, _a1

func (*RPCClient) BroadcastTxCommit

func (_m *RPCClient) BroadcastTxCommit(_a0 context.Context, _a1 tenderminttypes.Tx) (*coretypes.ResultBroadcastTxCommit, error)

BroadcastTxCommit provides a mock function with given fields: _a0, _a1

func (*RPCClient) BroadcastTxSync

func (_m *RPCClient) BroadcastTxSync(_a0 context.Context, _a1 tenderminttypes.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTxSync provides a mock function with given fields: _a0, _a1

func (*RPCClient) CheckTx

CheckTx provides a mock function with given fields: _a0, _a1

func (*RPCClient) Commit

func (_m *RPCClient) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)

Commit provides a mock function with given fields: ctx, height

func (*RPCClient) ConsensusParams

func (_m *RPCClient) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error)

ConsensusParams provides a mock function with given fields: ctx, height

func (*RPCClient) ConsensusState

func (_m *RPCClient) ConsensusState(_a0 context.Context) (*coretypes.ResultConsensusState, error)

ConsensusState provides a mock function with given fields: _a0

func (*RPCClient) Delegations

func (_m *RPCClient) Delegations(ctx context.Context, addr types.AccAddress, height int64) (stakingtypes.DelegationResponses, error)

Delegations provides a mock function with given fields: ctx, addr, height

func (*RPCClient) DumpConsensusState

func (_m *RPCClient) DumpConsensusState(_a0 context.Context) (*coretypes.ResultDumpConsensusState, error)

DumpConsensusState provides a mock function with given fields: _a0

func (*RPCClient) Genesis

func (_m *RPCClient) Genesis(_a0 context.Context) (*coretypes.ResultGenesis, error)

Genesis provides a mock function with given fields: _a0

func (*RPCClient) GenesisChunked

func (_m *RPCClient) GenesisChunked(_a0 context.Context, _a1 uint) (*coretypes.ResultGenesisChunk, error)

GenesisChunked provides a mock function with given fields: _a0, _a1

func (*RPCClient) Health

func (_m *RPCClient) Health(_a0 context.Context) (*coretypes.ResultHealth, error)

Health provides a mock function with given fields: _a0

func (*RPCClient) IsRunning

func (_m *RPCClient) IsRunning() bool

IsRunning provides a mock function with given fields:

func (*RPCClient) NetInfo

func (_m *RPCClient) NetInfo(_a0 context.Context) (*coretypes.ResultNetInfo, error)

NetInfo provides a mock function with given fields: _a0

func (*RPCClient) NumUnconfirmedTxs

func (_m *RPCClient) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error)

NumUnconfirmedTxs provides a mock function with given fields: _a0

func (*RPCClient) OnReset

func (_m *RPCClient) OnReset() error

OnReset provides a mock function with given fields:

func (*RPCClient) OnStart

func (_m *RPCClient) OnStart() error

OnStart provides a mock function with given fields:

func (*RPCClient) OnStop

func (_m *RPCClient) OnStop()

OnStop provides a mock function with given fields:

func (*RPCClient) Quit

func (_m *RPCClient) Quit() <-chan struct{}

Quit provides a mock function with given fields:

func (*RPCClient) Reset

func (_m *RPCClient) Reset() error

Reset provides a mock function with given fields:

func (*RPCClient) SetLogger

func (_m *RPCClient) SetLogger(_a0 log.Logger)

SetLogger provides a mock function with given fields: _a0

func (*RPCClient) SimulateTx

func (_m *RPCClient) SimulateTx(ctx context.Context, tx signing.Tx) (*types.SimulationResponse, error)

SimulateTx provides a mock function with given fields: ctx, tx

func (*RPCClient) Start

func (_m *RPCClient) Start() error

Start provides a mock function with given fields:

func (*RPCClient) Status

func (_m *RPCClient) Status(_a0 context.Context) (*coretypes.ResultStatus, error)

Status provides a mock function with given fields: _a0

func (*RPCClient) Stop

func (_m *RPCClient) Stop() error

Stop provides a mock function with given fields:

func (*RPCClient) String

func (_m *RPCClient) String() string

String provides a mock function with given fields:

func (*RPCClient) Subscribe

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

Subscribe provides a mock function with given fields: ctx, subscriber, query, outCapacity

func (*RPCClient) Tx

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

Tx provides a mock function with given fields: ctx, hash, prove

func (*RPCClient) TxSearch

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

TxSearch provides a mock function with given fields: ctx, query, prove, page, perPage, orderBy

func (*RPCClient) UnbondingDelegations

func (_m *RPCClient) UnbondingDelegations(ctx context.Context, addr types.AccAddress, height int64) (stakingtypes.UnbondingDelegations, error)

UnbondingDelegations provides a mock function with given fields: ctx, addr, height

func (*RPCClient) UnconfirmedTxs

func (_m *RPCClient) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error)

UnconfirmedTxs provides a mock function with given fields: ctx, limit

func (*RPCClient) Unsubscribe

func (_m *RPCClient) Unsubscribe(ctx context.Context, subscriber string, query string) error

Unsubscribe provides a mock function with given fields: ctx, subscriber, query

func (*RPCClient) UnsubscribeAll

func (_m *RPCClient) UnsubscribeAll(ctx context.Context, subscriber string) error

UnsubscribeAll provides a mock function with given fields: ctx, subscriber

func (*RPCClient) Validators

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

Validators provides a mock function with given fields: ctx, height, page, perPage

Jump to

Keyboard shortcuts

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