Documentation ¶
Index ¶
- type MockLoadedConfig
- type MockLoadedConfig_Data_Call
- type MockLoadedConfig_Expecter
- type MockLoadedConfig_Path_Call
- type MockLoader
- func (_m *MockLoader) EXPECT() *MockLoader_Expecter
- func (_m *MockLoader) GlobConfigs(pattern string, cwd string) ([]loader.LoadedConfig, error)
- func (_m *MockLoader) LoadConfig(path string) (loader.LoadedConfig, error)
- func (_m *MockLoader) LoadConfigs(paths []string) ([]loader.LoadedConfig, error)
- type MockLoader_Expecter
- type MockLoader_GlobConfigs_Call
- func (_c *MockLoader_GlobConfigs_Call) Return(_a0 []loader.LoadedConfig, _a1 error) *MockLoader_GlobConfigs_Call
- func (_c *MockLoader_GlobConfigs_Call) Run(run func(pattern string, cwd string)) *MockLoader_GlobConfigs_Call
- func (_c *MockLoader_GlobConfigs_Call) RunAndReturn(run func(string, string) ([]loader.LoadedConfig, error)) *MockLoader_GlobConfigs_Call
- type MockLoader_LoadConfig_Call
- func (_c *MockLoader_LoadConfig_Call) Return(_a0 loader.LoadedConfig, _a1 error) *MockLoader_LoadConfig_Call
- func (_c *MockLoader_LoadConfig_Call) Run(run func(path string)) *MockLoader_LoadConfig_Call
- func (_c *MockLoader_LoadConfig_Call) RunAndReturn(run func(string) (loader.LoadedConfig, error)) *MockLoader_LoadConfig_Call
- type MockLoader_LoadConfigs_Call
- func (_c *MockLoader_LoadConfigs_Call) Return(_a0 []loader.LoadedConfig, _a1 error) *MockLoader_LoadConfigs_Call
- func (_c *MockLoader_LoadConfigs_Call) Run(run func(paths []string)) *MockLoader_LoadConfigs_Call
- func (_c *MockLoader_LoadConfigs_Call) RunAndReturn(run func([]string) ([]loader.LoadedConfig, error)) *MockLoader_LoadConfigs_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLoadedConfig ¶
MockLoadedConfig is an autogenerated mock type for the LoadedConfig type
func NewMockLoadedConfig ¶
func NewMockLoadedConfig(t interface { mock.TestingT Cleanup(func()) }) *MockLoadedConfig
NewMockLoadedConfig creates a new instance of MockLoadedConfig. 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 (*MockLoadedConfig) Data ¶
func (_m *MockLoadedConfig) Data() map[string]interface{}
Data provides a mock function with given fields:
func (*MockLoadedConfig) EXPECT ¶
func (_m *MockLoadedConfig) EXPECT() *MockLoadedConfig_Expecter
func (*MockLoadedConfig) Path ¶
func (_m *MockLoadedConfig) Path() string
Path provides a mock function with given fields:
type MockLoadedConfig_Data_Call ¶
MockLoadedConfig_Data_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Data'
func (*MockLoadedConfig_Data_Call) Return ¶
func (_c *MockLoadedConfig_Data_Call) Return(_a0 map[string]interface{}) *MockLoadedConfig_Data_Call
func (*MockLoadedConfig_Data_Call) Run ¶
func (_c *MockLoadedConfig_Data_Call) Run(run func()) *MockLoadedConfig_Data_Call
func (*MockLoadedConfig_Data_Call) RunAndReturn ¶
func (_c *MockLoadedConfig_Data_Call) RunAndReturn(run func() map[string]interface{}) *MockLoadedConfig_Data_Call
type MockLoadedConfig_Expecter ¶
type MockLoadedConfig_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLoadedConfig_Expecter) Data ¶
func (_e *MockLoadedConfig_Expecter) Data() *MockLoadedConfig_Data_Call
Data is a helper method to define mock.On call
func (*MockLoadedConfig_Expecter) Path ¶
func (_e *MockLoadedConfig_Expecter) Path() *MockLoadedConfig_Path_Call
Path is a helper method to define mock.On call
type MockLoadedConfig_Path_Call ¶
MockLoadedConfig_Path_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Path'
func (*MockLoadedConfig_Path_Call) Return ¶
func (_c *MockLoadedConfig_Path_Call) Return(_a0 string) *MockLoadedConfig_Path_Call
func (*MockLoadedConfig_Path_Call) Run ¶
func (_c *MockLoadedConfig_Path_Call) Run(run func()) *MockLoadedConfig_Path_Call
func (*MockLoadedConfig_Path_Call) RunAndReturn ¶
func (_c *MockLoadedConfig_Path_Call) RunAndReturn(run func() string) *MockLoadedConfig_Path_Call
type MockLoader ¶
MockLoader is an autogenerated mock type for the Loader type
func NewMockLoader ¶
func NewMockLoader(t interface { mock.TestingT Cleanup(func()) }) *MockLoader
NewMockLoader creates a new instance of MockLoader. 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 (*MockLoader) EXPECT ¶
func (_m *MockLoader) EXPECT() *MockLoader_Expecter
func (*MockLoader) GlobConfigs ¶
func (_m *MockLoader) GlobConfigs(pattern string, cwd string) ([]loader.LoadedConfig, error)
GlobConfigs provides a mock function with given fields: pattern, cwd
func (*MockLoader) LoadConfig ¶
func (_m *MockLoader) LoadConfig(path string) (loader.LoadedConfig, error)
LoadConfig provides a mock function with given fields: path
func (*MockLoader) LoadConfigs ¶
func (_m *MockLoader) LoadConfigs(paths []string) ([]loader.LoadedConfig, error)
LoadConfigs provides a mock function with given fields: paths
type MockLoader_Expecter ¶
type MockLoader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLoader_Expecter) GlobConfigs ¶
func (_e *MockLoader_Expecter) GlobConfigs(pattern interface{}, cwd interface{}) *MockLoader_GlobConfigs_Call
GlobConfigs is a helper method to define mock.On call
- pattern string
- cwd string
func (*MockLoader_Expecter) LoadConfig ¶
func (_e *MockLoader_Expecter) LoadConfig(path interface{}) *MockLoader_LoadConfig_Call
LoadConfig is a helper method to define mock.On call
- path string
func (*MockLoader_Expecter) LoadConfigs ¶
func (_e *MockLoader_Expecter) LoadConfigs(paths interface{}) *MockLoader_LoadConfigs_Call
LoadConfigs is a helper method to define mock.On call
- paths []string
type MockLoader_GlobConfigs_Call ¶
MockLoader_GlobConfigs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GlobConfigs'
func (*MockLoader_GlobConfigs_Call) Return ¶
func (_c *MockLoader_GlobConfigs_Call) Return(_a0 []loader.LoadedConfig, _a1 error) *MockLoader_GlobConfigs_Call
func (*MockLoader_GlobConfigs_Call) Run ¶
func (_c *MockLoader_GlobConfigs_Call) Run(run func(pattern string, cwd string)) *MockLoader_GlobConfigs_Call
func (*MockLoader_GlobConfigs_Call) RunAndReturn ¶
func (_c *MockLoader_GlobConfigs_Call) RunAndReturn(run func(string, string) ([]loader.LoadedConfig, error)) *MockLoader_GlobConfigs_Call
type MockLoader_LoadConfig_Call ¶
MockLoader_LoadConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadConfig'
func (*MockLoader_LoadConfig_Call) Return ¶
func (_c *MockLoader_LoadConfig_Call) Return(_a0 loader.LoadedConfig, _a1 error) *MockLoader_LoadConfig_Call
func (*MockLoader_LoadConfig_Call) Run ¶
func (_c *MockLoader_LoadConfig_Call) Run(run func(path string)) *MockLoader_LoadConfig_Call
func (*MockLoader_LoadConfig_Call) RunAndReturn ¶
func (_c *MockLoader_LoadConfig_Call) RunAndReturn(run func(string) (loader.LoadedConfig, error)) *MockLoader_LoadConfig_Call
type MockLoader_LoadConfigs_Call ¶
MockLoader_LoadConfigs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadConfigs'
func (*MockLoader_LoadConfigs_Call) Return ¶
func (_c *MockLoader_LoadConfigs_Call) Return(_a0 []loader.LoadedConfig, _a1 error) *MockLoader_LoadConfigs_Call
func (*MockLoader_LoadConfigs_Call) Run ¶
func (_c *MockLoader_LoadConfigs_Call) Run(run func(paths []string)) *MockLoader_LoadConfigs_Call
func (*MockLoader_LoadConfigs_Call) RunAndReturn ¶
func (_c *MockLoader_LoadConfigs_Call) RunAndReturn(run func([]string) ([]loader.LoadedConfig, error)) *MockLoader_LoadConfigs_Call