mocks

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RpcClient

type RpcClient struct {
	mock.Mock
}

RpcClient is an autogenerated mock type for the rpcClient type

func NewRpcClient

func NewRpcClient(t mockConstructorTestingTNewRpcClient) *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.

func (*RpcClient) CreateWallet

func (_m *RpcClient) CreateWallet(name string, opts ...rpcclient.CreateWalletOpt) (*btcjson.CreateWalletResult, error)

CreateWallet provides a mock function with given fields: name, opts

func (*RpcClient) GenerateToAddress

func (_m *RpcClient) GenerateToAddress(numBlocks int64, address btcutil.Address, maxTries *int64) ([]*chainhash.Hash, error)

GenerateToAddress provides a mock function with given fields: numBlocks, address, maxTries

func (*RpcClient) GetBalance

func (_m *RpcClient) GetBalance(account string) (btcutil.Amount, error)

GetBalance provides a mock function with given fields: account

func (*RpcClient) GetNewAddress

func (_m *RpcClient) GetNewAddress(account string) (btcutil.Address, error)

GetNewAddress provides a mock function with given fields: account

func (*RpcClient) GetWalletInfo

func (_m *RpcClient) GetWalletInfo() (*btcjson.GetWalletInfoResult, error)

GetWalletInfo provides a mock function with given fields:

func (*RpcClient) LoadWallet

func (_m *RpcClient) LoadWallet(name string) (*btcjson.LoadWalletResult, error)

LoadWallet provides a mock function with given fields: name

func (*RpcClient) SendToAddress

func (_m *RpcClient) SendToAddress(address btcutil.Address, amount btcutil.Amount) (*chainhash.Hash, error)

SendToAddress provides a mock function with given fields: address, amount

Jump to

Keyboard shortcuts

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