mocks

package
v0.0.0-...-4ca5139 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 1 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) Add

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

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

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

Jump to

Keyboard shortcuts

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