database

package
v1.15.7 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigBuilder

type ConfigBuilder struct {
	mock.Mock
}

ConfigBuilder is an autogenerated mock type for the ConfigBuilder type

func NewConfigBuilder

func NewConfigBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConfigBuilder

NewConfigBuilder creates a new instance of ConfigBuilder. 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 (*ConfigBuilder) EXPECT

func (_m *ConfigBuilder) EXPECT() *ConfigBuilder_Expecter

func (*ConfigBuilder) Reads

func (_m *ConfigBuilder) Reads() []database.FullConfig

Reads provides a mock function with no fields

func (*ConfigBuilder) Writes

func (_m *ConfigBuilder) Writes() []database.FullConfig

Writes provides a mock function with no fields

type ConfigBuilder_Expecter

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

func (*ConfigBuilder_Expecter) Reads

Reads is a helper method to define mock.On call

func (*ConfigBuilder_Expecter) Writes

Writes is a helper method to define mock.On call

type ConfigBuilder_Reads_Call

type ConfigBuilder_Reads_Call struct {
	*mock.Call
}

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

func (*ConfigBuilder_Reads_Call) Return

func (*ConfigBuilder_Reads_Call) Run

func (*ConfigBuilder_Reads_Call) RunAndReturn

func (_c *ConfigBuilder_Reads_Call) RunAndReturn(run func() []database.FullConfig) *ConfigBuilder_Reads_Call

type ConfigBuilder_Writes_Call

type ConfigBuilder_Writes_Call struct {
	*mock.Call
}

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

func (*ConfigBuilder_Writes_Call) Return

func (*ConfigBuilder_Writes_Call) Run

func (*ConfigBuilder_Writes_Call) RunAndReturn

type Configs

type Configs struct {
	mock.Mock
}

Configs is an autogenerated mock type for the Configs type

func NewConfigs

func NewConfigs(t interface {
	mock.TestingT
	Cleanup(func())
}) *Configs

NewConfigs creates a new instance of Configs. 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 (*Configs) EXPECT

func (_m *Configs) EXPECT() *Configs_Expecter

func (*Configs) Reads

func (_m *Configs) Reads() []database.FullConfig

Reads provides a mock function with given fields:

func (*Configs) Writes

func (_m *Configs) Writes() []database.FullConfig

Writes provides a mock function with given fields:

type Configs_Expecter

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

func (*Configs_Expecter) Reads

func (_e *Configs_Expecter) Reads() *Configs_Reads_Call

Reads is a helper method to define mock.On call

func (*Configs_Expecter) Writes

func (_e *Configs_Expecter) Writes() *Configs_Writes_Call

Writes is a helper method to define mock.On call

type Configs_Reads_Call

type Configs_Reads_Call struct {
	*mock.Call
}

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

func (*Configs_Reads_Call) Return

func (*Configs_Reads_Call) Run

func (_c *Configs_Reads_Call) Run(run func()) *Configs_Reads_Call

func (*Configs_Reads_Call) RunAndReturn

func (_c *Configs_Reads_Call) RunAndReturn(run func() []database.FullConfig) *Configs_Reads_Call

type Configs_Writes_Call

type Configs_Writes_Call struct {
	*mock.Call
}

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

func (*Configs_Writes_Call) Return

func (*Configs_Writes_Call) Run

func (_c *Configs_Writes_Call) Run(run func()) *Configs_Writes_Call

func (*Configs_Writes_Call) RunAndReturn

func (_c *Configs_Writes_Call) RunAndReturn(run func() []database.FullConfig) *Configs_Writes_Call

type Replacer

type Replacer struct {
	mock.Mock
}

Replacer is an autogenerated mock type for the Replacer type

func NewReplacer

func NewReplacer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Replacer

NewReplacer creates a new instance of Replacer. 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 (*Replacer) EXPECT

func (_m *Replacer) EXPECT() *Replacer_Expecter

func (*Replacer) Replace

func (_m *Replacer) Replace(name string) string

Replace provides a mock function with given fields: name

type Replacer_Expecter

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

func (*Replacer_Expecter) Replace

func (_e *Replacer_Expecter) Replace(name interface{}) *Replacer_Replace_Call

Replace is a helper method to define mock.On call

  • name string

type Replacer_Replace_Call

type Replacer_Replace_Call struct {
	*mock.Call
}

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

func (*Replacer_Replace_Call) Return

func (*Replacer_Replace_Call) Run

func (_c *Replacer_Replace_Call) Run(run func(name string)) *Replacer_Replace_Call

func (*Replacer_Replace_Call) RunAndReturn

func (_c *Replacer_Replace_Call) RunAndReturn(run func(string) string) *Replacer_Replace_Call

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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