mocks

package
v0.0.0-...-0144dd1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Koanf

type Koanf struct {
	mock.Mock
}

Koanf is an autogenerated mock type for the Koanf type

func NewKoanf

func NewKoanf(t interface {
	mock.TestingT
	Cleanup(func())
}) *Koanf

NewKoanf creates a new instance of Koanf. 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 (*Koanf) Bool

func (_m *Koanf) Bool(path string) bool

Bool provides a mock function with given fields: path

func (*Koanf) Exists

func (_m *Koanf) Exists(path string) bool

Exists provides a mock function with given fields: path

func (*Koanf) Int64

func (_m *Koanf) Int64(path string) int64

Int64 provides a mock function with given fields: path

func (*Koanf) Load

func (_m *Koanf) Load(p koanf.Provider, pa koanf.Parser, opts ...koanf.Option) error

Load provides a mock function with given fields: p, pa, opts

func (*Koanf) Set

func (_m *Koanf) Set(key string, val interface{}) error

Set provides a mock function with given fields: key, val

func (*Koanf) String

func (_m *Koanf) String(path string) string

String provides a mock function with given fields: path

func (*Koanf) Strings

func (_m *Koanf) Strings(path string) []string

Strings provides a mock function with given fields: path

Jump to

Keyboard shortcuts

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