mocks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIKeyStorage

type APIKeyStorage struct {
	mock.Mock
}

APIKeyStorage is an autogenerated mock type for the APIKeyStorage type

func NewAPIKeyStorage

func NewAPIKeyStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *APIKeyStorage

NewAPIKeyStorage creates a new instance of APIKeyStorage. 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 (*APIKeyStorage) ClearAPIKey

func (_m *APIKeyStorage) ClearAPIKey() error

ClearAPIKey provides a mock function with given fields:

func (*APIKeyStorage) EXPECT

func (_m *APIKeyStorage) EXPECT() *APIKeyStorage_Expecter

func (*APIKeyStorage) GetAPIKey

func (_m *APIKeyStorage) GetAPIKey() (string, error)

GetAPIKey provides a mock function with given fields:

func (*APIKeyStorage) SetAPIKey

func (_m *APIKeyStorage) SetAPIKey(apiKey string) error

SetAPIKey provides a mock function with given fields: apiKey

type APIKeyStorage_ClearAPIKey_Call

type APIKeyStorage_ClearAPIKey_Call struct {
	*mock.Call
}

APIKeyStorage_ClearAPIKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearAPIKey'

func (*APIKeyStorage_ClearAPIKey_Call) Return

func (*APIKeyStorage_ClearAPIKey_Call) Run

func (*APIKeyStorage_ClearAPIKey_Call) RunAndReturn

type APIKeyStorage_Expecter

type APIKeyStorage_Expecter struct {
	// contains filtered or unexported fields
}

func (*APIKeyStorage_Expecter) ClearAPIKey

ClearAPIKey is a helper method to define mock.On call

func (*APIKeyStorage_Expecter) GetAPIKey

GetAPIKey is a helper method to define mock.On call

func (*APIKeyStorage_Expecter) SetAPIKey

func (_e *APIKeyStorage_Expecter) SetAPIKey(apiKey interface{}) *APIKeyStorage_SetAPIKey_Call

SetAPIKey is a helper method to define mock.On call

  • apiKey string

type APIKeyStorage_GetAPIKey_Call

type APIKeyStorage_GetAPIKey_Call struct {
	*mock.Call
}

APIKeyStorage_GetAPIKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAPIKey'

func (*APIKeyStorage_GetAPIKey_Call) Return

func (*APIKeyStorage_GetAPIKey_Call) Run

func (*APIKeyStorage_GetAPIKey_Call) RunAndReturn

func (_c *APIKeyStorage_GetAPIKey_Call) RunAndReturn(run func() (string, error)) *APIKeyStorage_GetAPIKey_Call

type APIKeyStorage_SetAPIKey_Call

type APIKeyStorage_SetAPIKey_Call struct {
	*mock.Call
}

APIKeyStorage_SetAPIKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAPIKey'

func (*APIKeyStorage_SetAPIKey_Call) Return

func (*APIKeyStorage_SetAPIKey_Call) Run

func (*APIKeyStorage_SetAPIKey_Call) RunAndReturn

type ClientProvider

type ClientProvider struct {
	mock.Mock
}

ClientProvider is an autogenerated mock type for the ClientProvider type

func NewClientProvider

func NewClientProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientProvider

NewClientProvider creates a new instance of ClientProvider. 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 (*ClientProvider) EXPECT

func (*ClientProvider) NewClientFromConfig

func (_m *ClientProvider) NewClientFromConfig() (*openai.Client, error)

NewClientFromConfig provides a mock function with given fields:

type ClientProvider_Expecter

type ClientProvider_Expecter struct {
	// contains filtered or unexported fields
}

func (*ClientProvider_Expecter) NewClientFromConfig

NewClientFromConfig is a helper method to define mock.On call

type ClientProvider_NewClientFromConfig_Call

type ClientProvider_NewClientFromConfig_Call struct {
	*mock.Call
}

ClientProvider_NewClientFromConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewClientFromConfig'

func (*ClientProvider_NewClientFromConfig_Call) Return

func (*ClientProvider_NewClientFromConfig_Call) Run

func (*ClientProvider_NewClientFromConfig_Call) RunAndReturn

type ConfigProvider

type ConfigProvider struct {
	mock.Mock
}

ConfigProvider is an autogenerated mock type for the ConfigProvider type

func NewConfigProvider

func NewConfigProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConfigProvider

NewConfigProvider creates a new instance of ConfigProvider. 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 (*ConfigProvider) ClearConfig

func (_m *ConfigProvider) ClearConfig() error

ClearConfig provides a mock function with given fields:

func (*ConfigProvider) EXPECT

func (*ConfigProvider) GetConfig

func (_m *ConfigProvider) GetConfig() (*config.Config, error)

LoadConfig provides a mock function with given fields:

func (*ConfigProvider) GetConfigDir

func (_m *ConfigProvider) GetConfigDir() (string, error)

GetConfigDir provides a mock function with given fields:

func (*ConfigProvider) NewFromConfigFile

func (_m *ConfigProvider) NewFromConfigFile() (openai.ClientConfig, error)

NewFromConfigFile provides a mock function with given fields:

func (*ConfigProvider) SaveConfig

func (_m *ConfigProvider) SaveConfig(_a0 *config.Config) error

SaveConfig provides a mock function with given fields: _a0

type ConfigProvider_ClearConfig_Call

type ConfigProvider_ClearConfig_Call struct {
	*mock.Call
}

ConfigProvider_ClearConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearConfig'

func (*ConfigProvider_ClearConfig_Call) Return

func (*ConfigProvider_ClearConfig_Call) Run

func (*ConfigProvider_ClearConfig_Call) RunAndReturn

type ConfigProvider_Expecter

type ConfigProvider_Expecter struct {
	// contains filtered or unexported fields
}

func (*ConfigProvider_Expecter) ClearConfig

ClearConfig is a helper method to define mock.On call

func (*ConfigProvider_Expecter) GetConfigDir

GetConfigDir is a helper method to define mock.On call

func (*ConfigProvider_Expecter) LoadConfig

LoadConfig is a helper method to define mock.On call

func (*ConfigProvider_Expecter) NewFromConfigFile

NewFromConfigFile is a helper method to define mock.On call

func (*ConfigProvider_Expecter) SaveConfig

func (_e *ConfigProvider_Expecter) SaveConfig(_a0 interface{}) *ConfigProvider_SaveConfig_Call

SaveConfig is a helper method to define mock.On call

  • _a0 *config.Config

type ConfigProvider_GetConfigDir_Call

type ConfigProvider_GetConfigDir_Call struct {
	*mock.Call
}

ConfigProvider_GetConfigDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConfigDir'

func (*ConfigProvider_GetConfigDir_Call) Return

func (*ConfigProvider_GetConfigDir_Call) Run

func (*ConfigProvider_GetConfigDir_Call) RunAndReturn

type ConfigProvider_LoadConfig_Call

type ConfigProvider_LoadConfig_Call struct {
	*mock.Call
}

ConfigProvider_LoadConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConfig'

func (*ConfigProvider_LoadConfig_Call) Return

func (*ConfigProvider_LoadConfig_Call) Run

func (*ConfigProvider_LoadConfig_Call) RunAndReturn

type ConfigProvider_NewFromConfigFile_Call

type ConfigProvider_NewFromConfigFile_Call struct {
	*mock.Call
}

ConfigProvider_NewFromConfigFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewFromConfigFile'

func (*ConfigProvider_NewFromConfigFile_Call) Return

func (*ConfigProvider_NewFromConfigFile_Call) Run

func (*ConfigProvider_NewFromConfigFile_Call) RunAndReturn

type ConfigProvider_SaveConfig_Call

type ConfigProvider_SaveConfig_Call struct {
	*mock.Call
}

ConfigProvider_SaveConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveConfig'

func (*ConfigProvider_SaveConfig_Call) Return

func (*ConfigProvider_SaveConfig_Call) Run

func (*ConfigProvider_SaveConfig_Call) RunAndReturn

type ContextRetriever

type ContextRetriever struct {
	mock.Mock
}

ContextRetriever is an autogenerated mock type for the ContextRetriever type

func NewContextRetriever

func NewContextRetriever(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContextRetriever

NewContextRetriever creates a new instance of ContextRetriever. 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 (*ContextRetriever) EXPECT

func (*ContextRetriever) RetrieveContext

func (_m *ContextRetriever) RetrieveContext() (string, error)

RetrieveContext provides a mock function with given fields:

type ContextRetriever_Expecter

type ContextRetriever_Expecter struct {
	// contains filtered or unexported fields
}

func (*ContextRetriever_Expecter) RetrieveContext

RetrieveContext is a helper method to define mock.On call

type ContextRetriever_RetrieveContext_Call

type ContextRetriever_RetrieveContext_Call struct {
	*mock.Call
}

ContextRetriever_RetrieveContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveContext'

func (*ContextRetriever_RetrieveContext_Call) Return

func (*ContextRetriever_RetrieveContext_Call) Run

func (*ContextRetriever_RetrieveContext_Call) RunAndReturn

type FileManager

type FileManager struct {
	mock.Mock
}

FileManager is an autogenerated mock type for the FileManager type

func NewFileManager

func NewFileManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *FileManager

NewFileManager creates a new instance of FileManager. 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 (*FileManager) EXPECT

func (_m *FileManager) EXPECT() *FileManager_Expecter

func (*FileManager) Read

func (_m *FileManager) Read(path string) ([]byte, error)

Read provides a mock function with given fields: path

func (*FileManager) Write

func (_m *FileManager) Write(path string, content []byte, perm fs.FileMode) error

Write provides a mock function with given fields: path, content, perm

type FileManager_Expecter

type FileManager_Expecter struct {
	// contains filtered or unexported fields
}

func (*FileManager_Expecter) Read

func (_e *FileManager_Expecter) Read(path interface{}) *FileManager_Read_Call

Read is a helper method to define mock.On call

  • path string

func (*FileManager_Expecter) Write

func (_e *FileManager_Expecter) Write(path interface{}, content interface{}, perm interface{}) *FileManager_Write_Call

Write is a helper method to define mock.On call

  • path string
  • content []byte
  • perm fs.FileMode

type FileManager_Read_Call

type FileManager_Read_Call struct {
	*mock.Call
}

FileManager_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'

func (*FileManager_Read_Call) Return

func (_c *FileManager_Read_Call) Return(_a0 []byte, _a1 error) *FileManager_Read_Call

func (*FileManager_Read_Call) Run

func (_c *FileManager_Read_Call) Run(run func(path string)) *FileManager_Read_Call

func (*FileManager_Read_Call) RunAndReturn

func (_c *FileManager_Read_Call) RunAndReturn(run func(string) ([]byte, error)) *FileManager_Read_Call

type FileManager_Write_Call

type FileManager_Write_Call struct {
	*mock.Call
}

FileManager_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'

func (*FileManager_Write_Call) Return

func (*FileManager_Write_Call) Run

func (_c *FileManager_Write_Call) Run(run func(path string, content []byte, perm fs.FileMode)) *FileManager_Write_Call

func (*FileManager_Write_Call) RunAndReturn

func (_c *FileManager_Write_Call) RunAndReturn(run func(string, []byte, fs.FileMode) error) *FileManager_Write_Call

type FileReader

type FileReader struct {
	mock.Mock
}

FileReader is an autogenerated mock type for the FileReader type

func NewFileReader

func NewFileReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *FileReader

NewFileReader creates a new instance of FileReader. 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 (*FileReader) EXPECT

func (_m *FileReader) EXPECT() *FileReader_Expecter

func (*FileReader) Execute

func (_m *FileReader) Execute(path string) ([]byte, error)

Execute provides a mock function with given fields: path

type FileReader_Execute_Call

type FileReader_Execute_Call struct {
	*mock.Call
}

FileReader_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*FileReader_Execute_Call) Return

func (*FileReader_Execute_Call) Run

func (_c *FileReader_Execute_Call) Run(run func(path string)) *FileReader_Execute_Call

func (*FileReader_Execute_Call) RunAndReturn

func (_c *FileReader_Execute_Call) RunAndReturn(run func(string) ([]byte, error)) *FileReader_Execute_Call

type FileReader_Expecter

type FileReader_Expecter struct {
	// contains filtered or unexported fields
}

func (*FileReader_Expecter) Execute

func (_e *FileReader_Expecter) Execute(path interface{}) *FileReader_Execute_Call

Execute is a helper method to define mock.On call

  • path string

type Marshaller

type Marshaller struct {
	mock.Mock
}

Marshaller is an autogenerated mock type for the Marshaller type

func NewMarshaller

func NewMarshaller(t interface {
	mock.TestingT
	Cleanup(func())
}) *Marshaller

NewMarshaller creates a new instance of Marshaller. 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 (*Marshaller) EXPECT

func (_m *Marshaller) EXPECT() *Marshaller_Expecter

func (*Marshaller) Marshal

func (_m *Marshaller) Marshal(in interface{}) ([]byte, error)

Marshal provides a mock function with given fields: in

func (*Marshaller) Unmarshal

func (_m *Marshaller) Unmarshal(in []byte, out interface{}) error

Unmarshal provides a mock function with given fields: in, out

type Marshaller_Expecter

type Marshaller_Expecter struct {
	// contains filtered or unexported fields
}

func (*Marshaller_Expecter) Marshal

func (_e *Marshaller_Expecter) Marshal(in interface{}) *Marshaller_Marshal_Call

Marshal is a helper method to define mock.On call

  • in interface{}

func (*Marshaller_Expecter) Unmarshal

func (_e *Marshaller_Expecter) Unmarshal(in interface{}, out interface{}) *Marshaller_Unmarshal_Call

Unmarshal is a helper method to define mock.On call

  • in []byte
  • out interface{}

type Marshaller_Marshal_Call

type Marshaller_Marshal_Call struct {
	*mock.Call
}

Marshaller_Marshal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Marshal'

func (*Marshaller_Marshal_Call) Return

func (*Marshaller_Marshal_Call) Run

func (_c *Marshaller_Marshal_Call) Run(run func(in interface{})) *Marshaller_Marshal_Call

func (*Marshaller_Marshal_Call) RunAndReturn

func (_c *Marshaller_Marshal_Call) RunAndReturn(run func(interface{}) ([]byte, error)) *Marshaller_Marshal_Call

type Marshaller_Unmarshal_Call

type Marshaller_Unmarshal_Call struct {
	*mock.Call
}

Marshaller_Unmarshal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unmarshal'

func (*Marshaller_Unmarshal_Call) Return

func (*Marshaller_Unmarshal_Call) Run

func (_c *Marshaller_Unmarshal_Call) Run(run func(in []byte, out interface{})) *Marshaller_Unmarshal_Call

func (*Marshaller_Unmarshal_Call) RunAndReturn

func (_c *Marshaller_Unmarshal_Call) RunAndReturn(run func([]byte, interface{}) error) *Marshaller_Unmarshal_Call

type Parser

type Parser struct {
	mock.Mock
}

Parser is an autogenerated mock type for the Parser type

func NewParser

func NewParser(t interface {
	mock.TestingT
	Cleanup(func())
}) *Parser

NewParser creates a new instance of Parser. 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 (*Parser) EXPECT

func (_m *Parser) EXPECT() *Parser_Expecter

func (*Parser) Execute

func (_m *Parser) Execute(in []byte, out interface{}) error

Execute provides a mock function with given fields: in, out

type Parser_Execute_Call

type Parser_Execute_Call struct {
	*mock.Call
}

Parser_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*Parser_Execute_Call) Return

func (*Parser_Execute_Call) Run

func (_c *Parser_Execute_Call) Run(run func(in []byte, out interface{})) *Parser_Execute_Call

func (*Parser_Execute_Call) RunAndReturn

func (_c *Parser_Execute_Call) RunAndReturn(run func([]byte, interface{}) error) *Parser_Execute_Call

type Parser_Expecter

type Parser_Expecter struct {
	// contains filtered or unexported fields
}

func (*Parser_Expecter) Execute

func (_e *Parser_Expecter) Execute(in interface{}, out interface{}) *Parser_Execute_Call

Execute is a helper method to define mock.On call

  • in []byte
  • out interface{}

type PromptResolver

type PromptResolver struct {
	mock.Mock
}

PromptResolver is an autogenerated mock type for the PromptResolver type

func NewPromptResolver

func NewPromptResolver(t interface {
	mock.TestingT
	Cleanup(func())
}) *PromptResolver

NewPromptResolver creates a new instance of PromptResolver. 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 (*PromptResolver) EXPECT

func (*PromptResolver) ResolvePrompt

func (_m *PromptResolver) ResolvePrompt() string

ResolvePrompt provides a mock function with given fields:

type PromptResolver_Expecter

type PromptResolver_Expecter struct {
	// contains filtered or unexported fields
}

func (*PromptResolver_Expecter) ResolvePrompt

ResolvePrompt is a helper method to define mock.On call

type PromptResolver_ResolvePrompt_Call

type PromptResolver_ResolvePrompt_Call struct {
	*mock.Call
}

PromptResolver_ResolvePrompt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResolvePrompt'

func (*PromptResolver_ResolvePrompt_Call) Return

func (*PromptResolver_ResolvePrompt_Call) Run

func (*PromptResolver_ResolvePrompt_Call) RunAndReturn

type SystemMessageGenerator

type SystemMessageGenerator struct {
	mock.Mock
}

SystemMessageGenerator is an autogenerated mock type for the SystemMessageGenerator type

func NewSystemMessageGenerator

func NewSystemMessageGenerator(t interface {
	mock.TestingT
	Cleanup(func())
}) *SystemMessageGenerator

NewSystemMessageGenerator creates a new instance of SystemMessageGenerator. 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 (*SystemMessageGenerator) EXPECT

func (*SystemMessageGenerator) GenerateSystemMessage

func (_m *SystemMessageGenerator) GenerateSystemMessage() (string, error)

GenerateSystemMessage provides a mock function with given fields:

type SystemMessageGenerator_Expecter

type SystemMessageGenerator_Expecter struct {
	// contains filtered or unexported fields
}

func (*SystemMessageGenerator_Expecter) GenerateSystemMessage

GenerateSystemMessage is a helper method to define mock.On call

type SystemMessageGenerator_GenerateSystemMessage_Call

type SystemMessageGenerator_GenerateSystemMessage_Call struct {
	*mock.Call
}

SystemMessageGenerator_GenerateSystemMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateSystemMessage'

func (*SystemMessageGenerator_GenerateSystemMessage_Call) Return

func (*SystemMessageGenerator_GenerateSystemMessage_Call) Run

func (*SystemMessageGenerator_GenerateSystemMessage_Call) RunAndReturn

type TemplateLocator

type TemplateLocator struct {
	mock.Mock
}

TemplateLocator is an autogenerated mock type for the TemplateLocator type

func NewTemplateLocator

func NewTemplateLocator(t interface {
	mock.TestingT
	Cleanup(func())
}) *TemplateLocator

NewTemplateLocator creates a new instance of TemplateLocator. 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 (*TemplateLocator) EXPECT

func (*TemplateLocator) GetTemplate

func (_m *TemplateLocator) GetTemplate(name string) (*templates.Template, error)

GetTemplate provides a mock function with given fields: name

func (*TemplateLocator) ListTemplates

func (_m *TemplateLocator) ListTemplates() ([]templates.Template, error)

ListTemplates provides a mock function with given fields:

type TemplateLocator_Expecter

type TemplateLocator_Expecter struct {
	// contains filtered or unexported fields
}

func (*TemplateLocator_Expecter) GetTemplate

func (_e *TemplateLocator_Expecter) GetTemplate(name interface{}) *TemplateLocator_GetTemplate_Call

GetTemplate is a helper method to define mock.On call

  • name string

func (*TemplateLocator_Expecter) ListTemplates

ListTemplates is a helper method to define mock.On call

type TemplateLocator_GetTemplate_Call

type TemplateLocator_GetTemplate_Call struct {
	*mock.Call
}

TemplateLocator_GetTemplate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTemplate'

func (*TemplateLocator_GetTemplate_Call) Return

func (*TemplateLocator_GetTemplate_Call) Run

func (*TemplateLocator_GetTemplate_Call) RunAndReturn

type TemplateLocator_ListTemplates_Call

type TemplateLocator_ListTemplates_Call struct {
	*mock.Call
}

TemplateLocator_ListTemplates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTemplates'

func (*TemplateLocator_ListTemplates_Call) Return

func (*TemplateLocator_ListTemplates_Call) Run

func (*TemplateLocator_ListTemplates_Call) RunAndReturn

type UsernameRetriever

type UsernameRetriever struct {
	mock.Mock
}

UsernameRetriever is an autogenerated mock type for the UsernameRetriever type

func NewUsernameRetriever

func NewUsernameRetriever(t interface {
	mock.TestingT
	Cleanup(func())
}) *UsernameRetriever

NewUsernameRetriever creates a new instance of UsernameRetriever. 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 (*UsernameRetriever) EXPECT

func (*UsernameRetriever) Execute

func (_m *UsernameRetriever) Execute() (*user.User, error)

Execute provides a mock function with given fields:

type UsernameRetriever_Execute_Call

type UsernameRetriever_Execute_Call struct {
	*mock.Call
}

UsernameRetriever_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*UsernameRetriever_Execute_Call) Return

func (*UsernameRetriever_Execute_Call) Run

func (*UsernameRetriever_Execute_Call) RunAndReturn

type UsernameRetriever_Expecter

type UsernameRetriever_Expecter struct {
	// contains filtered or unexported fields
}

func (*UsernameRetriever_Expecter) Execute

Execute is a helper method to define mock.On call

type Validator

type Validator struct {
	mock.Mock
}

Validator is an autogenerated mock type for the Validator type

func NewValidator

func NewValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Validator

NewValidator creates a new instance of Validator. 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 (*Validator) EXPECT

func (_m *Validator) EXPECT() *Validator_Expecter

func (*Validator) Execute

func (_m *Validator) Execute(cfg *config.Config) error

Execute provides a mock function with given fields: cfg

type Validator_Execute_Call

type Validator_Execute_Call struct {
	*mock.Call
}

Validator_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*Validator_Execute_Call) Return

func (*Validator_Execute_Call) Run

func (*Validator_Execute_Call) RunAndReturn

func (_c *Validator_Execute_Call) RunAndReturn(run func(*config.Config) error) *Validator_Execute_Call

type Validator_Expecter

type Validator_Expecter struct {
	// contains filtered or unexported fields
}

func (*Validator_Expecter) Execute

func (_e *Validator_Expecter) Execute(cfg interface{}) *Validator_Execute_Call

Execute is a helper method to define mock.On call

  • cfg *config.Config

Jump to

Keyboard shortcuts

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