Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is an in memory config used for testing
func NewConfig ¶
func NewConfig(value interface{}) *Config
NewConfig returns a new in memory config. Use an initial nil value to indicate no value is set
func (*Config) ClearValue ¶
func (c *Config) ClearValue()
ClearValue sets up the config as if no value has been set, resulting in ErrNoValue being returned on subsequent Get Calls
func (*Config) InduceErrors ¶
func (c *Config) InduceErrors()
InduceErrors instructs the config to simulate an error getting a config value
func (*Config) SetValue ¶
func (c *Config) SetValue(value interface{})
SetValue sets the value that should be returned on subsequent Get calls
func (*Config) StopInducingErrors ¶
func (c *Config) StopInducingErrors()
StopInducingErrors stops the config from simulating an error getting a config value
Click to show internal directories.
Click to hide internal directories.