mocks

package
v1.21.39 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: BSD-3-Clause Imports: 20 Imported by: 0

README

Mocks

The mocks package contains mock objects used for testing. They have been generated with mockery.

There is a scripts/regenerate_mocks.sh script which can be executed to regenerate most mocks when required (interface change).

However, there is an exception: Interfaces in another repository (e.g. node) seem to pose problems to mockery. We get

outside main module or its selected dependencies

trying to generate them via script.

Those should probably need to be regenerated and pasted here manually when required.

At this point this affects:

  • InfoClient
  • PClient

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryChecker

type BinaryChecker struct {
	mock.Mock
}

BinaryChecker is an autogenerated mock type for the BinaryChecker type

func NewBinaryChecker

func NewBinaryChecker(t mockConstructorTestingTNewBinaryChecker) *BinaryChecker

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

func (*BinaryChecker) ExistsWithVersion

func (_m *BinaryChecker) ExistsWithVersion(name string, binaryPrefix string, version string) (bool, error)

ExistsWithVersion provides a mock function with given fields: name, binaryPrefix, version

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. 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 (*Client) AddNode

func (_m *Client) AddNode(ctx context.Context, name string, execPath string, opts ...client.OpOption) (*rpcpb.AddNodeResponse, error)

AddNode provides a mock function with given fields: ctx, name, execPath, opts

func (*Client) AddPermissionlessValidator

func (_m *Client) AddPermissionlessValidator(ctx context.Context, validatorSpec []*rpcpb.PermissionlessValidatorSpec) (*rpcpb.AddPermissionlessValidatorResponse, error)

AddPermissionlessValidator provides a mock function with given fields: ctx, validatorSpec

func (*Client) AttachPeer

func (_m *Client) AttachPeer(ctx context.Context, nodeName string) (*rpcpb.AttachPeerResponse, error)

AttachPeer provides a mock function with given fields: ctx, nodeName

func (*Client) Close

func (_m *Client) Close() error

Close provides a mock function with no fields

func (*Client) CreateChains added in v1.21.38

func (_m *Client) CreateChains(ctx context.Context, chainSpecs []*rpcpb.BlockchainSpec) (*rpcpb.CreateBlockchainsResponse, error)

CreateChains provides a mock function with given fields: ctx, chainSpecs

func (*Client) CreateParticipantGroups added in v1.21.38

func (_m *Client) CreateParticipantGroups(ctx context.Context, participantsSpecs []*rpcpb.ChainSpec) (*rpcpb.CreateChainsResponse, error)

CreateParticipantGroups provides a mock function with given fields: ctx, participantsSpecs

func (*Client) GetSnapshotNames

func (_m *Client) GetSnapshotNames(ctx context.Context) ([]string, error)

GetSnapshotNames provides a mock function with given fields: ctx

func (*Client) Health

func (_m *Client) Health(ctx context.Context) (*rpcpb.HealthResponse, error)

Health provides a mock function with given fields: ctx

func (*Client) LoadSnapshot

func (_m *Client) LoadSnapshot(ctx context.Context, snapshotName string, opts ...client.OpOption) (*rpcpb.LoadSnapshotResponse, error)

LoadSnapshot provides a mock function with given fields: ctx, snapshotName, opts

func (*Client) PauseNode

func (_m *Client) PauseNode(ctx context.Context, name string) (*rpcpb.PauseNodeResponse, error)

PauseNode provides a mock function with given fields: ctx, name

func (*Client) Ping

func (_m *Client) Ping(ctx context.Context) (*rpcpb.PingResponse, error)

Ping provides a mock function with given fields: ctx

func (*Client) RPCVersion

func (_m *Client) RPCVersion(ctx context.Context) (*rpcpb.RPCVersionResponse, error)

RPCVersion provides a mock function with given fields: ctx

func (*Client) RemoveChainValidator added in v1.21.38

func (_m *Client) RemoveChainValidator(ctx context.Context, validatorSpec []*rpcpb.RemoveChainValidatorSpec) (*rpcpb.RemoveChainValidatorResponse, error)

RemoveChainValidator provides a mock function with given fields: ctx, validatorSpec

func (*Client) RemoveNode

func (_m *Client) RemoveNode(ctx context.Context, name string) (*rpcpb.RemoveNodeResponse, error)

RemoveNode provides a mock function with given fields: ctx, name

func (*Client) RemoveSnapshot

func (_m *Client) RemoveSnapshot(ctx context.Context, snapshotName string) (*rpcpb.RemoveSnapshotResponse, error)

RemoveSnapshot provides a mock function with given fields: ctx, snapshotName

func (*Client) RestartNode

func (_m *Client) RestartNode(ctx context.Context, name string, opts ...client.OpOption) (*rpcpb.RestartNodeResponse, error)

RestartNode provides a mock function with given fields: ctx, name, opts

func (*Client) ResumeNode

func (_m *Client) ResumeNode(ctx context.Context, name string) (*rpcpb.ResumeNodeResponse, error)

ResumeNode provides a mock function with given fields: ctx, name

func (*Client) SaveSnapshot

func (_m *Client) SaveSnapshot(ctx context.Context, snapshotName string) (*rpcpb.SaveSnapshotResponse, error)

SaveSnapshot provides a mock function with given fields: ctx, snapshotName

func (*Client) SendOutboundMessage

func (_m *Client) SendOutboundMessage(ctx context.Context, nodeName string, peerID string, op uint32, msgBody []byte) (*rpcpb.SendOutboundMessageResponse, error)

SendOutboundMessage provides a mock function with given fields: ctx, nodeName, peerID, op, msgBody

func (*Client) Start

func (_m *Client) Start(ctx context.Context, execPath string, opts ...client.OpOption) (*rpcpb.StartResponse, error)

Start provides a mock function with given fields: ctx, execPath, opts

func (*Client) Status

func (_m *Client) Status(ctx context.Context) (*rpcpb.StatusResponse, error)

Status provides a mock function with given fields: ctx

func (*Client) Stop

func (_m *Client) Stop(ctx context.Context) (*rpcpb.StopResponse, error)

Stop provides a mock function with given fields: ctx

func (*Client) StreamStatus

func (_m *Client) StreamStatus(ctx context.Context, pushInterval time.Duration) (<-chan *rpcpb.ClusterInfo, error)

StreamStatus provides a mock function with given fields: ctx, pushInterval

func (*Client) TransformElasticChains added in v1.21.38

func (_m *Client) TransformElasticChains(ctx context.Context, elasticChainSpecs []*rpcpb.ElasticChainSpec) (*rpcpb.TransformElasticChainsResponse, error)

TransformElasticChains provides a mock function with given fields: ctx, elasticChainSpecs

func (*Client) URIs

func (_m *Client) URIs(ctx context.Context) ([]string, error)

URIs provides a mock function with given fields: ctx

func (*Client) WaitForHealthy

func (_m *Client) WaitForHealthy(ctx context.Context) (*rpcpb.WaitForHealthyResponse, error)

WaitForHealthy provides a mock function with given fields: ctx

type Downloader

type Downloader struct {
	mock.Mock
}

Downloader is an autogenerated mock type for the Downloader type

func NewDownloader

func NewDownloader(t mockConstructorTestingTNewDownloader) *Downloader

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

func (*Downloader) Download

func (_m *Downloader) Download(url string) ([]byte, error)

Download provides a mock function with given fields: url

func (*Downloader) DownloadWithTee

func (_m *Downloader) DownloadWithTee(url string, filePath string) ([]byte, error)

DownloadWithTee provides a mock function with given fields: url, filePath

func (*Downloader) GetAllReleasesForRepo

func (_m *Downloader) GetAllReleasesForRepo(org string, repo string) ([]string, error)

GetAllReleasesForRepo provides a mock function with given fields: org, repo

func (*Downloader) GetLatestPreReleaseVersion

func (_m *Downloader) GetLatestPreReleaseVersion(releaseURL string) (string, error)

GetLatestPreReleaseVersion provides a mock function with given fields: releaseURL

func (*Downloader) GetLatestReleaseVersion

func (_m *Downloader) GetLatestReleaseVersion(releaseURL string) (string, error)

GetLatestReleaseVersion provides a mock function with given fields: releaseURL

type InfoClient

type InfoClient struct {
	mock.Mock
}

InfoClient is an autogenerated mock type for the Client type

func NewInfoClient

func NewInfoClient(t mockConstructorTestingTNewInfoClient) *InfoClient

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

func (*InfoClient) GetBlockchainID

func (_m *InfoClient) GetBlockchainID(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (ids.ID, error)

GetBlockchainID provides a mock function with given fields: _a0, _a1, _a2

func (*InfoClient) GetNetworkID

func (_m *InfoClient) GetNetworkID(_a0 context.Context, _a1 ...rpc.Option) (uint32, error)

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

func (*InfoClient) GetNetworkName

func (_m *InfoClient) GetNetworkName(_a0 context.Context, _a1 ...rpc.Option) (string, error)

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

func (*InfoClient) GetNodeID

func (_m *InfoClient) GetNodeID(_a0 context.Context, _a1 ...rpc.Option) (ids.NodeID, *signer.ProofOfPossession, error)

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

func (*InfoClient) GetNodeIP

func (_m *InfoClient) GetNodeIP(_a0 context.Context, _a1 ...rpc.Option) (string, error)

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

func (*InfoClient) GetNodeVersion

func (_m *InfoClient) GetNodeVersion(_a0 context.Context, _a1 ...rpc.Option) (*info.GetNodeVersionReply, error)

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

func (*InfoClient) GetTxFee

func (_m *InfoClient) GetTxFee(_a0 context.Context, _a1 ...rpc.Option) (*info.GetTxFeeResponse, error)

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

func (*InfoClient) GetVMs

func (_m *InfoClient) GetVMs(_a0 context.Context, _a1 ...rpc.Option) (map[ids.ID][]string, error)

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

func (*InfoClient) IsBootstrapped

func (_m *InfoClient) IsBootstrapped(_a0 context.Context, _a1 string, _a2 ...rpc.Option) (bool, error)

IsBootstrapped provides a mock function with given fields: _a0, _a1, _a2

func (*InfoClient) Peers

func (_m *InfoClient) Peers(_a0 context.Context, _a1 ...rpc.Option) ([]info.Peer, error)

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

func (*InfoClient) Uptime

func (_m *InfoClient) Uptime(_a0 context.Context, _a1 ids.ID, _a2 ...rpc.Option) (*info.UptimeResponse, error)

Uptime provides a mock function with given fields: _a0, _a1, _a2

type Installer

type Installer struct {
	mock.Mock
}

Installer is an autogenerated mock type for the Installer type

func NewInstaller

func NewInstaller(t mockConstructorTestingTNewInstaller) *Installer

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

func (*Installer) GetArch

func (_m *Installer) GetArch() (string, string)

GetArch provides a mock function with given fields:

type PClient

type PClient struct {
	mock.Mock
}

PClient is an autogenerated mock type for the PClient type

func (*PClient) ExportKey added in v1.9.5

func (m *PClient) ExportKey(ctx context.Context, user api.UserPass, address ids.ShortID, options ...rpc.Option) (*secp256k1.PrivateKey, error)

ExportKey provides a mock function with given fields: ctx, user, address, options

func (*PClient) GetAtomicUTXOs added in v1.9.5

func (m *PClient) GetAtomicUTXOs(ctx context.Context, addrs []ids.ShortID, sourceChain string, limit uint32, startAddress ids.ShortID, startUTXOID ids.ID, options ...rpc.Option) ([][]byte, ids.ShortID, ids.ID, error)

GetAtomicUTXOs provides a mock function with given fields: ctx, addrs, sourceChain, limit, startAddress, startUTXOID, options

func (*PClient) GetBalance added in v1.9.5

func (m *PClient) GetBalance(ctx context.Context, addrs []ids.ShortID, options ...rpc.Option) (*platformvm.GetBalanceResponse, error)

GetBalance provides a mock function with given fields: ctx, addrs, options

func (*PClient) GetBlock added in v1.9.5

func (m *PClient) GetBlock(ctx context.Context, blockID ids.ID, options ...rpc.Option) ([]byte, error)

GetBlock provides a mock function with given fields: ctx, blockID, options

func (*PClient) GetCurrentValidators

func (m *PClient) GetCurrentValidators(ctx context.Context, subnetID ids.ID, nodeIDs []ids.NodeID, options ...rpc.Option) ([]platformvm.ClientPermissionlessValidator, error)

GetCurrentValidators provides a mock function with given fields: ctx, subnetID, nodeIDs, options

type PluginBinaryDownloader

type PluginBinaryDownloader struct {
	mock.Mock
}

PluginBinaryDownloader is an autogenerated mock type for the PluginBinaryDownloader type

func NewPluginBinaryDownloader

func NewPluginBinaryDownloader(t mockConstructorTestingTNewPluginBinaryDownloader) *PluginBinaryDownloader

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

func (*PluginBinaryDownloader) InstallVM

func (_m *PluginBinaryDownloader) InstallVM(vmID string, vmBin string) error

InstallVM provides a mock function with given fields: vmID, vmBin

func (*PluginBinaryDownloader) RemoveVM

func (_m *PluginBinaryDownloader) RemoveVM(vmID string) error

RemoveVM provides a mock function with given fields: vmID

func (*PluginBinaryDownloader) UpgradeVM

func (_m *PluginBinaryDownloader) UpgradeVM(vmID string, vmBin string) error

UpgradeVM provides a mock function with given fields: vmID, vmBin

type ProcessChecker

type ProcessChecker struct {
	mock.Mock
}

ProcessChecker is an autogenerated mock type for the ProcessChecker type

func NewProcessChecker

func NewProcessChecker(t mockConstructorTestingTNewProcessChecker) *ProcessChecker

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

func (*ProcessChecker) IsServerProcessRunning

func (_m *ProcessChecker) IsServerProcessRunning(app *application.Lux) (bool, error)

IsServerProcessRunning provides a mock function with given fields: app

type Prompter

type Prompter struct {
	mock.Mock
}

Prompter is a mock implementation of prompts.Prompter

func (*Prompter) CaptureAddress

func (m *Prompter) CaptureAddress(promptStr string) (crypto.Address, error)

func (*Prompter) CaptureAddresses

func (m *Prompter) CaptureAddresses(promptStr string) ([]crypto.Address, error)

func (*Prompter) CaptureDate

func (m *Prompter) CaptureDate(promptStr string) (time.Time, error)

func (*Prompter) CaptureDuration

func (m *Prompter) CaptureDuration(promptStr string) (time.Duration, error)

func (*Prompter) CaptureEmail

func (m *Prompter) CaptureEmail(promptStr string) (string, error)

func (*Prompter) CaptureExistingFilepath

func (m *Prompter) CaptureExistingFilepath(promptStr string) (string, error)

func (*Prompter) CaptureFloat

func (m *Prompter) CaptureFloat(promptStr string, validator func(float64) error) (float64, error)

func (*Prompter) CaptureFujiDuration

func (m *Prompter) CaptureFujiDuration(promptStr string) (time.Duration, error)

func (*Prompter) CaptureFutureDate

func (m *Prompter) CaptureFutureDate(promptStr string, minDate time.Time) (time.Time, error)

func (*Prompter) CaptureGitURL

func (m *Prompter) CaptureGitURL(promptStr string) (*url.URL, error)

func (*Prompter) CaptureID

func (m *Prompter) CaptureID(promptStr string) (ids.ID, error)

func (*Prompter) CaptureIndex

func (m *Prompter) CaptureIndex(promptStr string, options []any) (int, error)

func (*Prompter) CaptureInt

func (m *Prompter) CaptureInt(promptStr string, validator func(int) error) (int, error)

func (*Prompter) CaptureList

func (m *Prompter) CaptureList(promptStr string, options []string) (string, error)

func (*Prompter) CaptureListWithSize

func (m *Prompter) CaptureListWithSize(prompt string, options []string, size int) ([]string, error)

func (*Prompter) CaptureMainnetDuration

func (m *Prompter) CaptureMainnetDuration(promptStr string) (time.Duration, error)

func (*Prompter) CaptureMainnetL1StakingDuration

func (m *Prompter) CaptureMainnetL1StakingDuration(promptStr string) (time.Duration, error)

func (*Prompter) CaptureNewFilepath

func (m *Prompter) CaptureNewFilepath(promptStr string) (string, error)

func (*Prompter) CaptureNoYes

func (m *Prompter) CaptureNoYes(promptStr string) (bool, error)

func (*Prompter) CaptureNodeID

func (m *Prompter) CaptureNodeID(promptStr string) (ids.NodeID, error)

func (*Prompter) CapturePChainAddress

func (m *Prompter) CapturePChainAddress(promptStr string, network models.Network) (string, error)

func (*Prompter) CapturePositiveBigInt

func (m *Prompter) CapturePositiveBigInt(promptStr string) (*big.Int, error)

func (*Prompter) CapturePositiveInt

func (m *Prompter) CapturePositiveInt(promptStr string, comparators []prompts.Comparator) (int, error)

func (*Prompter) CaptureRepoBranch

func (m *Prompter) CaptureRepoBranch(promptStr string, repo string) (string, error)

func (*Prompter) CaptureRepoFile

func (m *Prompter) CaptureRepoFile(promptStr string, repo string, branch string) (string, error)

func (*Prompter) CaptureString

func (m *Prompter) CaptureString(promptStr string) (string, error)

func (*Prompter) CaptureStringAllowEmpty

func (m *Prompter) CaptureStringAllowEmpty(promptStr string) (string, error)

func (*Prompter) CaptureURL

func (m *Prompter) CaptureURL(promptStr string, validateConnection bool) (string, error)

func (*Prompter) CaptureUint16

func (m *Prompter) CaptureUint16(promptStr string) (uint16, error)

func (*Prompter) CaptureUint32

func (m *Prompter) CaptureUint32(promptStr string) (uint32, error)

func (*Prompter) CaptureUint64

func (m *Prompter) CaptureUint64(promptStr string) (uint64, error)

func (*Prompter) CaptureUint64Compare

func (m *Prompter) CaptureUint64Compare(promptStr string, comparators []prompts.Comparator) (uint64, error)

func (*Prompter) CaptureUint8

func (m *Prompter) CaptureUint8(promptStr string) (uint8, error)

func (*Prompter) CaptureValidatedString

func (m *Prompter) CaptureValidatedString(promptStr string, validator func(string) error) (string, error)

func (*Prompter) CaptureValidatorBalance

func (m *Prompter) CaptureValidatorBalance(promptStr string, availableBalance float64, minBalance float64) (float64, error)

func (*Prompter) CaptureVersion

func (m *Prompter) CaptureVersion(promptStr string) (string, error)

func (*Prompter) CaptureWeight

func (m *Prompter) CaptureWeight(promptStr string, validator func(uint64) error) (uint64, error)

func (*Prompter) CaptureXChainAddress

func (m *Prompter) CaptureXChainAddress(promptStr string, network models.Network) (string, error)

func (*Prompter) CaptureYesNo

func (m *Prompter) CaptureYesNo(promptStr string) (bool, error)

func (*Prompter) ChooseKeyOrLedger

func (m *Prompter) ChooseKeyOrLedger(goal string) (bool, error)

type Publisher

type Publisher struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func NewPublisher

func NewPublisher(t mockConstructorTestingTNewPublisher) *Publisher

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

func (*Publisher) GetRepo

func (_m *Publisher) GetRepo() (*git.Repository, error)

GetRepo provides a mock function with given fields:

func (*Publisher) Publish

func (_m *Publisher) Publish(r *git.Repository, subnetName string, vmName string, subnetYAML []byte, vmYAML []byte) error

Publish provides a mock function with given fields: r, subnetName, vmName, subnetYAML, vmYAML

type SDKPrompter added in v1.9.5

type SDKPrompter struct {
	mock.Mock
}

SDKPrompter is a mock implementation of sdk/prompts.Prompter

func (*SDKPrompter) CaptureAddress added in v1.9.5

func (m *SDKPrompter) CaptureAddress(promptStr string) (crypto.Address, error)

func (*SDKPrompter) CaptureDate added in v1.9.5

func (m *SDKPrompter) CaptureDate(promptStr string) (time.Time, error)

func (*SDKPrompter) CaptureDuration added in v1.9.5

func (m *SDKPrompter) CaptureDuration(promptStr string) (time.Duration, error)

func (*SDKPrompter) CaptureEmail added in v1.9.5

func (m *SDKPrompter) CaptureEmail(promptStr string) (string, error)

func (*SDKPrompter) CaptureExistingFilepath added in v1.9.5

func (m *SDKPrompter) CaptureExistingFilepath(promptStr string) (string, error)

func (*SDKPrompter) CaptureFloat added in v1.9.5

func (m *SDKPrompter) CaptureFloat(promptStr string) (float64, error)

func (*SDKPrompter) CaptureFutureDate added in v1.9.5

func (m *SDKPrompter) CaptureFutureDate(promptStr string, minDate time.Time) (time.Time, error)

func (*SDKPrompter) CaptureGitURL added in v1.9.5

func (m *SDKPrompter) CaptureGitURL(promptStr string) (*url.URL, error)

func (*SDKPrompter) CaptureID added in v1.9.5

func (m *SDKPrompter) CaptureID(promptStr string) (ids.ID, error)

func (*SDKPrompter) CaptureIndex added in v1.9.5

func (m *SDKPrompter) CaptureIndex(promptStr string, options []any) (int, error)

func (*SDKPrompter) CaptureList added in v1.9.5

func (m *SDKPrompter) CaptureList(promptStr string, options []string) (string, error)

func (*SDKPrompter) CaptureListWithSize added in v1.9.5

func (m *SDKPrompter) CaptureListWithSize(prompt string, options []string, size int) ([]string, error)

func (*SDKPrompter) CaptureNewFilepath added in v1.9.5

func (m *SDKPrompter) CaptureNewFilepath(promptStr string) (string, error)

func (*SDKPrompter) CaptureNoYes added in v1.9.5

func (m *SDKPrompter) CaptureNoYes(promptStr string) (bool, error)

func (*SDKPrompter) CaptureNodeID added in v1.9.5

func (m *SDKPrompter) CaptureNodeID(promptStr string) (ids.NodeID, error)

func (*SDKPrompter) CapturePChainAddress added in v1.9.5

func (m *SDKPrompter) CapturePChainAddress(promptStr string, network models.Network) (string, error)

func (*SDKPrompter) CapturePositiveBigInt added in v1.9.5

func (m *SDKPrompter) CapturePositiveBigInt(promptStr string) (*big.Int, error)

func (*SDKPrompter) CapturePositiveInt added in v1.9.5

func (m *SDKPrompter) CapturePositiveInt(promptStr string, comparators []prompts.Comparator) (int, error)

func (*SDKPrompter) CaptureString added in v1.9.5

func (m *SDKPrompter) CaptureString(promptStr string) (string, error)

func (*SDKPrompter) CaptureStringAllowEmpty added in v1.9.5

func (m *SDKPrompter) CaptureStringAllowEmpty(promptStr string) (string, error)

func (*SDKPrompter) CaptureURL added in v1.9.5

func (m *SDKPrompter) CaptureURL(promptStr string) (string, error)

func (*SDKPrompter) CaptureUint64 added in v1.9.5

func (m *SDKPrompter) CaptureUint64(promptStr string) (uint64, error)

func (*SDKPrompter) CaptureUint64Compare added in v1.9.5

func (m *SDKPrompter) CaptureUint64Compare(promptStr string, comparators []prompts.Comparator) (uint64, error)

func (*SDKPrompter) CaptureValidatorBalance added in v1.9.5

func (m *SDKPrompter) CaptureValidatorBalance(promptStr string, availableBalance float64, minBalance float64) (float64, error)

func (*SDKPrompter) CaptureVersion added in v1.9.5

func (m *SDKPrompter) CaptureVersion(promptStr string) (string, error)

func (*SDKPrompter) CaptureWeight added in v1.9.5

func (m *SDKPrompter) CaptureWeight(promptStr string) (uint64, error)

func (*SDKPrompter) CaptureYesNo added in v1.9.5

func (m *SDKPrompter) CaptureYesNo(promptStr string) (bool, error)

func (*SDKPrompter) ChooseKeyOrLedger added in v1.9.5

func (m *SDKPrompter) ChooseKeyOrLedger(goal string) (bool, error)

type StatusChecker

type StatusChecker struct {
	mock.Mock
}

StatusChecker is an autogenerated mock type for the StatusChecker type

func NewStatusChecker

func NewStatusChecker(t mockConstructorTestingTNewStatusChecker) *StatusChecker

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

func (*StatusChecker) GetCurrentNetworkVersion

func (_m *StatusChecker) GetCurrentNetworkVersion() (string, int, bool, error)

GetCurrentNetworkVersion provides a mock function with given fields:

Jump to

Keyboard shortcuts

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