mocks

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 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 any)

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