Documentation ¶
Index ¶
- type Config
- func (_m *Config) Add(name string, configuration interface{})
- func (_m *Config) EXPECT() *Config_Expecter
- func (_m *Config) Env(envName string, defaultValue ...interface{}) interface{}
- func (_m *Config) Get(path string, defaultValue ...interface{}) interface{}
- func (_m *Config) GetBool(path string, defaultValue ...interface{}) bool
- func (_m *Config) GetInt(path string, defaultValue ...interface{}) int
- func (_m *Config) GetString(path string, defaultValue ...interface{}) string
- type Config_Add_Call
- type Config_Env_Call
- type Config_Expecter
- func (_e *Config_Expecter) Add(name interface{}, configuration interface{}) *Config_Add_Call
- func (_e *Config_Expecter) Env(envName interface{}, defaultValue ...interface{}) *Config_Env_Call
- func (_e *Config_Expecter) Get(path interface{}, defaultValue ...interface{}) *Config_Get_Call
- func (_e *Config_Expecter) GetBool(path interface{}, defaultValue ...interface{}) *Config_GetBool_Call
- func (_e *Config_Expecter) GetInt(path interface{}, defaultValue ...interface{}) *Config_GetInt_Call
- func (_e *Config_Expecter) GetString(path interface{}, defaultValue ...interface{}) *Config_GetString_Call
- type Config_GetBool_Call
- type Config_GetInt_Call
- type Config_GetString_Call
- type Config_Get_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is an autogenerated mock type for the Config type
func NewConfig ¶
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) EXPECT ¶
func (_m *Config) EXPECT() *Config_Expecter
type Config_Add_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 ¶
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 ¶
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 ¶
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 ¶
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 (_c *Config_GetString_Call) Return(_a0 string) *Config_GetString_Call
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 ¶
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