mocks

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 4 Imported by: 0

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 mockConstructorTestingTNewConfig) *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.

func (*Config) AllKeys

func (_m *Config) AllKeys() []string

AllKeys provides a mock function with given fields:

func (*Config) AllSettings

func (_m *Config) AllSettings() map[string]interface{}

AllSettings provides a mock function with given fields:

func (*Config) EXPECT

func (_m *Config) EXPECT() *Config_Expecter

func (*Config) Get

func (_m *Config) Get(key string, optionalDefault ...interface{}) interface{}

Get provides a mock function with given fields: key, optionalDefault

func (*Config) GetBool

func (_m *Config) GetBool(key string, optionalDefault ...bool) bool

GetBool provides a mock function with given fields: key, optionalDefault

func (*Config) GetDuration

func (_m *Config) GetDuration(key string, optionalDefault ...time.Duration) time.Duration

GetDuration provides a mock function with given fields: key, optionalDefault

func (*Config) GetFloat64

func (_m *Config) GetFloat64(key string, optionalDefault ...float64) float64

GetFloat64 provides a mock function with given fields: key, optionalDefault

func (*Config) GetInt

func (_m *Config) GetInt(key string, optionalDefault ...int) int

GetInt provides a mock function with given fields: key, optionalDefault

func (*Config) GetIntSlice

func (_m *Config) GetIntSlice(key string, optionalDefault ...[]int) []int

GetIntSlice provides a mock function with given fields: key, optionalDefault

func (*Config) GetMsiSlice

func (_m *Config) GetMsiSlice(key string, optionalDefault ...[]map[string]interface{}) []map[string]interface{}

GetMsiSlice provides a mock function with given fields: key, optionalDefault

func (*Config) GetString

func (_m *Config) GetString(key string, optionalDefault ...string) string

GetString provides a mock function with given fields: key, optionalDefault

func (*Config) GetStringMap

func (_m *Config) GetStringMap(key string, optionalDefault ...map[string]interface{}) map[string]interface{}

GetStringMap provides a mock function with given fields: key, optionalDefault

func (*Config) GetStringMapString

func (_m *Config) GetStringMapString(key string, optionalDefault ...map[string]string) map[string]string

GetStringMapString provides a mock function with given fields: key, optionalDefault

func (*Config) GetStringSlice

func (_m *Config) GetStringSlice(key string, optionalDefault ...[]string) []string

GetStringSlice provides a mock function with given fields: key, optionalDefault

func (*Config) GetTime

func (_m *Config) GetTime(key string, optionalDefault ...time.Time) time.Time

GetTime provides a mock function with given fields: key, optionalDefault

func (*Config) HasPrefix

func (_m *Config) HasPrefix(prefix string) bool

HasPrefix provides a mock function with given fields: prefix

func (*Config) IsSet

func (_m *Config) IsSet(_a0 string) bool

IsSet provides a mock function with given fields: _a0

func (*Config) UnmarshalDefaults

func (_m *Config) UnmarshalDefaults(val interface{}, additionalDefaults ...cfg.UnmarshalDefaults)

UnmarshalDefaults provides a mock function with given fields: val, additionalDefaults

func (*Config) UnmarshalKey

func (_m *Config) UnmarshalKey(key string, val interface{}, additionalDefaults ...cfg.UnmarshalDefaults)

UnmarshalKey provides a mock function with given fields: key, val, additionalDefaults

type Config_AllKeys_Call

type Config_AllKeys_Call struct {
	*mock.Call
}

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

func (*Config_AllKeys_Call) Return

func (_c *Config_AllKeys_Call) Return(_a0 []string) *Config_AllKeys_Call

func (*Config_AllKeys_Call) Run

func (_c *Config_AllKeys_Call) Run(run func()) *Config_AllKeys_Call

func (*Config_AllKeys_Call) RunAndReturn

func (_c *Config_AllKeys_Call) RunAndReturn(run func() []string) *Config_AllKeys_Call

type Config_AllSettings_Call

type Config_AllSettings_Call struct {
	*mock.Call
}

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

func (*Config_AllSettings_Call) Return

func (_c *Config_AllSettings_Call) Return(_a0 map[string]interface{}) *Config_AllSettings_Call

func (*Config_AllSettings_Call) Run

func (_c *Config_AllSettings_Call) Run(run func()) *Config_AllSettings_Call

func (*Config_AllSettings_Call) RunAndReturn

func (_c *Config_AllSettings_Call) RunAndReturn(run func() map[string]interface{}) *Config_AllSettings_Call

type Config_Expecter

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

func (*Config_Expecter) AllKeys

func (_e *Config_Expecter) AllKeys() *Config_AllKeys_Call

AllKeys is a helper method to define mock.On call

func (*Config_Expecter) AllSettings

func (_e *Config_Expecter) AllSettings() *Config_AllSettings_Call

AllSettings is a helper method to define mock.On call

func (*Config_Expecter) Get

func (_e *Config_Expecter) Get(key interface{}, optionalDefault ...interface{}) *Config_Get_Call

Get is a helper method to define mock.On call

  • key string
  • optionalDefault ...interface{}

func (*Config_Expecter) GetBool

func (_e *Config_Expecter) GetBool(key interface{}, optionalDefault ...interface{}) *Config_GetBool_Call

GetBool is a helper method to define mock.On call

  • key string
  • optionalDefault ...bool

func (*Config_Expecter) GetDuration

func (_e *Config_Expecter) GetDuration(key interface{}, optionalDefault ...interface{}) *Config_GetDuration_Call

GetDuration is a helper method to define mock.On call

  • key string
  • optionalDefault ...time.Duration

func (*Config_Expecter) GetFloat64

func (_e *Config_Expecter) GetFloat64(key interface{}, optionalDefault ...interface{}) *Config_GetFloat64_Call

GetFloat64 is a helper method to define mock.On call

  • key string
  • optionalDefault ...float64

func (*Config_Expecter) GetInt

func (_e *Config_Expecter) GetInt(key interface{}, optionalDefault ...interface{}) *Config_GetInt_Call

GetInt is a helper method to define mock.On call

  • key string
  • optionalDefault ...int

func (*Config_Expecter) GetIntSlice

func (_e *Config_Expecter) GetIntSlice(key interface{}, optionalDefault ...interface{}) *Config_GetIntSlice_Call

GetIntSlice is a helper method to define mock.On call

  • key string
  • optionalDefault ...[]int

func (*Config_Expecter) GetMsiSlice

func (_e *Config_Expecter) GetMsiSlice(key interface{}, optionalDefault ...interface{}) *Config_GetMsiSlice_Call

GetMsiSlice is a helper method to define mock.On call

  • key string
  • optionalDefault ...[]map[string]interface{}

func (*Config_Expecter) GetString

func (_e *Config_Expecter) GetString(key interface{}, optionalDefault ...interface{}) *Config_GetString_Call

GetString is a helper method to define mock.On call

  • key string
  • optionalDefault ...string

func (*Config_Expecter) GetStringMap

func (_e *Config_Expecter) GetStringMap(key interface{}, optionalDefault ...interface{}) *Config_GetStringMap_Call

GetStringMap is a helper method to define mock.On call

  • key string
  • optionalDefault ...map[string]interface{}

func (*Config_Expecter) GetStringMapString

func (_e *Config_Expecter) GetStringMapString(key interface{}, optionalDefault ...interface{}) *Config_GetStringMapString_Call

GetStringMapString is a helper method to define mock.On call

  • key string
  • optionalDefault ...map[string]string

func (*Config_Expecter) GetStringSlice

func (_e *Config_Expecter) GetStringSlice(key interface{}, optionalDefault ...interface{}) *Config_GetStringSlice_Call

GetStringSlice is a helper method to define mock.On call

  • key string
  • optionalDefault ...[]string

func (*Config_Expecter) GetTime

func (_e *Config_Expecter) GetTime(key interface{}, optionalDefault ...interface{}) *Config_GetTime_Call

GetTime is a helper method to define mock.On call

  • key string
  • optionalDefault ...time.Time

func (*Config_Expecter) HasPrefix

func (_e *Config_Expecter) HasPrefix(prefix interface{}) *Config_HasPrefix_Call

HasPrefix is a helper method to define mock.On call

  • prefix string

func (*Config_Expecter) IsSet

func (_e *Config_Expecter) IsSet(_a0 interface{}) *Config_IsSet_Call

IsSet is a helper method to define mock.On call

  • _a0 string

func (*Config_Expecter) UnmarshalDefaults

func (_e *Config_Expecter) UnmarshalDefaults(val interface{}, additionalDefaults ...interface{}) *Config_UnmarshalDefaults_Call

UnmarshalDefaults is a helper method to define mock.On call

  • val interface{}
  • additionalDefaults ...cfg.UnmarshalDefaults

func (*Config_Expecter) UnmarshalKey

func (_e *Config_Expecter) UnmarshalKey(key interface{}, val interface{}, additionalDefaults ...interface{}) *Config_UnmarshalKey_Call

UnmarshalKey is a helper method to define mock.On call

  • key string
  • val interface{}
  • additionalDefaults ...cfg.UnmarshalDefaults

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(key string, optionalDefault ...bool)) *Config_GetBool_Call

func (*Config_GetBool_Call) RunAndReturn

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

type Config_GetDuration_Call

type Config_GetDuration_Call struct {
	*mock.Call
}

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

func (*Config_GetDuration_Call) Return

func (*Config_GetDuration_Call) Run

func (_c *Config_GetDuration_Call) Run(run func(key string, optionalDefault ...time.Duration)) *Config_GetDuration_Call

func (*Config_GetDuration_Call) RunAndReturn

type Config_GetFloat64_Call

type Config_GetFloat64_Call struct {
	*mock.Call
}

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

func (*Config_GetFloat64_Call) Return

func (*Config_GetFloat64_Call) Run

func (_c *Config_GetFloat64_Call) Run(run func(key string, optionalDefault ...float64)) *Config_GetFloat64_Call

func (*Config_GetFloat64_Call) RunAndReturn

func (_c *Config_GetFloat64_Call) RunAndReturn(run func(string, ...float64) float64) *Config_GetFloat64_Call

type Config_GetIntSlice_Call

type Config_GetIntSlice_Call struct {
	*mock.Call
}

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

func (*Config_GetIntSlice_Call) Return

func (*Config_GetIntSlice_Call) Run

func (_c *Config_GetIntSlice_Call) Run(run func(key string, optionalDefault ...[]int)) *Config_GetIntSlice_Call

func (*Config_GetIntSlice_Call) RunAndReturn

func (_c *Config_GetIntSlice_Call) RunAndReturn(run func(string, ...[]int) []int) *Config_GetIntSlice_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(key string, optionalDefault ...int)) *Config_GetInt_Call

func (*Config_GetInt_Call) RunAndReturn

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

type Config_GetMsiSlice_Call

type Config_GetMsiSlice_Call struct {
	*mock.Call
}

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

func (*Config_GetMsiSlice_Call) Return

func (_c *Config_GetMsiSlice_Call) Return(_a0 []map[string]interface{}) *Config_GetMsiSlice_Call

func (*Config_GetMsiSlice_Call) Run

func (_c *Config_GetMsiSlice_Call) Run(run func(key string, optionalDefault ...[]map[string]interface{})) *Config_GetMsiSlice_Call

func (*Config_GetMsiSlice_Call) RunAndReturn

func (_c *Config_GetMsiSlice_Call) RunAndReturn(run func(string, ...[]map[string]interface{}) []map[string]interface{}) *Config_GetMsiSlice_Call

type Config_GetStringMapString_Call

type Config_GetStringMapString_Call struct {
	*mock.Call
}

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

func (*Config_GetStringMapString_Call) Return

func (*Config_GetStringMapString_Call) Run

func (_c *Config_GetStringMapString_Call) Run(run func(key string, optionalDefault ...map[string]string)) *Config_GetStringMapString_Call

func (*Config_GetStringMapString_Call) RunAndReturn

type Config_GetStringMap_Call

type Config_GetStringMap_Call struct {
	*mock.Call
}

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

func (*Config_GetStringMap_Call) Return

func (_c *Config_GetStringMap_Call) Return(_a0 map[string]interface{}) *Config_GetStringMap_Call

func (*Config_GetStringMap_Call) Run

func (_c *Config_GetStringMap_Call) Run(run func(key string, optionalDefault ...map[string]interface{})) *Config_GetStringMap_Call

func (*Config_GetStringMap_Call) RunAndReturn

func (_c *Config_GetStringMap_Call) RunAndReturn(run func(string, ...map[string]interface{}) map[string]interface{}) *Config_GetStringMap_Call

type Config_GetStringSlice_Call

type Config_GetStringSlice_Call struct {
	*mock.Call
}

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

func (*Config_GetStringSlice_Call) Return

func (*Config_GetStringSlice_Call) Run

func (_c *Config_GetStringSlice_Call) Run(run func(key string, optionalDefault ...[]string)) *Config_GetStringSlice_Call

func (*Config_GetStringSlice_Call) RunAndReturn

func (_c *Config_GetStringSlice_Call) RunAndReturn(run func(string, ...[]string) []string) *Config_GetStringSlice_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(key string, optionalDefault ...string)) *Config_GetString_Call

func (*Config_GetString_Call) RunAndReturn

func (_c *Config_GetString_Call) RunAndReturn(run func(string, ...string) string) *Config_GetString_Call

type Config_GetTime_Call

type Config_GetTime_Call struct {
	*mock.Call
}

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

func (*Config_GetTime_Call) Return

func (*Config_GetTime_Call) Run

func (_c *Config_GetTime_Call) Run(run func(key string, optionalDefault ...time.Time)) *Config_GetTime_Call

func (*Config_GetTime_Call) RunAndReturn

func (_c *Config_GetTime_Call) RunAndReturn(run func(string, ...time.Time) time.Time) *Config_GetTime_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(key string, optionalDefault ...interface{})) *Config_Get_Call

func (*Config_Get_Call) RunAndReturn

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

type Config_HasPrefix_Call

type Config_HasPrefix_Call struct {
	*mock.Call
}

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

func (*Config_HasPrefix_Call) Return

func (*Config_HasPrefix_Call) Run

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

func (*Config_HasPrefix_Call) RunAndReturn

func (_c *Config_HasPrefix_Call) RunAndReturn(run func(string) bool) *Config_HasPrefix_Call

type Config_IsSet_Call

type Config_IsSet_Call struct {
	*mock.Call
}

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

func (*Config_IsSet_Call) Return

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

func (*Config_IsSet_Call) Run

func (_c *Config_IsSet_Call) Run(run func(_a0 string)) *Config_IsSet_Call

func (*Config_IsSet_Call) RunAndReturn

func (_c *Config_IsSet_Call) RunAndReturn(run func(string) bool) *Config_IsSet_Call

type Config_UnmarshalDefaults_Call

type Config_UnmarshalDefaults_Call struct {
	*mock.Call
}

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

func (*Config_UnmarshalDefaults_Call) Return

func (*Config_UnmarshalDefaults_Call) Run

func (_c *Config_UnmarshalDefaults_Call) Run(run func(val interface{}, additionalDefaults ...cfg.UnmarshalDefaults)) *Config_UnmarshalDefaults_Call

func (*Config_UnmarshalDefaults_Call) RunAndReturn

func (_c *Config_UnmarshalDefaults_Call) RunAndReturn(run func(interface{}, ...cfg.UnmarshalDefaults)) *Config_UnmarshalDefaults_Call

type Config_UnmarshalKey_Call

type Config_UnmarshalKey_Call struct {
	*mock.Call
}

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

func (*Config_UnmarshalKey_Call) Return

func (*Config_UnmarshalKey_Call) Run

func (_c *Config_UnmarshalKey_Call) Run(run func(key string, val interface{}, additionalDefaults ...cfg.UnmarshalDefaults)) *Config_UnmarshalKey_Call

func (*Config_UnmarshalKey_Call) RunAndReturn

func (_c *Config_UnmarshalKey_Call) RunAndReturn(run func(string, interface{}, ...cfg.UnmarshalDefaults)) *Config_UnmarshalKey_Call

type GosoConf

type GosoConf struct {
	mock.Mock
}

GosoConf is an autogenerated mock type for the GosoConf type

func NewGosoConf

func NewGosoConf(t mockConstructorTestingTNewGosoConf) *GosoConf

NewGosoConf creates a new instance of GosoConf. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GosoConf) AllKeys

func (_m *GosoConf) AllKeys() []string

AllKeys provides a mock function with given fields:

func (*GosoConf) AllSettings

func (_m *GosoConf) AllSettings() map[string]interface{}

AllSettings provides a mock function with given fields:

func (*GosoConf) EXPECT

func (_m *GosoConf) EXPECT() *GosoConf_Expecter

func (*GosoConf) Get

func (_m *GosoConf) Get(key string, optionalDefault ...interface{}) interface{}

Get provides a mock function with given fields: key, optionalDefault

func (*GosoConf) GetBool

func (_m *GosoConf) GetBool(key string, optionalDefault ...bool) bool

GetBool provides a mock function with given fields: key, optionalDefault

func (*GosoConf) GetDuration

func (_m *GosoConf) GetDuration(key string, optionalDefault ...time.Duration) time.Duration

GetDuration provides a mock function with given fields: key, optionalDefault

func (*GosoConf) GetFloat64

func (_m *GosoConf) GetFloat64(key string, optionalDefault ...float64) float64

GetFloat64 provides a mock function with given fields: key, optionalDefault

func (*GosoConf) GetInt

func (_m *GosoConf) GetInt(key string, optionalDefault ...int) int

GetInt provides a mock function with given fields: key, optionalDefault

func (*GosoConf) GetIntSlice

func (_m *GosoConf) GetIntSlice(key string, optionalDefault ...[]int) []int

GetIntSlice provides a mock function with given fields: key, optionalDefault

func (*GosoConf) GetMsiSlice

func (_m *GosoConf) GetMsiSlice(key string, optionalDefault ...[]map[string]interface{}) []map[string]interface{}

GetMsiSlice provides a mock function with given fields: key, optionalDefault

func (*GosoConf) GetString

func (_m *GosoConf) GetString(key string, optionalDefault ...string) string

GetString provides a mock function with given fields: key, optionalDefault

func (*GosoConf) GetStringMap

func (_m *GosoConf) GetStringMap(key string, optionalDefault ...map[string]interface{}) map[string]interface{}

GetStringMap provides a mock function with given fields: key, optionalDefault

func (*GosoConf) GetStringMapString

func (_m *GosoConf) GetStringMapString(key string, optionalDefault ...map[string]string) map[string]string

GetStringMapString provides a mock function with given fields: key, optionalDefault

func (*GosoConf) GetStringSlice

func (_m *GosoConf) GetStringSlice(key string, optionalDefault ...[]string) []string

GetStringSlice provides a mock function with given fields: key, optionalDefault

func (*GosoConf) GetTime

func (_m *GosoConf) GetTime(key string, optionalDefault ...time.Time) time.Time

GetTime provides a mock function with given fields: key, optionalDefault

func (*GosoConf) HasPrefix

func (_m *GosoConf) HasPrefix(prefix string) bool

HasPrefix provides a mock function with given fields: prefix

func (*GosoConf) IsSet

func (_m *GosoConf) IsSet(_a0 string) bool

IsSet provides a mock function with given fields: _a0

func (*GosoConf) Option

func (_m *GosoConf) Option(options ...cfg.Option) error

Option provides a mock function with given fields: options

func (*GosoConf) UnmarshalDefaults

func (_m *GosoConf) UnmarshalDefaults(val interface{}, additionalDefaults ...cfg.UnmarshalDefaults)

UnmarshalDefaults provides a mock function with given fields: val, additionalDefaults

func (*GosoConf) UnmarshalKey

func (_m *GosoConf) UnmarshalKey(key string, val interface{}, additionalDefaults ...cfg.UnmarshalDefaults)

UnmarshalKey provides a mock function with given fields: key, val, additionalDefaults

type GosoConf_AllKeys_Call

type GosoConf_AllKeys_Call struct {
	*mock.Call
}

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

func (*GosoConf_AllKeys_Call) Return

func (*GosoConf_AllKeys_Call) Run

func (_c *GosoConf_AllKeys_Call) Run(run func()) *GosoConf_AllKeys_Call

func (*GosoConf_AllKeys_Call) RunAndReturn

func (_c *GosoConf_AllKeys_Call) RunAndReturn(run func() []string) *GosoConf_AllKeys_Call

type GosoConf_AllSettings_Call

type GosoConf_AllSettings_Call struct {
	*mock.Call
}

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

func (*GosoConf_AllSettings_Call) Return

func (_c *GosoConf_AllSettings_Call) Return(_a0 map[string]interface{}) *GosoConf_AllSettings_Call

func (*GosoConf_AllSettings_Call) Run

func (*GosoConf_AllSettings_Call) RunAndReturn

func (_c *GosoConf_AllSettings_Call) RunAndReturn(run func() map[string]interface{}) *GosoConf_AllSettings_Call

type GosoConf_Expecter

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

func (*GosoConf_Expecter) AllKeys

AllKeys is a helper method to define mock.On call

func (*GosoConf_Expecter) AllSettings

func (_e *GosoConf_Expecter) AllSettings() *GosoConf_AllSettings_Call

AllSettings is a helper method to define mock.On call

func (*GosoConf_Expecter) Get

func (_e *GosoConf_Expecter) Get(key interface{}, optionalDefault ...interface{}) *GosoConf_Get_Call

Get is a helper method to define mock.On call

  • key string
  • optionalDefault ...interface{}

func (*GosoConf_Expecter) GetBool

func (_e *GosoConf_Expecter) GetBool(key interface{}, optionalDefault ...interface{}) *GosoConf_GetBool_Call

GetBool is a helper method to define mock.On call

  • key string
  • optionalDefault ...bool

func (*GosoConf_Expecter) GetDuration

func (_e *GosoConf_Expecter) GetDuration(key interface{}, optionalDefault ...interface{}) *GosoConf_GetDuration_Call

GetDuration is a helper method to define mock.On call

  • key string
  • optionalDefault ...time.Duration

func (*GosoConf_Expecter) GetFloat64

func (_e *GosoConf_Expecter) GetFloat64(key interface{}, optionalDefault ...interface{}) *GosoConf_GetFloat64_Call

GetFloat64 is a helper method to define mock.On call

  • key string
  • optionalDefault ...float64

func (*GosoConf_Expecter) GetInt

func (_e *GosoConf_Expecter) GetInt(key interface{}, optionalDefault ...interface{}) *GosoConf_GetInt_Call

GetInt is a helper method to define mock.On call

  • key string
  • optionalDefault ...int

func (*GosoConf_Expecter) GetIntSlice

func (_e *GosoConf_Expecter) GetIntSlice(key interface{}, optionalDefault ...interface{}) *GosoConf_GetIntSlice_Call

GetIntSlice is a helper method to define mock.On call

  • key string
  • optionalDefault ...[]int

func (*GosoConf_Expecter) GetMsiSlice

func (_e *GosoConf_Expecter) GetMsiSlice(key interface{}, optionalDefault ...interface{}) *GosoConf_GetMsiSlice_Call

GetMsiSlice is a helper method to define mock.On call

  • key string
  • optionalDefault ...[]map[string]interface{}

func (*GosoConf_Expecter) GetString

func (_e *GosoConf_Expecter) GetString(key interface{}, optionalDefault ...interface{}) *GosoConf_GetString_Call

GetString is a helper method to define mock.On call

  • key string
  • optionalDefault ...string

func (*GosoConf_Expecter) GetStringMap

func (_e *GosoConf_Expecter) GetStringMap(key interface{}, optionalDefault ...interface{}) *GosoConf_GetStringMap_Call

GetStringMap is a helper method to define mock.On call

  • key string
  • optionalDefault ...map[string]interface{}

func (*GosoConf_Expecter) GetStringMapString

func (_e *GosoConf_Expecter) GetStringMapString(key interface{}, optionalDefault ...interface{}) *GosoConf_GetStringMapString_Call

GetStringMapString is a helper method to define mock.On call

  • key string
  • optionalDefault ...map[string]string

func (*GosoConf_Expecter) GetStringSlice

func (_e *GosoConf_Expecter) GetStringSlice(key interface{}, optionalDefault ...interface{}) *GosoConf_GetStringSlice_Call

GetStringSlice is a helper method to define mock.On call

  • key string
  • optionalDefault ...[]string

func (*GosoConf_Expecter) GetTime

func (_e *GosoConf_Expecter) GetTime(key interface{}, optionalDefault ...interface{}) *GosoConf_GetTime_Call

GetTime is a helper method to define mock.On call

  • key string
  • optionalDefault ...time.Time

func (*GosoConf_Expecter) HasPrefix

func (_e *GosoConf_Expecter) HasPrefix(prefix interface{}) *GosoConf_HasPrefix_Call

HasPrefix is a helper method to define mock.On call

  • prefix string

func (*GosoConf_Expecter) IsSet

func (_e *GosoConf_Expecter) IsSet(_a0 interface{}) *GosoConf_IsSet_Call

IsSet is a helper method to define mock.On call

  • _a0 string

func (*GosoConf_Expecter) Option

func (_e *GosoConf_Expecter) Option(options ...interface{}) *GosoConf_Option_Call

Option is a helper method to define mock.On call

  • options ...cfg.Option

func (*GosoConf_Expecter) UnmarshalDefaults

func (_e *GosoConf_Expecter) UnmarshalDefaults(val interface{}, additionalDefaults ...interface{}) *GosoConf_UnmarshalDefaults_Call

UnmarshalDefaults is a helper method to define mock.On call

  • val interface{}
  • additionalDefaults ...cfg.UnmarshalDefaults

func (*GosoConf_Expecter) UnmarshalKey

func (_e *GosoConf_Expecter) UnmarshalKey(key interface{}, val interface{}, additionalDefaults ...interface{}) *GosoConf_UnmarshalKey_Call

UnmarshalKey is a helper method to define mock.On call

  • key string
  • val interface{}
  • additionalDefaults ...cfg.UnmarshalDefaults

type GosoConf_GetBool_Call

type GosoConf_GetBool_Call struct {
	*mock.Call
}

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

func (*GosoConf_GetBool_Call) Return

func (*GosoConf_GetBool_Call) Run

func (_c *GosoConf_GetBool_Call) Run(run func(key string, optionalDefault ...bool)) *GosoConf_GetBool_Call

func (*GosoConf_GetBool_Call) RunAndReturn

func (_c *GosoConf_GetBool_Call) RunAndReturn(run func(string, ...bool) bool) *GosoConf_GetBool_Call

type GosoConf_GetDuration_Call

type GosoConf_GetDuration_Call struct {
	*mock.Call
}

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

func (*GosoConf_GetDuration_Call) Return

func (*GosoConf_GetDuration_Call) Run

func (_c *GosoConf_GetDuration_Call) Run(run func(key string, optionalDefault ...time.Duration)) *GosoConf_GetDuration_Call

func (*GosoConf_GetDuration_Call) RunAndReturn

type GosoConf_GetFloat64_Call

type GosoConf_GetFloat64_Call struct {
	*mock.Call
}

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

func (*GosoConf_GetFloat64_Call) Return

func (*GosoConf_GetFloat64_Call) Run

func (_c *GosoConf_GetFloat64_Call) Run(run func(key string, optionalDefault ...float64)) *GosoConf_GetFloat64_Call

func (*GosoConf_GetFloat64_Call) RunAndReturn

func (_c *GosoConf_GetFloat64_Call) RunAndReturn(run func(string, ...float64) float64) *GosoConf_GetFloat64_Call

type GosoConf_GetIntSlice_Call

type GosoConf_GetIntSlice_Call struct {
	*mock.Call
}

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

func (*GosoConf_GetIntSlice_Call) Return

func (*GosoConf_GetIntSlice_Call) Run

func (_c *GosoConf_GetIntSlice_Call) Run(run func(key string, optionalDefault ...[]int)) *GosoConf_GetIntSlice_Call

func (*GosoConf_GetIntSlice_Call) RunAndReturn

func (_c *GosoConf_GetIntSlice_Call) RunAndReturn(run func(string, ...[]int) []int) *GosoConf_GetIntSlice_Call

type GosoConf_GetInt_Call

type GosoConf_GetInt_Call struct {
	*mock.Call
}

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

func (*GosoConf_GetInt_Call) Return

func (*GosoConf_GetInt_Call) Run

func (_c *GosoConf_GetInt_Call) Run(run func(key string, optionalDefault ...int)) *GosoConf_GetInt_Call

func (*GosoConf_GetInt_Call) RunAndReturn

func (_c *GosoConf_GetInt_Call) RunAndReturn(run func(string, ...int) int) *GosoConf_GetInt_Call

type GosoConf_GetMsiSlice_Call

type GosoConf_GetMsiSlice_Call struct {
	*mock.Call
}

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

func (*GosoConf_GetMsiSlice_Call) Return

func (_c *GosoConf_GetMsiSlice_Call) Return(_a0 []map[string]interface{}) *GosoConf_GetMsiSlice_Call

func (*GosoConf_GetMsiSlice_Call) Run

func (_c *GosoConf_GetMsiSlice_Call) Run(run func(key string, optionalDefault ...[]map[string]interface{})) *GosoConf_GetMsiSlice_Call

func (*GosoConf_GetMsiSlice_Call) RunAndReturn

func (_c *GosoConf_GetMsiSlice_Call) RunAndReturn(run func(string, ...[]map[string]interface{}) []map[string]interface{}) *GosoConf_GetMsiSlice_Call

type GosoConf_GetStringMapString_Call

type GosoConf_GetStringMapString_Call struct {
	*mock.Call
}

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

func (*GosoConf_GetStringMapString_Call) Return

func (*GosoConf_GetStringMapString_Call) Run

func (_c *GosoConf_GetStringMapString_Call) Run(run func(key string, optionalDefault ...map[string]string)) *GosoConf_GetStringMapString_Call

func (*GosoConf_GetStringMapString_Call) RunAndReturn

type GosoConf_GetStringMap_Call

type GosoConf_GetStringMap_Call struct {
	*mock.Call
}

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

func (*GosoConf_GetStringMap_Call) Return

func (_c *GosoConf_GetStringMap_Call) Return(_a0 map[string]interface{}) *GosoConf_GetStringMap_Call

func (*GosoConf_GetStringMap_Call) Run

func (_c *GosoConf_GetStringMap_Call) Run(run func(key string, optionalDefault ...map[string]interface{})) *GosoConf_GetStringMap_Call

func (*GosoConf_GetStringMap_Call) RunAndReturn

func (_c *GosoConf_GetStringMap_Call) RunAndReturn(run func(string, ...map[string]interface{}) map[string]interface{}) *GosoConf_GetStringMap_Call

type GosoConf_GetStringSlice_Call

type GosoConf_GetStringSlice_Call struct {
	*mock.Call
}

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

func (*GosoConf_GetStringSlice_Call) Return

func (*GosoConf_GetStringSlice_Call) Run

func (_c *GosoConf_GetStringSlice_Call) Run(run func(key string, optionalDefault ...[]string)) *GosoConf_GetStringSlice_Call

func (*GosoConf_GetStringSlice_Call) RunAndReturn

func (_c *GosoConf_GetStringSlice_Call) RunAndReturn(run func(string, ...[]string) []string) *GosoConf_GetStringSlice_Call

type GosoConf_GetString_Call

type GosoConf_GetString_Call struct {
	*mock.Call
}

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

func (*GosoConf_GetString_Call) Return

func (*GosoConf_GetString_Call) Run

func (_c *GosoConf_GetString_Call) Run(run func(key string, optionalDefault ...string)) *GosoConf_GetString_Call

func (*GosoConf_GetString_Call) RunAndReturn

func (_c *GosoConf_GetString_Call) RunAndReturn(run func(string, ...string) string) *GosoConf_GetString_Call

type GosoConf_GetTime_Call

type GosoConf_GetTime_Call struct {
	*mock.Call
}

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

func (*GosoConf_GetTime_Call) Return

func (*GosoConf_GetTime_Call) Run

func (_c *GosoConf_GetTime_Call) Run(run func(key string, optionalDefault ...time.Time)) *GosoConf_GetTime_Call

func (*GosoConf_GetTime_Call) RunAndReturn

func (_c *GosoConf_GetTime_Call) RunAndReturn(run func(string, ...time.Time) time.Time) *GosoConf_GetTime_Call

type GosoConf_Get_Call

type GosoConf_Get_Call struct {
	*mock.Call
}

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

func (*GosoConf_Get_Call) Return

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

func (*GosoConf_Get_Call) Run

func (_c *GosoConf_Get_Call) Run(run func(key string, optionalDefault ...interface{})) *GosoConf_Get_Call

func (*GosoConf_Get_Call) RunAndReturn

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

type GosoConf_HasPrefix_Call

type GosoConf_HasPrefix_Call struct {
	*mock.Call
}

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

func (*GosoConf_HasPrefix_Call) Return

func (*GosoConf_HasPrefix_Call) Run

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

func (*GosoConf_HasPrefix_Call) RunAndReturn

func (_c *GosoConf_HasPrefix_Call) RunAndReturn(run func(string) bool) *GosoConf_HasPrefix_Call

type GosoConf_IsSet_Call

type GosoConf_IsSet_Call struct {
	*mock.Call
}

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

func (*GosoConf_IsSet_Call) Return

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

func (*GosoConf_IsSet_Call) Run

func (_c *GosoConf_IsSet_Call) Run(run func(_a0 string)) *GosoConf_IsSet_Call

func (*GosoConf_IsSet_Call) RunAndReturn

func (_c *GosoConf_IsSet_Call) RunAndReturn(run func(string) bool) *GosoConf_IsSet_Call

type GosoConf_Option_Call

type GosoConf_Option_Call struct {
	*mock.Call
}

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

func (*GosoConf_Option_Call) Return

func (*GosoConf_Option_Call) Run

func (_c *GosoConf_Option_Call) Run(run func(options ...cfg.Option)) *GosoConf_Option_Call

func (*GosoConf_Option_Call) RunAndReturn

func (_c *GosoConf_Option_Call) RunAndReturn(run func(...cfg.Option) error) *GosoConf_Option_Call

type GosoConf_UnmarshalDefaults_Call

type GosoConf_UnmarshalDefaults_Call struct {
	*mock.Call
}

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

func (*GosoConf_UnmarshalDefaults_Call) Return

func (*GosoConf_UnmarshalDefaults_Call) Run

func (_c *GosoConf_UnmarshalDefaults_Call) Run(run func(val interface{}, additionalDefaults ...cfg.UnmarshalDefaults)) *GosoConf_UnmarshalDefaults_Call

func (*GosoConf_UnmarshalDefaults_Call) RunAndReturn

func (_c *GosoConf_UnmarshalDefaults_Call) RunAndReturn(run func(interface{}, ...cfg.UnmarshalDefaults)) *GosoConf_UnmarshalDefaults_Call

type GosoConf_UnmarshalKey_Call

type GosoConf_UnmarshalKey_Call struct {
	*mock.Call
}

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

func (*GosoConf_UnmarshalKey_Call) Return

func (*GosoConf_UnmarshalKey_Call) Run

func (_c *GosoConf_UnmarshalKey_Call) Run(run func(key string, val interface{}, additionalDefaults ...cfg.UnmarshalDefaults)) *GosoConf_UnmarshalKey_Call

func (*GosoConf_UnmarshalKey_Call) RunAndReturn

func (_c *GosoConf_UnmarshalKey_Call) RunAndReturn(run func(string, interface{}, ...cfg.UnmarshalDefaults)) *GosoConf_UnmarshalKey_Call

type Sentry

type Sentry struct {
	mock.Mock
}

Sentry is an autogenerated mock type for the Sentry type

func NewSentry

func NewSentry(t mockConstructorTestingTNewSentry) *Sentry

NewSentry creates a new instance of Sentry. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Sentry) CaptureException

func (_m *Sentry) CaptureException(exception error, hint *sentry.EventHint, scope sentry.EventModifier) *sentry.EventID

CaptureException provides a mock function with given fields: exception, hint, scope

func (*Sentry) EXPECT

func (_m *Sentry) EXPECT() *Sentry_Expecter

type Sentry_CaptureException_Call

type Sentry_CaptureException_Call struct {
	*mock.Call
}

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

func (*Sentry_CaptureException_Call) Return

func (*Sentry_CaptureException_Call) Run

func (*Sentry_CaptureException_Call) RunAndReturn

type Sentry_Expecter

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

func (*Sentry_Expecter) CaptureException

func (_e *Sentry_Expecter) CaptureException(exception interface{}, hint interface{}, scope interface{}) *Sentry_CaptureException_Call

CaptureException is a helper method to define mock.On call

  • exception error
  • hint *sentry.EventHint
  • scope sentry.EventModifier

Jump to

Keyboard shortcuts

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