mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	mock.Mock
}

Chain is an autogenerated mock type for the Chain type

func NewChain

func NewChain(t mockConstructorTestingTNewChain) *Chain

NewChain creates a new instance of Chain. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Chain) Close

func (_m *Chain) Close() error

Close provides a mock function with given fields:

func (*Chain) Config

func (_m *Chain) Config() config.Config

Config provides a mock function with given fields:

func (*Chain) HealthReport

func (_m *Chain) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*Chain) Healthy

func (_m *Chain) Healthy() error

Healthy provides a mock function with given fields:

func (*Chain) ID

func (_m *Chain) ID() string

ID provides a mock function with given fields:

func (*Chain) Name

func (_m *Chain) Name() string

Name provides a mock function with given fields:

func (*Chain) Reader

func (_m *Chain) Reader() (client.Reader, error)

Reader provides a mock function with given fields:

func (*Chain) Ready

func (_m *Chain) Ready() error

Ready provides a mock function with given fields:

func (*Chain) Start

func (_m *Chain) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

func (*Chain) TxManager

func (_m *Chain) TxManager() solana.TxManager

TxManager provides a mock function with given fields:

func (*Chain) UpdateConfig

func (_m *Chain) UpdateConfig(_a0 *db.ChainCfg)

UpdateConfig provides a mock function with given fields: _a0

type ChainSet

type ChainSet struct {
	mock.Mock
}

ChainSet is an autogenerated mock type for the ChainSet type

func NewChainSet

func NewChainSet(t mockConstructorTestingTNewChainSet) *ChainSet

NewChainSet creates a new instance of ChainSet. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ChainSet) Chain

func (_m *ChainSet) Chain(ctx context.Context, id string) (solana.Chain, error)

Chain provides a mock function with given fields: ctx, id

func (*ChainSet) Close

func (_m *ChainSet) Close() error

Close provides a mock function with given fields:

func (*ChainSet) HealthReport

func (_m *ChainSet) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*ChainSet) Healthy

func (_m *ChainSet) Healthy() error

Healthy provides a mock function with given fields:

func (*ChainSet) Name

func (_m *ChainSet) Name() string

Name provides a mock function with given fields:

func (*ChainSet) Ready

func (_m *ChainSet) Ready() error

Ready provides a mock function with given fields:

func (*ChainSet) Start

func (_m *ChainSet) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type Reader

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func NewReader

func NewReader(t mockConstructorTestingTNewReader) *Reader

NewReader creates a new instance of Reader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Reader) Balance

func (_m *Reader) Balance(addr solana.PublicKey) (uint64, error)

Balance provides a mock function with given fields: addr

func (*Reader) ChainID

func (_m *Reader) ChainID() (string, error)

ChainID provides a mock function with given fields:

func (*Reader) GetAccountInfoWithOpts

func (_m *Reader) GetAccountInfoWithOpts(ctx context.Context, addr solana.PublicKey, opts *rpc.GetAccountInfoOpts) (*rpc.GetAccountInfoResult, error)

GetAccountInfoWithOpts provides a mock function with given fields: ctx, addr, opts

func (*Reader) GetFeeForMessage

func (_m *Reader) GetFeeForMessage(msg string) (uint64, error)

GetFeeForMessage provides a mock function with given fields: msg

func (*Reader) LatestBlockhash

func (_m *Reader) LatestBlockhash() (*rpc.GetLatestBlockhashResult, error)

LatestBlockhash provides a mock function with given fields:

func (*Reader) SlotHeight

func (_m *Reader) SlotHeight() (uint64, error)

SlotHeight provides a mock function with given fields:

type TxManager

type TxManager struct {
	mock.Mock
}

TxManager is an autogenerated mock type for the TxManager type

func NewTxManager

func NewTxManager(t mockConstructorTestingTNewTxManager) *TxManager

NewTxManager creates a new instance of TxManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TxManager) Enqueue

func (_m *TxManager) Enqueue(accountID string, msg *solana.Transaction) error

Enqueue provides a mock function with given fields: accountID, msg

Jump to

Keyboard shortcuts

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