Documentation ¶
Overview ¶
Package mockutils is a generated GoMock package.
Package mockutils is a generated GoMock package.
Index ¶
- type MockConfiguration
- func (m *MockConfiguration) EXPECT() *MockConfigurationMockRecorder
- func (m *MockConfiguration) Exists() bool
- func (m *MockConfiguration) GetAccountDbPath() string
- func (m *MockConfiguration) GetCurrentEnv() string
- func (m *MockConfiguration) GetDefaultAccount() string
- func (m *MockConfiguration) GetDrsAddress() string
- func (m *MockConfiguration) GetEnvList() []string
- func (m *MockConfiguration) GetHeartAddress() string
- func (m *MockConfiguration) GetRpcUrl() string
- func (m *MockConfiguration) InitEnvBasedConfig(baseDir, envName string) error
- func (m *MockConfiguration) InitSharedConfig(baseDir string) error
- func (m *MockConfiguration) SetCurrentEnv(account string) error
- func (m *MockConfiguration) SetDefaultAccount(account string) error
- type MockConfigurationMockRecorder
- func (mr *MockConfigurationMockRecorder) Exists() *gomock.Call
- func (mr *MockConfigurationMockRecorder) GetAccountDbPath() *gomock.Call
- func (mr *MockConfigurationMockRecorder) GetCurrentEnv() *gomock.Call
- func (mr *MockConfigurationMockRecorder) GetDefaultAccount() *gomock.Call
- func (mr *MockConfigurationMockRecorder) GetDrsAddress() *gomock.Call
- func (mr *MockConfigurationMockRecorder) GetEnvList() *gomock.Call
- func (mr *MockConfigurationMockRecorder) GetHeartAddress() *gomock.Call
- func (mr *MockConfigurationMockRecorder) GetRpcUrl() *gomock.Call
- func (mr *MockConfigurationMockRecorder) InitEnvBasedConfig(baseDir, envName interface{}) *gomock.Call
- func (mr *MockConfigurationMockRecorder) InitSharedConfig(baseDir interface{}) *gomock.Call
- func (mr *MockConfigurationMockRecorder) SetCurrentEnv(account interface{}) *gomock.Call
- func (mr *MockConfigurationMockRecorder) SetDefaultAccount(account interface{}) *gomock.Call
- type MockPrompt
- func (m *MockPrompt) EXPECT() *MockPromptMockRecorder
- func (m *MockPrompt) RequestChoice(label string, choices []string, opt console.RequestChoiceOptions) int
- func (m *MockPrompt) RequestConfirmation(label string) bool
- func (m *MockPrompt) RequestHiddenString(label string, validate promptui.ValidateFunc) string
- func (m *MockPrompt) RequestPassphrase() string
- func (m *MockPrompt) RequestString(label string, validate promptui.ValidateFunc) string
- type MockPromptMockRecorder
- func (mr *MockPromptMockRecorder) RequestChoice(label, choices, opt interface{}) *gomock.Call
- func (mr *MockPromptMockRecorder) RequestConfirmation(label interface{}) *gomock.Call
- func (mr *MockPromptMockRecorder) RequestHiddenString(label, validate interface{}) *gomock.Call
- func (mr *MockPromptMockRecorder) RequestPassphrase() *gomock.Call
- func (mr *MockPromptMockRecorder) RequestString(label, validate interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConfiguration ¶
type MockConfiguration struct {
// contains filtered or unexported fields
}
MockConfiguration is a mock of Configuration interface
func NewMockConfiguration ¶
func NewMockConfiguration(ctrl *gomock.Controller) *MockConfiguration
NewMockConfiguration creates a new mock instance
func (*MockConfiguration) EXPECT ¶
func (m *MockConfiguration) EXPECT() *MockConfigurationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockConfiguration) Exists ¶
func (m *MockConfiguration) Exists() bool
Exists mocks base method
func (*MockConfiguration) GetAccountDbPath ¶
func (m *MockConfiguration) GetAccountDbPath() string
GetAccountDbPath mocks base method
func (*MockConfiguration) GetCurrentEnv ¶
func (m *MockConfiguration) GetCurrentEnv() string
GetCurrentEnv mocks base method
func (*MockConfiguration) GetDefaultAccount ¶
func (m *MockConfiguration) GetDefaultAccount() string
GetDefaultAccount mocks base method
func (*MockConfiguration) GetDrsAddress ¶
func (m *MockConfiguration) GetDrsAddress() string
GetDrsAddress mocks base method
func (*MockConfiguration) GetEnvList ¶
func (m *MockConfiguration) GetEnvList() []string
GetEnvList mocks base method
func (*MockConfiguration) GetHeartAddress ¶
func (m *MockConfiguration) GetHeartAddress() string
GetHeartAddress mocks base method
func (*MockConfiguration) GetRpcUrl ¶
func (m *MockConfiguration) GetRpcUrl() string
GetRpcUrl mocks base method
func (*MockConfiguration) InitEnvBasedConfig ¶
func (m *MockConfiguration) InitEnvBasedConfig(baseDir, envName string) error
InitEnvBasedConfig mocks base method
func (*MockConfiguration) InitSharedConfig ¶
func (m *MockConfiguration) InitSharedConfig(baseDir string) error
InitSharedConfig mocks base method
func (*MockConfiguration) SetCurrentEnv ¶
func (m *MockConfiguration) SetCurrentEnv(account string) error
SetCurrentEnv mocks base method
func (*MockConfiguration) SetDefaultAccount ¶
func (m *MockConfiguration) SetDefaultAccount(account string) error
SetDefaultAccount mocks base method
type MockConfigurationMockRecorder ¶
type MockConfigurationMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigurationMockRecorder is the mock recorder for MockConfiguration
func (*MockConfigurationMockRecorder) Exists ¶
func (mr *MockConfigurationMockRecorder) Exists() *gomock.Call
Exists indicates an expected call of Exists
func (*MockConfigurationMockRecorder) GetAccountDbPath ¶
func (mr *MockConfigurationMockRecorder) GetAccountDbPath() *gomock.Call
GetAccountDbPath indicates an expected call of GetAccountDbPath
func (*MockConfigurationMockRecorder) GetCurrentEnv ¶
func (mr *MockConfigurationMockRecorder) GetCurrentEnv() *gomock.Call
GetCurrentEnv indicates an expected call of GetCurrentEnv
func (*MockConfigurationMockRecorder) GetDefaultAccount ¶
func (mr *MockConfigurationMockRecorder) GetDefaultAccount() *gomock.Call
GetDefaultAccount indicates an expected call of GetDefaultAccount
func (*MockConfigurationMockRecorder) GetDrsAddress ¶
func (mr *MockConfigurationMockRecorder) GetDrsAddress() *gomock.Call
GetDrsAddress indicates an expected call of GetDrsAddress
func (*MockConfigurationMockRecorder) GetEnvList ¶
func (mr *MockConfigurationMockRecorder) GetEnvList() *gomock.Call
GetEnvList indicates an expected call of GetEnvList
func (*MockConfigurationMockRecorder) GetHeartAddress ¶
func (mr *MockConfigurationMockRecorder) GetHeartAddress() *gomock.Call
GetHeartAddress indicates an expected call of GetHeartAddress
func (*MockConfigurationMockRecorder) GetRpcUrl ¶
func (mr *MockConfigurationMockRecorder) GetRpcUrl() *gomock.Call
GetRpcUrl indicates an expected call of GetRpcUrl
func (*MockConfigurationMockRecorder) InitEnvBasedConfig ¶
func (mr *MockConfigurationMockRecorder) InitEnvBasedConfig(baseDir, envName interface{}) *gomock.Call
InitEnvBasedConfig indicates an expected call of InitEnvBasedConfig
func (*MockConfigurationMockRecorder) InitSharedConfig ¶
func (mr *MockConfigurationMockRecorder) InitSharedConfig(baseDir interface{}) *gomock.Call
InitSharedConfig indicates an expected call of InitSharedConfig
func (*MockConfigurationMockRecorder) SetCurrentEnv ¶
func (mr *MockConfigurationMockRecorder) SetCurrentEnv(account interface{}) *gomock.Call
SetCurrentEnv indicates an expected call of SetCurrentEnv
func (*MockConfigurationMockRecorder) SetDefaultAccount ¶
func (mr *MockConfigurationMockRecorder) SetDefaultAccount(account interface{}) *gomock.Call
SetDefaultAccount indicates an expected call of SetDefaultAccount
type MockPrompt ¶
type MockPrompt struct {
// contains filtered or unexported fields
}
MockPrompt is a mock of Prompt interface
func NewMockPrompt ¶
func NewMockPrompt(ctrl *gomock.Controller) *MockPrompt
NewMockPrompt creates a new mock instance
func (*MockPrompt) EXPECT ¶
func (m *MockPrompt) EXPECT() *MockPromptMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPrompt) RequestChoice ¶
func (m *MockPrompt) RequestChoice(label string, choices []string, opt console.RequestChoiceOptions) int
RequestChoice mocks base method
func (*MockPrompt) RequestConfirmation ¶
func (m *MockPrompt) RequestConfirmation(label string) bool
RequestConfirmation mocks base method
func (*MockPrompt) RequestHiddenString ¶
func (m *MockPrompt) RequestHiddenString(label string, validate promptui.ValidateFunc) string
RequestHiddenString mocks base method
func (*MockPrompt) RequestPassphrase ¶
func (m *MockPrompt) RequestPassphrase() string
RequestPassphrase mocks base method
func (*MockPrompt) RequestString ¶
func (m *MockPrompt) RequestString(label string, validate promptui.ValidateFunc) string
RequestString mocks base method
type MockPromptMockRecorder ¶
type MockPromptMockRecorder struct {
// contains filtered or unexported fields
}
MockPromptMockRecorder is the mock recorder for MockPrompt
func (*MockPromptMockRecorder) RequestChoice ¶
func (mr *MockPromptMockRecorder) RequestChoice(label, choices, opt interface{}) *gomock.Call
RequestChoice indicates an expected call of RequestChoice
func (*MockPromptMockRecorder) RequestConfirmation ¶
func (mr *MockPromptMockRecorder) RequestConfirmation(label interface{}) *gomock.Call
RequestConfirmation indicates an expected call of RequestConfirmation
func (*MockPromptMockRecorder) RequestHiddenString ¶
func (mr *MockPromptMockRecorder) RequestHiddenString(label, validate interface{}) *gomock.Call
RequestHiddenString indicates an expected call of RequestHiddenString
func (*MockPromptMockRecorder) RequestPassphrase ¶
func (mr *MockPromptMockRecorder) RequestPassphrase() *gomock.Call
RequestPassphrase indicates an expected call of RequestPassphrase
func (*MockPromptMockRecorder) RequestString ¶
func (mr *MockPromptMockRecorder) RequestString(label, validate interface{}) *gomock.Call
RequestString indicates an expected call of RequestString