Documentation ¶
Index ¶
- type APIKeyStorage
- type APIKeyStorage_ClearAPIKey_Call
- type APIKeyStorage_Expecter
- type APIKeyStorage_GetAPIKey_Call
- type APIKeyStorage_SetAPIKey_Call
- type ClientProvider
- type ClientProvider_Expecter
- type ClientProvider_NewClientFromConfig_Call
- func (_c *ClientProvider_NewClientFromConfig_Call) Return(_a0 *openai.Client, _a1 error) *ClientProvider_NewClientFromConfig_Call
- func (_c *ClientProvider_NewClientFromConfig_Call) Run(run func()) *ClientProvider_NewClientFromConfig_Call
- func (_c *ClientProvider_NewClientFromConfig_Call) RunAndReturn(run func() (*openai.Client, error)) *ClientProvider_NewClientFromConfig_Call
- type ConfigProvider
- func (_m *ConfigProvider) ClearConfig() error
- func (_m *ConfigProvider) EXPECT() *ConfigProvider_Expecter
- func (_m *ConfigProvider) GetConfig() (*config.Config, error)
- func (_m *ConfigProvider) GetConfigDir() (string, error)
- func (_m *ConfigProvider) NewFromConfigFile() (openai.ClientConfig, error)
- func (_m *ConfigProvider) SaveConfig(_a0 *config.Config) error
- type ConfigProvider_ClearConfig_Call
- type ConfigProvider_Expecter
- func (_e *ConfigProvider_Expecter) ClearConfig() *ConfigProvider_ClearConfig_Call
- func (_e *ConfigProvider_Expecter) GetConfigDir() *ConfigProvider_GetConfigDir_Call
- func (_e *ConfigProvider_Expecter) LoadConfig() *ConfigProvider_LoadConfig_Call
- func (_e *ConfigProvider_Expecter) NewFromConfigFile() *ConfigProvider_NewFromConfigFile_Call
- func (_e *ConfigProvider_Expecter) SaveConfig(_a0 interface{}) *ConfigProvider_SaveConfig_Call
- type ConfigProvider_GetConfigDir_Call
- func (_c *ConfigProvider_GetConfigDir_Call) Return(_a0 string, _a1 error) *ConfigProvider_GetConfigDir_Call
- func (_c *ConfigProvider_GetConfigDir_Call) Run(run func()) *ConfigProvider_GetConfigDir_Call
- func (_c *ConfigProvider_GetConfigDir_Call) RunAndReturn(run func() (string, error)) *ConfigProvider_GetConfigDir_Call
- type ConfigProvider_LoadConfig_Call
- func (_c *ConfigProvider_LoadConfig_Call) Return(_a0 *config.Config, _a1 error) *ConfigProvider_LoadConfig_Call
- func (_c *ConfigProvider_LoadConfig_Call) Run(run func()) *ConfigProvider_LoadConfig_Call
- func (_c *ConfigProvider_LoadConfig_Call) RunAndReturn(run func() (*config.Config, error)) *ConfigProvider_LoadConfig_Call
- type ConfigProvider_NewFromConfigFile_Call
- func (_c *ConfigProvider_NewFromConfigFile_Call) Return(_a0 openai.ClientConfig, _a1 error) *ConfigProvider_NewFromConfigFile_Call
- func (_c *ConfigProvider_NewFromConfigFile_Call) Run(run func()) *ConfigProvider_NewFromConfigFile_Call
- func (_c *ConfigProvider_NewFromConfigFile_Call) RunAndReturn(run func() (openai.ClientConfig, error)) *ConfigProvider_NewFromConfigFile_Call
- type ConfigProvider_SaveConfig_Call
- func (_c *ConfigProvider_SaveConfig_Call) Return(_a0 error) *ConfigProvider_SaveConfig_Call
- func (_c *ConfigProvider_SaveConfig_Call) Run(run func(_a0 *config.Config)) *ConfigProvider_SaveConfig_Call
- func (_c *ConfigProvider_SaveConfig_Call) RunAndReturn(run func(*config.Config) error) *ConfigProvider_SaveConfig_Call
- type ContextRetriever
- type ContextRetriever_Expecter
- type ContextRetriever_RetrieveContext_Call
- func (_c *ContextRetriever_RetrieveContext_Call) Return(_a0 string, _a1 error) *ContextRetriever_RetrieveContext_Call
- func (_c *ContextRetriever_RetrieveContext_Call) Run(run func()) *ContextRetriever_RetrieveContext_Call
- func (_c *ContextRetriever_RetrieveContext_Call) RunAndReturn(run func() (string, error)) *ContextRetriever_RetrieveContext_Call
- type FileManager
- type FileManager_Expecter
- type FileManager_Read_Call
- type FileManager_Write_Call
- func (_c *FileManager_Write_Call) Return(_a0 error) *FileManager_Write_Call
- func (_c *FileManager_Write_Call) Run(run func(path string, content []byte, perm fs.FileMode)) *FileManager_Write_Call
- func (_c *FileManager_Write_Call) RunAndReturn(run func(string, []byte, fs.FileMode) error) *FileManager_Write_Call
- type FileReader
- type FileReader_Execute_Call
- type FileReader_Expecter
- type Marshaller
- type Marshaller_Expecter
- type Marshaller_Marshal_Call
- type Marshaller_Unmarshal_Call
- func (_c *Marshaller_Unmarshal_Call) Return(_a0 error) *Marshaller_Unmarshal_Call
- func (_c *Marshaller_Unmarshal_Call) Run(run func(in []byte, out interface{})) *Marshaller_Unmarshal_Call
- func (_c *Marshaller_Unmarshal_Call) RunAndReturn(run func([]byte, interface{}) error) *Marshaller_Unmarshal_Call
- type Parser
- type Parser_Execute_Call
- type Parser_Expecter
- type PromptResolver
- type PromptResolver_Expecter
- type PromptResolver_ResolvePrompt_Call
- func (_c *PromptResolver_ResolvePrompt_Call) Return(_a0 string) *PromptResolver_ResolvePrompt_Call
- func (_c *PromptResolver_ResolvePrompt_Call) Run(run func()) *PromptResolver_ResolvePrompt_Call
- func (_c *PromptResolver_ResolvePrompt_Call) RunAndReturn(run func() string) *PromptResolver_ResolvePrompt_Call
- type SystemMessageGenerator
- type SystemMessageGenerator_Expecter
- type SystemMessageGenerator_GenerateSystemMessage_Call
- func (_c *SystemMessageGenerator_GenerateSystemMessage_Call) Return(_a0 string, _a1 error) *SystemMessageGenerator_GenerateSystemMessage_Call
- func (_c *SystemMessageGenerator_GenerateSystemMessage_Call) Run(run func()) *SystemMessageGenerator_GenerateSystemMessage_Call
- func (_c *SystemMessageGenerator_GenerateSystemMessage_Call) RunAndReturn(run func() (string, error)) *SystemMessageGenerator_GenerateSystemMessage_Call
- type TemplateLocator
- type TemplateLocator_Expecter
- type TemplateLocator_GetTemplate_Call
- func (_c *TemplateLocator_GetTemplate_Call) Return(_a0 *templates.Template, _a1 error) *TemplateLocator_GetTemplate_Call
- func (_c *TemplateLocator_GetTemplate_Call) Run(run func(name string)) *TemplateLocator_GetTemplate_Call
- func (_c *TemplateLocator_GetTemplate_Call) RunAndReturn(run func(string) (*templates.Template, error)) *TemplateLocator_GetTemplate_Call
- type TemplateLocator_ListTemplates_Call
- func (_c *TemplateLocator_ListTemplates_Call) Return(_a0 []templates.Template, _a1 error) *TemplateLocator_ListTemplates_Call
- func (_c *TemplateLocator_ListTemplates_Call) Run(run func()) *TemplateLocator_ListTemplates_Call
- func (_c *TemplateLocator_ListTemplates_Call) RunAndReturn(run func() ([]templates.Template, error)) *TemplateLocator_ListTemplates_Call
- type UsernameRetriever
- type UsernameRetriever_Execute_Call
- func (_c *UsernameRetriever_Execute_Call) Return(_a0 *user.User, _a1 error) *UsernameRetriever_Execute_Call
- func (_c *UsernameRetriever_Execute_Call) Run(run func()) *UsernameRetriever_Execute_Call
- func (_c *UsernameRetriever_Execute_Call) RunAndReturn(run func() (*user.User, error)) *UsernameRetriever_Execute_Call
- type UsernameRetriever_Expecter
- type Validator
- type Validator_Execute_Call
- type Validator_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyStorage ¶
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 ¶
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 (_c *APIKeyStorage_ClearAPIKey_Call) Return(_a0 error) *APIKeyStorage_ClearAPIKey_Call
func (*APIKeyStorage_ClearAPIKey_Call) Run ¶
func (_c *APIKeyStorage_ClearAPIKey_Call) Run(run func()) *APIKeyStorage_ClearAPIKey_Call
func (*APIKeyStorage_ClearAPIKey_Call) RunAndReturn ¶
func (_c *APIKeyStorage_ClearAPIKey_Call) RunAndReturn(run func() error) *APIKeyStorage_ClearAPIKey_Call
type APIKeyStorage_Expecter ¶
type APIKeyStorage_Expecter struct {
// contains filtered or unexported fields
}
func (*APIKeyStorage_Expecter) ClearAPIKey ¶
func (_e *APIKeyStorage_Expecter) ClearAPIKey() *APIKeyStorage_ClearAPIKey_Call
ClearAPIKey is a helper method to define mock.On call
func (*APIKeyStorage_Expecter) GetAPIKey ¶
func (_e *APIKeyStorage_Expecter) GetAPIKey() *APIKeyStorage_GetAPIKey_Call
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 ¶
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 (_c *APIKeyStorage_GetAPIKey_Call) Return(_a0 string, _a1 error) *APIKeyStorage_GetAPIKey_Call
func (*APIKeyStorage_GetAPIKey_Call) Run ¶
func (_c *APIKeyStorage_GetAPIKey_Call) Run(run func()) *APIKeyStorage_GetAPIKey_Call
func (*APIKeyStorage_GetAPIKey_Call) RunAndReturn ¶
func (_c *APIKeyStorage_GetAPIKey_Call) RunAndReturn(run func() (string, error)) *APIKeyStorage_GetAPIKey_Call
type APIKeyStorage_SetAPIKey_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 (_c *APIKeyStorage_SetAPIKey_Call) Return(_a0 error) *APIKeyStorage_SetAPIKey_Call
func (*APIKeyStorage_SetAPIKey_Call) Run ¶
func (_c *APIKeyStorage_SetAPIKey_Call) Run(run func(apiKey string)) *APIKeyStorage_SetAPIKey_Call
func (*APIKeyStorage_SetAPIKey_Call) RunAndReturn ¶
func (_c *APIKeyStorage_SetAPIKey_Call) RunAndReturn(run func(string) error) *APIKeyStorage_SetAPIKey_Call
type ClientProvider ¶
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 (_m *ClientProvider) EXPECT() *ClientProvider_Expecter
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 ¶
func (_e *ClientProvider_Expecter) NewClientFromConfig() *ClientProvider_NewClientFromConfig_Call
NewClientFromConfig is a helper method to define mock.On call
type ClientProvider_NewClientFromConfig_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 (_c *ClientProvider_NewClientFromConfig_Call) Return(_a0 *openai.Client, _a1 error) *ClientProvider_NewClientFromConfig_Call
func (*ClientProvider_NewClientFromConfig_Call) Run ¶
func (_c *ClientProvider_NewClientFromConfig_Call) Run(run func()) *ClientProvider_NewClientFromConfig_Call
func (*ClientProvider_NewClientFromConfig_Call) RunAndReturn ¶
func (_c *ClientProvider_NewClientFromConfig_Call) RunAndReturn(run func() (*openai.Client, error)) *ClientProvider_NewClientFromConfig_Call
type ConfigProvider ¶
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 (_m *ConfigProvider) EXPECT() *ConfigProvider_Expecter
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 ¶
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 (_c *ConfigProvider_ClearConfig_Call) Return(_a0 error) *ConfigProvider_ClearConfig_Call
func (*ConfigProvider_ClearConfig_Call) Run ¶
func (_c *ConfigProvider_ClearConfig_Call) Run(run func()) *ConfigProvider_ClearConfig_Call
func (*ConfigProvider_ClearConfig_Call) RunAndReturn ¶
func (_c *ConfigProvider_ClearConfig_Call) RunAndReturn(run func() error) *ConfigProvider_ClearConfig_Call
type ConfigProvider_Expecter ¶
type ConfigProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*ConfigProvider_Expecter) ClearConfig ¶
func (_e *ConfigProvider_Expecter) ClearConfig() *ConfigProvider_ClearConfig_Call
ClearConfig is a helper method to define mock.On call
func (*ConfigProvider_Expecter) GetConfigDir ¶
func (_e *ConfigProvider_Expecter) GetConfigDir() *ConfigProvider_GetConfigDir_Call
GetConfigDir is a helper method to define mock.On call
func (*ConfigProvider_Expecter) LoadConfig ¶
func (_e *ConfigProvider_Expecter) LoadConfig() *ConfigProvider_LoadConfig_Call
LoadConfig is a helper method to define mock.On call
func (*ConfigProvider_Expecter) NewFromConfigFile ¶
func (_e *ConfigProvider_Expecter) NewFromConfigFile() *ConfigProvider_NewFromConfigFile_Call
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 ¶
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 (_c *ConfigProvider_GetConfigDir_Call) Return(_a0 string, _a1 error) *ConfigProvider_GetConfigDir_Call
func (*ConfigProvider_GetConfigDir_Call) Run ¶
func (_c *ConfigProvider_GetConfigDir_Call) Run(run func()) *ConfigProvider_GetConfigDir_Call
func (*ConfigProvider_GetConfigDir_Call) RunAndReturn ¶
func (_c *ConfigProvider_GetConfigDir_Call) RunAndReturn(run func() (string, error)) *ConfigProvider_GetConfigDir_Call
type ConfigProvider_LoadConfig_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 (_c *ConfigProvider_LoadConfig_Call) Return(_a0 *config.Config, _a1 error) *ConfigProvider_LoadConfig_Call
func (*ConfigProvider_LoadConfig_Call) Run ¶
func (_c *ConfigProvider_LoadConfig_Call) Run(run func()) *ConfigProvider_LoadConfig_Call
func (*ConfigProvider_LoadConfig_Call) RunAndReturn ¶
func (_c *ConfigProvider_LoadConfig_Call) RunAndReturn(run func() (*config.Config, error)) *ConfigProvider_LoadConfig_Call
type ConfigProvider_NewFromConfigFile_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 (_c *ConfigProvider_NewFromConfigFile_Call) Return(_a0 openai.ClientConfig, _a1 error) *ConfigProvider_NewFromConfigFile_Call
func (*ConfigProvider_NewFromConfigFile_Call) Run ¶
func (_c *ConfigProvider_NewFromConfigFile_Call) Run(run func()) *ConfigProvider_NewFromConfigFile_Call
func (*ConfigProvider_NewFromConfigFile_Call) RunAndReturn ¶
func (_c *ConfigProvider_NewFromConfigFile_Call) RunAndReturn(run func() (openai.ClientConfig, error)) *ConfigProvider_NewFromConfigFile_Call
type ConfigProvider_SaveConfig_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 (_c *ConfigProvider_SaveConfig_Call) Return(_a0 error) *ConfigProvider_SaveConfig_Call
func (*ConfigProvider_SaveConfig_Call) Run ¶
func (_c *ConfigProvider_SaveConfig_Call) Run(run func(_a0 *config.Config)) *ConfigProvider_SaveConfig_Call
func (*ConfigProvider_SaveConfig_Call) RunAndReturn ¶
func (_c *ConfigProvider_SaveConfig_Call) RunAndReturn(run func(*config.Config) error) *ConfigProvider_SaveConfig_Call
type ContextRetriever ¶
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 (_m *ContextRetriever) EXPECT() *ContextRetriever_Expecter
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 ¶
func (_e *ContextRetriever_Expecter) RetrieveContext() *ContextRetriever_RetrieveContext_Call
RetrieveContext is a helper method to define mock.On call
type ContextRetriever_RetrieveContext_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 (_c *ContextRetriever_RetrieveContext_Call) Return(_a0 string, _a1 error) *ContextRetriever_RetrieveContext_Call
func (*ContextRetriever_RetrieveContext_Call) Run ¶
func (_c *ContextRetriever_RetrieveContext_Call) Run(run func()) *ContextRetriever_RetrieveContext_Call
func (*ContextRetriever_RetrieveContext_Call) RunAndReturn ¶
func (_c *ContextRetriever_RetrieveContext_Call) RunAndReturn(run func() (string, error)) *ContextRetriever_RetrieveContext_Call
type FileManager ¶
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
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 ¶
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 ¶
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 (_c *FileManager_Write_Call) Return(_a0 error) *FileManager_Write_Call
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 ¶
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
type FileReader_Execute_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 (_c *FileReader_Execute_Call) Return(_a0 []byte, _a1 error) *FileReader_Execute_Call
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 ¶
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 ¶
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 (_c *Marshaller_Marshal_Call) Return(_a0 []byte, _a1 error) *Marshaller_Marshal_Call
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 ¶
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 (_c *Marshaller_Unmarshal_Call) Return(_a0 error) *Marshaller_Unmarshal_Call
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 ¶
Parser is an autogenerated mock type for the Parser type
func NewParser ¶
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
type Parser_Execute_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 (_c *Parser_Execute_Call) Return(_a0 error) *Parser_Execute_Call
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 ¶
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 (_m *PromptResolver) EXPECT() *PromptResolver_Expecter
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 ¶
func (_e *PromptResolver_Expecter) ResolvePrompt() *PromptResolver_ResolvePrompt_Call
ResolvePrompt is a helper method to define mock.On call
type PromptResolver_ResolvePrompt_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 (_c *PromptResolver_ResolvePrompt_Call) Return(_a0 string) *PromptResolver_ResolvePrompt_Call
func (*PromptResolver_ResolvePrompt_Call) Run ¶
func (_c *PromptResolver_ResolvePrompt_Call) Run(run func()) *PromptResolver_ResolvePrompt_Call
func (*PromptResolver_ResolvePrompt_Call) RunAndReturn ¶
func (_c *PromptResolver_ResolvePrompt_Call) RunAndReturn(run func() string) *PromptResolver_ResolvePrompt_Call
type SystemMessageGenerator ¶
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 (_m *SystemMessageGenerator) EXPECT() *SystemMessageGenerator_Expecter
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 ¶
func (_e *SystemMessageGenerator_Expecter) GenerateSystemMessage() *SystemMessageGenerator_GenerateSystemMessage_Call
GenerateSystemMessage is a helper method to define mock.On call
type SystemMessageGenerator_GenerateSystemMessage_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 (_c *SystemMessageGenerator_GenerateSystemMessage_Call) Return(_a0 string, _a1 error) *SystemMessageGenerator_GenerateSystemMessage_Call
func (*SystemMessageGenerator_GenerateSystemMessage_Call) Run ¶
func (_c *SystemMessageGenerator_GenerateSystemMessage_Call) Run(run func()) *SystemMessageGenerator_GenerateSystemMessage_Call
func (*SystemMessageGenerator_GenerateSystemMessage_Call) RunAndReturn ¶
func (_c *SystemMessageGenerator_GenerateSystemMessage_Call) RunAndReturn(run func() (string, error)) *SystemMessageGenerator_GenerateSystemMessage_Call
type TemplateLocator ¶
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 (_m *TemplateLocator) EXPECT() *TemplateLocator_Expecter
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 ¶
func (_e *TemplateLocator_Expecter) ListTemplates() *TemplateLocator_ListTemplates_Call
ListTemplates is a helper method to define mock.On call
type TemplateLocator_GetTemplate_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 (_c *TemplateLocator_GetTemplate_Call) Return(_a0 *templates.Template, _a1 error) *TemplateLocator_GetTemplate_Call
func (*TemplateLocator_GetTemplate_Call) Run ¶
func (_c *TemplateLocator_GetTemplate_Call) Run(run func(name string)) *TemplateLocator_GetTemplate_Call
func (*TemplateLocator_GetTemplate_Call) RunAndReturn ¶
func (_c *TemplateLocator_GetTemplate_Call) RunAndReturn(run func(string) (*templates.Template, error)) *TemplateLocator_GetTemplate_Call
type TemplateLocator_ListTemplates_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 (_c *TemplateLocator_ListTemplates_Call) Return(_a0 []templates.Template, _a1 error) *TemplateLocator_ListTemplates_Call
func (*TemplateLocator_ListTemplates_Call) Run ¶
func (_c *TemplateLocator_ListTemplates_Call) Run(run func()) *TemplateLocator_ListTemplates_Call
func (*TemplateLocator_ListTemplates_Call) RunAndReturn ¶
func (_c *TemplateLocator_ListTemplates_Call) RunAndReturn(run func() ([]templates.Template, error)) *TemplateLocator_ListTemplates_Call
type UsernameRetriever ¶
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 (_m *UsernameRetriever) EXPECT() *UsernameRetriever_Expecter
type UsernameRetriever_Execute_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 (_c *UsernameRetriever_Execute_Call) Return(_a0 *user.User, _a1 error) *UsernameRetriever_Execute_Call
func (*UsernameRetriever_Execute_Call) Run ¶
func (_c *UsernameRetriever_Execute_Call) Run(run func()) *UsernameRetriever_Execute_Call
func (*UsernameRetriever_Execute_Call) RunAndReturn ¶
func (_c *UsernameRetriever_Execute_Call) RunAndReturn(run func() (*user.User, error)) *UsernameRetriever_Execute_Call
type UsernameRetriever_Expecter ¶
type UsernameRetriever_Expecter struct {
// contains filtered or unexported fields
}
func (*UsernameRetriever_Expecter) Execute ¶
func (_e *UsernameRetriever_Expecter) Execute() *UsernameRetriever_Execute_Call
Execute is a helper method to define mock.On call
type Validator ¶
Validator is an autogenerated mock type for the Validator type
func NewValidator ¶
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
type Validator_Execute_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 (_c *Validator_Execute_Call) Return(_a0 error) *Validator_Execute_Call
func (*Validator_Execute_Call) Run ¶
func (_c *Validator_Execute_Call) Run(run func(cfg *config.Config)) *Validator_Execute_Call
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