config

package
v1.14.7 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func NewConfig

func NewConfig(t interface {
	mock.TestingT
	Cleanup(func())
}) *Config

NewConfig creates a new instance of Config. 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 (*Config) Add

func (_m *Config) Add(name string, configuration interface{})

Add provides a mock function with given fields: name, configuration

func (*Config) EXPECT

func (_m *Config) EXPECT() *Config_Expecter

func (*Config) Env

func (_m *Config) Env(envName string, defaultValue ...interface{}) interface{}

Env provides a mock function with given fields: envName, defaultValue

func (*Config) Get

func (_m *Config) Get(path string, defaultValue ...interface{}) interface{}

Get provides a mock function with given fields: path, defaultValue

func (*Config) GetBool

func (_m *Config) GetBool(path string, defaultValue ...interface{}) bool

GetBool provides a mock function with given fields: path, defaultValue

func (*Config) GetInt

func (_m *Config) GetInt(path string, defaultValue ...interface{}) int

GetInt provides a mock function with given fields: path, defaultValue

func (*Config) GetString

func (_m *Config) GetString(path string, defaultValue ...interface{}) string

GetString provides a mock function with given fields: path, defaultValue

type Config_Add_Call

type Config_Add_Call struct {
	*mock.Call
}

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

func (*Config_Add_Call) Return

func (_c *Config_Add_Call) Return() *Config_Add_Call

func (*Config_Add_Call) Run

func (_c *Config_Add_Call) Run(run func(name string, configuration interface{})) *Config_Add_Call

func (*Config_Add_Call) RunAndReturn

func (_c *Config_Add_Call) RunAndReturn(run func(string, interface{})) *Config_Add_Call

type Config_Env_Call

type Config_Env_Call struct {
	*mock.Call
}

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

func (*Config_Env_Call) Return

func (_c *Config_Env_Call) Return(_a0 interface{}) *Config_Env_Call

func (*Config_Env_Call) Run

func (_c *Config_Env_Call) Run(run func(envName string, defaultValue ...interface{})) *Config_Env_Call

func (*Config_Env_Call) RunAndReturn

func (_c *Config_Env_Call) RunAndReturn(run func(string, ...interface{}) interface{}) *Config_Env_Call

type Config_Expecter

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

func (*Config_Expecter) Add

func (_e *Config_Expecter) Add(name interface{}, configuration interface{}) *Config_Add_Call

Add is a helper method to define mock.On call

  • name string
  • configuration interface{}

func (*Config_Expecter) Env

func (_e *Config_Expecter) Env(envName interface{}, defaultValue ...interface{}) *Config_Env_Call

Env is a helper method to define mock.On call

  • envName string
  • defaultValue ...interface{}

func (*Config_Expecter) Get

func (_e *Config_Expecter) Get(path interface{}, defaultValue ...interface{}) *Config_Get_Call

Get is a helper method to define mock.On call

  • path string
  • defaultValue ...interface{}

func (*Config_Expecter) GetBool

func (_e *Config_Expecter) GetBool(path interface{}, defaultValue ...interface{}) *Config_GetBool_Call

GetBool is a helper method to define mock.On call

  • path string
  • defaultValue ...interface{}

func (*Config_Expecter) GetInt

func (_e *Config_Expecter) GetInt(path interface{}, defaultValue ...interface{}) *Config_GetInt_Call

GetInt is a helper method to define mock.On call

  • path string
  • defaultValue ...interface{}

func (*Config_Expecter) GetString

func (_e *Config_Expecter) GetString(path interface{}, defaultValue ...interface{}) *Config_GetString_Call

GetString is a helper method to define mock.On call

  • path string
  • defaultValue ...interface{}

type Config_GetBool_Call

type Config_GetBool_Call struct {
	*mock.Call
}

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

func (*Config_GetBool_Call) Return

func (_c *Config_GetBool_Call) Return(_a0 bool) *Config_GetBool_Call

func (*Config_GetBool_Call) Run

func (_c *Config_GetBool_Call) Run(run func(path string, defaultValue ...interface{})) *Config_GetBool_Call

func (*Config_GetBool_Call) RunAndReturn

func (_c *Config_GetBool_Call) RunAndReturn(run func(string, ...interface{}) bool) *Config_GetBool_Call

type Config_GetInt_Call

type Config_GetInt_Call struct {
	*mock.Call
}

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

func (*Config_GetInt_Call) Return

func (_c *Config_GetInt_Call) Return(_a0 int) *Config_GetInt_Call

func (*Config_GetInt_Call) Run

func (_c *Config_GetInt_Call) Run(run func(path string, defaultValue ...interface{})) *Config_GetInt_Call

func (*Config_GetInt_Call) RunAndReturn

func (_c *Config_GetInt_Call) RunAndReturn(run func(string, ...interface{}) int) *Config_GetInt_Call

type Config_GetString_Call

type Config_GetString_Call struct {
	*mock.Call
}

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

func (*Config_GetString_Call) Return

func (*Config_GetString_Call) Run

func (_c *Config_GetString_Call) Run(run func(path string, defaultValue ...interface{})) *Config_GetString_Call

func (*Config_GetString_Call) RunAndReturn

func (_c *Config_GetString_Call) RunAndReturn(run func(string, ...interface{}) string) *Config_GetString_Call

type Config_Get_Call

type Config_Get_Call struct {
	*mock.Call
}

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

func (*Config_Get_Call) Return

func (_c *Config_Get_Call) Return(_a0 interface{}) *Config_Get_Call

func (*Config_Get_Call) Run

func (_c *Config_Get_Call) Run(run func(path string, defaultValue ...interface{})) *Config_Get_Call

func (*Config_Get_Call) RunAndReturn

func (_c *Config_Get_Call) RunAndReturn(run func(string, ...interface{}) interface{}) *Config_Get_Call

Jump to

Keyboard shortcuts

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