contracts

package
v0.0.0-...-ed4f422 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 3 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) Config

func (_m *ConfigBuilder) Config() config.Config

Config provides a mock function with no fields

func (*ConfigBuilder) Connection

func (_m *ConfigBuilder) Connection() string

Connection provides a mock function with no fields

func (*ConfigBuilder) EXPECT

func (_m *ConfigBuilder) EXPECT() *ConfigBuilder_Expecter

func (*ConfigBuilder) Reads

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

Reads provides a mock function with no fields

func (*ConfigBuilder) Writes

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

Writes provides a mock function with no fields

type ConfigBuilder_Config_Call

type ConfigBuilder_Config_Call struct {
	*mock.Call
}

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

func (*ConfigBuilder_Config_Call) Return

func (*ConfigBuilder_Config_Call) Run

func (*ConfigBuilder_Config_Call) RunAndReturn

func (_c *ConfigBuilder_Config_Call) RunAndReturn(run func() config.Config) *ConfigBuilder_Config_Call

type ConfigBuilder_Connection_Call

type ConfigBuilder_Connection_Call struct {
	*mock.Call
}

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

func (*ConfigBuilder_Connection_Call) Return

func (*ConfigBuilder_Connection_Call) Run

func (*ConfigBuilder_Connection_Call) RunAndReturn

type ConfigBuilder_Expecter

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

func (*ConfigBuilder_Expecter) Config

Config is a helper method to define mock.On call

func (*ConfigBuilder_Expecter) Connection

Connection is a helper method to define mock.On call

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

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 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

Jump to

Keyboard shortcuts

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