mocks

package
v1.22.6 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package mocks provides mock implementations for prompts.

Code generated manually for testing. Update as needed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPrompt

type MockPrompt struct {
}

MockPrompt is a mock implementation of the prompt interface for testing.

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)

Jump to

Keyboard shortcuts

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