loader

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLoadedConfig

type MockLoadedConfig struct {
	mock.Mock
}

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 (*MockLoadedConfig) Path

func (_m *MockLoadedConfig) Path() string

Path provides a mock function with given fields:

type MockLoadedConfig_Data_Call

type MockLoadedConfig_Data_Call struct {
	*mock.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 (*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

Data is a helper method to define mock.On call

func (*MockLoadedConfig_Expecter) Path

Path is a helper method to define mock.On call

type MockLoadedConfig_Path_Call

type MockLoadedConfig_Path_Call struct {
	*mock.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 (*MockLoadedConfig_Path_Call) Run

func (*MockLoadedConfig_Path_Call) RunAndReturn

func (_c *MockLoadedConfig_Path_Call) RunAndReturn(run func() string) *MockLoadedConfig_Path_Call

type MockLoader

type MockLoader struct {
	mock.Mock
}

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

type MockLoader_GlobConfigs_Call struct {
	*mock.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 (*MockLoader_GlobConfigs_Call) Run

func (_c *MockLoader_GlobConfigs_Call) Run(run func(pattern string, cwd string)) *MockLoader_GlobConfigs_Call

func (*MockLoader_GlobConfigs_Call) RunAndReturn

type MockLoader_LoadConfig_Call

type MockLoader_LoadConfig_Call struct {
	*mock.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 (*MockLoader_LoadConfig_Call) Run

func (*MockLoader_LoadConfig_Call) RunAndReturn

type MockLoader_LoadConfigs_Call

type MockLoader_LoadConfigs_Call struct {
	*mock.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 (*MockLoader_LoadConfigs_Call) Run

func (*MockLoader_LoadConfigs_Call) RunAndReturn

Jump to

Keyboard shortcuts

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