mocks

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader struct {
	mock.Mock
}

Loader is an autogenerated mock type for the Loader type

func NewLoader

func NewLoader(t interface {
	mock.TestingT
	Cleanup(func())
}) *Loader

NewLoader creates a new instance of Loader. 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 (*Loader) AddConfigPath

func (_m *Loader) AddConfigPath(path string)

AddConfigPath provides a mock function with given fields: path

func (*Loader) AutomaticEnv

func (_m *Loader) AutomaticEnv()

AutomaticEnv provides a mock function with no fields

func (*Loader) BindEnv added in v0.1.14

func (_m *Loader) BindEnv(key string, envVar string) error

BindEnv provides a mock function with given fields: key, envVar

func (*Loader) ConfigFileUsed

func (_m *Loader) ConfigFileUsed() string

ConfigFileUsed provides a mock function with no fields

func (*Loader) EXPECT

func (_m *Loader) EXPECT() *Loader_Expecter

func (*Loader) ReadInConfig

func (_m *Loader) ReadInConfig() error

ReadInConfig provides a mock function with no fields

func (*Loader) SetConfigName

func (_m *Loader) SetConfigName(name string)

SetConfigName provides a mock function with given fields: name

func (*Loader) SetConfigType

func (_m *Loader) SetConfigType(configType string)

SetConfigType provides a mock function with given fields: configType

func (*Loader) SetEnvKeyReplacer

func (_m *Loader) SetEnvKeyReplacer(replacer *strings.Replacer)

SetEnvKeyReplacer provides a mock function with given fields: replacer

func (*Loader) SetEnvPrefix

func (_m *Loader) SetEnvPrefix(prefix string)

SetEnvPrefix provides a mock function with given fields: prefix

func (*Loader) Unmarshal

func (_m *Loader) Unmarshal(rawVal interface{}) error

Unmarshal provides a mock function with given fields: rawVal

type Loader_AddConfigPath_Call

type Loader_AddConfigPath_Call struct {
	*mock.Call
}

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

func (*Loader_AddConfigPath_Call) Return

func (*Loader_AddConfigPath_Call) Run

func (*Loader_AddConfigPath_Call) RunAndReturn

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

type Loader_AutomaticEnv_Call

type Loader_AutomaticEnv_Call struct {
	*mock.Call
}

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

func (*Loader_AutomaticEnv_Call) Return

func (*Loader_AutomaticEnv_Call) Run

func (*Loader_AutomaticEnv_Call) RunAndReturn

func (_c *Loader_AutomaticEnv_Call) RunAndReturn(run func()) *Loader_AutomaticEnv_Call

type Loader_BindEnv_Call added in v0.1.14

type Loader_BindEnv_Call struct {
	*mock.Call
}

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

func (*Loader_BindEnv_Call) Return added in v0.1.14

func (*Loader_BindEnv_Call) Run added in v0.1.14

func (_c *Loader_BindEnv_Call) Run(run func(key string, envVar string)) *Loader_BindEnv_Call

func (*Loader_BindEnv_Call) RunAndReturn added in v0.1.14

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

type Loader_ConfigFileUsed_Call

type Loader_ConfigFileUsed_Call struct {
	*mock.Call
}

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

func (*Loader_ConfigFileUsed_Call) Return

func (*Loader_ConfigFileUsed_Call) Run

func (*Loader_ConfigFileUsed_Call) RunAndReturn

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

type Loader_Expecter

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

func (*Loader_Expecter) AddConfigPath

func (_e *Loader_Expecter) AddConfigPath(path interface{}) *Loader_AddConfigPath_Call

AddConfigPath is a helper method to define mock.On call

  • path string

func (*Loader_Expecter) AutomaticEnv

func (_e *Loader_Expecter) AutomaticEnv() *Loader_AutomaticEnv_Call

AutomaticEnv is a helper method to define mock.On call

func (*Loader_Expecter) BindEnv added in v0.1.14

func (_e *Loader_Expecter) BindEnv(key interface{}, envVar interface{}) *Loader_BindEnv_Call

BindEnv is a helper method to define mock.On call

  • key string
  • envVar string

func (*Loader_Expecter) ConfigFileUsed

func (_e *Loader_Expecter) ConfigFileUsed() *Loader_ConfigFileUsed_Call

ConfigFileUsed is a helper method to define mock.On call

func (*Loader_Expecter) ReadInConfig

func (_e *Loader_Expecter) ReadInConfig() *Loader_ReadInConfig_Call

ReadInConfig is a helper method to define mock.On call

func (*Loader_Expecter) SetConfigName

func (_e *Loader_Expecter) SetConfigName(name interface{}) *Loader_SetConfigName_Call

SetConfigName is a helper method to define mock.On call

  • name string

func (*Loader_Expecter) SetConfigType

func (_e *Loader_Expecter) SetConfigType(configType interface{}) *Loader_SetConfigType_Call

SetConfigType is a helper method to define mock.On call

  • configType string

func (*Loader_Expecter) SetEnvKeyReplacer

func (_e *Loader_Expecter) SetEnvKeyReplacer(replacer interface{}) *Loader_SetEnvKeyReplacer_Call

SetEnvKeyReplacer is a helper method to define mock.On call

  • replacer *strings.Replacer

func (*Loader_Expecter) SetEnvPrefix

func (_e *Loader_Expecter) SetEnvPrefix(prefix interface{}) *Loader_SetEnvPrefix_Call

SetEnvPrefix is a helper method to define mock.On call

  • prefix string

func (*Loader_Expecter) Unmarshal

func (_e *Loader_Expecter) Unmarshal(rawVal interface{}) *Loader_Unmarshal_Call

Unmarshal is a helper method to define mock.On call

  • rawVal interface{}

type Loader_ReadInConfig_Call

type Loader_ReadInConfig_Call struct {
	*mock.Call
}

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

func (*Loader_ReadInConfig_Call) Return

func (*Loader_ReadInConfig_Call) Run

func (*Loader_ReadInConfig_Call) RunAndReturn

func (_c *Loader_ReadInConfig_Call) RunAndReturn(run func() error) *Loader_ReadInConfig_Call

type Loader_SetConfigName_Call

type Loader_SetConfigName_Call struct {
	*mock.Call
}

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

func (*Loader_SetConfigName_Call) Return

func (*Loader_SetConfigName_Call) Run

func (*Loader_SetConfigName_Call) RunAndReturn

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

type Loader_SetConfigType_Call

type Loader_SetConfigType_Call struct {
	*mock.Call
}

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

func (*Loader_SetConfigType_Call) Return

func (*Loader_SetConfigType_Call) Run

func (_c *Loader_SetConfigType_Call) Run(run func(configType string)) *Loader_SetConfigType_Call

func (*Loader_SetConfigType_Call) RunAndReturn

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

type Loader_SetEnvKeyReplacer_Call

type Loader_SetEnvKeyReplacer_Call struct {
	*mock.Call
}

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

func (*Loader_SetEnvKeyReplacer_Call) Return

func (*Loader_SetEnvKeyReplacer_Call) Run

func (*Loader_SetEnvKeyReplacer_Call) RunAndReturn

type Loader_SetEnvPrefix_Call

type Loader_SetEnvPrefix_Call struct {
	*mock.Call
}

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

func (*Loader_SetEnvPrefix_Call) Return

func (*Loader_SetEnvPrefix_Call) Run

func (_c *Loader_SetEnvPrefix_Call) Run(run func(prefix string)) *Loader_SetEnvPrefix_Call

func (*Loader_SetEnvPrefix_Call) RunAndReturn

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

type Loader_Unmarshal_Call

type Loader_Unmarshal_Call struct {
	*mock.Call
}

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

func (*Loader_Unmarshal_Call) Return

func (*Loader_Unmarshal_Call) Run

func (_c *Loader_Unmarshal_Call) Run(run func(rawVal interface{})) *Loader_Unmarshal_Call

func (*Loader_Unmarshal_Call) RunAndReturn

func (_c *Loader_Unmarshal_Call) RunAndReturn(run func(interface{}) error) *Loader_Unmarshal_Call

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *Provider

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

func (_m *Provider) EXPECT() *Provider_Expecter

func (*Provider) InitConfig

func (_m *Provider) InitConfig() (config.Config, error)

InitConfig provides a mock function with no fields

type Provider_Expecter

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

func (*Provider_Expecter) InitConfig

func (_e *Provider_Expecter) InitConfig() *Provider_InitConfig_Call

InitConfig is a helper method to define mock.On call

type Provider_InitConfig_Call

type Provider_InitConfig_Call struct {
	*mock.Call
}

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

func (*Provider_InitConfig_Call) Return

func (*Provider_InitConfig_Call) Run

func (*Provider_InitConfig_Call) RunAndReturn

func (_c *Provider_InitConfig_Call) RunAndReturn(run func() (config.Config, error)) *Provider_InitConfig_Call

Jump to

Keyboard shortcuts

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